Results 1 to 3 of 3

Thread: How to make dynamic forum signature

  1. #1
    arsfrun is offline Banned
    Join Date
    Jan 2011
    Posts
    24

    Default How to make dynamic forum signature

    If you want to have a dynamic forum signature, try this code

    Code:
    <?php
    $a = array("http://min.us/iQRF8.png", "http://min.us/icvOEu.png", "http://min.us/iB5gi.png");
    $rand_keys = array_rand($a, 1);
    header("Location: $a[$rand_keys]");
    ?>
    Usage:
    Code:
    when use it
    put image code between this link http://www.yoursite.com/yourfile.php
    Output:
    [Image: sig.php]

  2. #2
    moonpeach is offline Junior Member
    Join Date
    Jan 2011
    Posts
    10

    Default

    Thanks , Although your output bit isnt quite working

  3. #3
    Silver's Avatar
    Silver is offline Administrator
    Join Date
    Dec 2009
    Location
    GrowADollar
    Posts
    325

    Default

    You can take this approach further by using mod_rewrite to change the file extension from .php to .jpg so it looks like an actual image file you are trying to embed!

Similar Threads

  1. Replies: 0
    Last Post: 01-17-2011, 02:28 AM
  2. Duplicate dynamic urls
    By Gunner21 in forum Coding
    Replies: 2
    Last Post: 01-06-2011, 04:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •