GFXVoid Graphic Design Forum

Remove Text Formatting
New [19-01, 18:02] Coconut: Got wished happy birthday yesterday by GFXVoid....damn I'm old
New [31-01, 16:50] Gaaf: We’re all old lol. Love how everyone is still checking in once in a while
New [05-02, 15:05] Chris:
New [02-06, 15:56] cc.RadillacVIII: Glad to see my imageshack hosted smilies are still operational
New [04-06, 22:51] kailu: sure miss this place
New [11-11, 18:12] Skatanic_: Hi
New [18-11, 19:34] Sexercise: Howdy!
New [15-12, 20:24] Scrib: Wow, it’s been a long time
New [15-12, 20:25] Scrib: joined in 09, last post no idea when - hope all the old faces are doing brilliant
New [06-01, 07:04] shiv96: Oi fuckers
New [06-01, 07:04] shiv96: miss this place sometimes, happy new year
New [24-01, 04:42] +Josh Fx: Happy 2023 fuckers
New [25-01, 00:48] Pet: Another year of the void just sitting on a host somewhere.... xD
New [25-01, 04:59] +Josh Fx: GFXvoid will never die
New [25-01, 04:59] +Josh Fx: Not going to lie it'll be a sad day the day I go on here and it's gone forever
New [06-02, 19:22] ColdDegree: Happy 2023 my friends
New [03-05, 07:51] Deadloader: Wow, I have a strong nostalgia for this place. Orange name reppin
New [13-05, 02:23] Viporizer: It's been too long.
New [13-05, 02:25] Viporizer: Aww the board I was active in have not seen an update since 2018... The good days are over I guess
New [13-05, 02:36] +hm.Alucard1973: Hi Hi
New [03-06, 10:33] +s9.Oath: been a long time
New [30-07, 20:34] cC.Agitator: We’re still alive
New [10-10, 02:52] Viporizer:
New [26-12, 13:42] Daemon: Unkillable forum!
New [11-05, 14:42] Derosion: The endless void, still up. Incredible.
New [01-09, 10:10] Chris: Certainly impressive :P
New [01-09, 10:13] Chris: I'm not allowed to make any more forum posts,because my post count is "1,337"
New [07-09, 23:57] Psypher: Wow this site is still up! Hello to the next person that comes along!
New [23-09, 13:51] asdfasdfasdf: Hello, Psypher
New [03-01, 15:50] marioman77: :O

» Online Users: 8,468

0 members and 8,468 guests
No Members online

» Site Navigation

 > FAQ

» Stats

Members: 35,442
Threads: 103,075
Posts: 826,688
Top Poster: cc.RadillacVIII (7,429)
Welcome to our newest member, Lekelindids
Results 1 to 4 of 4

Thread: Randomizing Tag

  1. #1
    Join Date
    Aug 2007
    Posts
    1,259

    Default Randomizing Tag

    I have been asked a lot how I get my tag to change all the time, so I will just post how to do it.

    First, you need to have access to a host that you can put all the tags you want within 1 folder, and it has to be able to handle PHP files.


    Create a folder that will contain all your images, and the PHP file, which you can name anything that you want. Upload all the tags you want to be randomized within it, and create a PHP file named tag.php.

    Within the PHP file, you will have to put the following code:
    PHP Code:
    <?php

        $folder 
    '.';
        
    $extList = array();
        
    $extList['gif'] = 'image/gif';
        
    $extList['jpg'] = 'image/jpeg';
        
    $extList['jpeg'] = 'image/jpeg';
        
    $extList['png'] = 'image/png';

    $img null;

    if (
    substr($folder,-1) != '/') {
        
    $folder $folder.'/';
    }

    if (isset(
    $_GET['img'])) {
        
    $imageInfo pathinfo($_GET['img']);
        if (
            isset( 
    $extListstrtolower$imageInfo['extension'] ) ] ) &&
            
    file_exists$folder.$imageInfo['basename'] )
        ) {
            
    $img $folder.$imageInfo['basename'];
        }
    } else {
        
    $fileList = array();
        
    $handle opendir($folder);
        while ( 
    false !== ( $file readdir($handle) ) ) {
            
    $file_info pathinfo($file);
            if (
                isset( 
    $extListstrtolower$file_info['extension'] ) ] )
            ) {
                
    $fileList[] = $file;
            }
        }
        
    closedir($handle);

        if (
    count($fileList) > 0) {
            
    $imageNumber time() % count($fileList);
            
    $img $folder.$fileList[$imageNumber];
        }
    }

    if (
    $img!=null) {
        
    $imageInfo pathinfo($img);
        
    $contentType 'Content-type: '.$extList$imageInfo['extension'] ];
        
    header ($contentType);
        
    readfile($img);
    } else {
        if ( 
    function_exists('imagecreate') ) {
            
    header ("Content-type: image/png");
            
    $im = @imagecreate (100100)
                or die (
    "Cannot initialize new GD image stream");
            
    $background_color imagecolorallocate ($im255255255);
            
    $text_color imagecolorallocate ($im0,0,0);
            
    imagestring ($im255,  "IMAGE ERROR"$text_color);
            
    imagepng ($im);
            
    imagedestroy($im);
        }
    }

    ?>

    Now, when adding this into your signature, just use the image tags like normal, but instead of linking it to a picture, link to the php file, and add /image.jpg to the end of it to disguise it as an image file. So it will look something like:

    http://www.website.com/images/tag.php/image.jpg.


    That is all there is too it.

    Commissions and stickers available via linktree here.

  2. #2
    Join Date
    Dec 2010
    Posts
    1,145

    Default

    oh
    i thought you just had a new one like everyday LOL









  3. #3
    Join Date
    Nov 2009
    Location
    Belgium
    Posts
    358

    Default

    Lol, even though I noticed, because I always take the time to look at your work , I hadn't really thought about it.
    Just me being brainless; ooh, it changed, but I never really got to; huh, what changed?
    Thanks for sharing!



  4. #4
    Join Date
    Aug 2007
    Posts
    1,259

    Default

    I get a lot of questions about my tag, asking how it does it, if it is just me constantly putting a different one, or what, so I just thought I would be nice and post how I did it.

    Commissions and stickers available via linktree here.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBadvanced CMPS v4.1.1