Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default Randomised Signature [SAMPLE]

    Here is an example of how to make a randomised signature, that works with vBulletin's URL filtering (I am using it right now):

    PHP Code:
    <?php
    // NintendoNews on HabboxForum
    // Minimalistic Lyrics Signature

    $random rand(1,4); // How many signature do you want to pick from? Replace 4 with the number


    // Make an if statement like this for each signature, replacing
    // "1" with the number of signature, and for example symphony.gif
    // with yoursignature.gif
    if ($random == 1)
        {
            
    header("Location: symphony.gif"); 
        }
    if (
    $random == 2)
        {
            
    header("Location: ruby.gif");
        }
    if (
    $random == 3)
        {
            
    header("Location: crymeariver.gif");
        }
    if (
    $random == 4)
        {
            
    header("Location: iwrotethegospel.gif");
        }
    ?>
    The comments should be self-explanatory. Now, to make it work with HabboxForum, assuming you have saved the above as signature.php, make a file called ".htaccess" and put the following in it:

    RewriteEngine on
    RewriteRule ^signature\.gif$ signature.php
    What that does it makes it so that whenever the server detects you accessing signature.gif, it will send you to signature.php, which will then redirect you to the image. Then, you can put it into your signature in the normal way, just use the normal BBCODE, but link to the actually non-existent signature.gif



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


  2. #2
    Join Date
    Aug 2005
    Location
    London
    Posts
    3,491
    Tokens
    312
    Habbo
    Zamin

    Latest Awards:

    Default

    That is a good guide, well done + Rep
    2013 yay

  3. #3
    Join Date
    Dec 2006
    Location
    Doncaster, UK
    Posts
    4,244
    Tokens
    0

    Latest Awards:

    Default

    Good work - does it work with av's?

    I wouldn't of thought so.
    A collection of forum users' views on obesity
    Quote Originally Posted by mynameisjake View Post
    sounds good
    Quote Originally Posted by Stephen View Post
    Just google it.
    Quote Originally Posted by jesus View Post
    jesus christ
    Quote Originally Posted by Alexicles. View Post
    It will probably soon go away.

  4. #4
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Code:
    <?
    //Chooses a random number
    $num = Rand (1,6);
    //Based on the random number, gives an image
    switch ($num)
    {
    case 1:
    echo "gd/reviewdude.php?text=OMG IYAR!!!! lolol ^_^";
    break;
    case 2:
    echo "gd/reviewdude.php?text=Simon pwns j00";
    break;
    case 3:
    echo "gd/reviewdude.php?text=Check out the poll!";
    break;
    case 4:
    echo "gd/reviewdude.php?text=Becs FTW!";
    break;
    case 5:
    echo "gd/reviewdude.php?text=SUPERLOVE...ZAP!";
    break;
    case 6:
    echo "gd/reviewdude.php?text=Welcome to v5 (:";
    }
    ?>
    Same job just a different code ;p

    Nice guide Tim.

  5. #5
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Invent View Post
    Code:
    <?
    //Chooses a random number
    $num = Rand (1,6);
    //Based on the random number, gives an image
    switch ($num)
    {
    case 1:
    echo "gd/reviewdude.php?text=OMG IYAR!!!! lolol ^_^";
    break;
    case 2:
    echo "gd/reviewdude.php?text=Simon pwns j00";
    break;
    case 3:
    echo "gd/reviewdude.php?text=Check out the poll!";
    break;
    case 4:
    echo "gd/reviewdude.php?text=Becs FTW!";
    break;
    case 5:
    echo "gd/reviewdude.php?text=SUPERLOVE...ZAP!";
    break;
    case 6:
    echo "gd/reviewdude.php?text=Welcome to v5 (:";
    }
    ?>
    Same job just a different code ;p

    Nice guide Tim.
    no that isn't the same principle? and you could just create a random string in the reviewdude.php file :/
    kinda quit.

  6. #6
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    Nice guide but why not just echo the image instead of header?

  7. #7
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default

    Afaik, you can't echo images - I think you'd have to use GD functions to do it, which I could but there's no point, headers do the job.



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


  8. #8
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    echo "<img src=1.gif>";

    you cant echo an image? :\

  9. #9
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Dentafrice View Post
    echo "<img src=1.gif>";

    you cant echo an image? :\
    ...and that will work in your signature, how?
    kinda quit.

  10. #10
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by nets View Post
    ...and that will work in your signature, how?
    PHP Code:
    <?php
    // NintendoNews on HabboxForum
    // Minimalistic Lyrics Signature

    $random rand(1,4); // How many signature do you want to pick from? Replace 4 with the number


    // Make an if statement like this for each signature, replacing
    // "1" with the number of signature, and for example symphony.gif
    // with yoursignature.gif
    if ($random == 1)
        {
           echo 
    "<img src=symphony.gif>";  
        }
    if (
    $random == 2)
        {
            echo 
    "<img src=symphony.gif>"
        }
    if (
    $random == 3)
        {
            echo 
    "<img src=symphony.gif>"
        }
    if (
    $random == 4)
        {
            echo 
    "<img src=symphony.gif>"
        }
    ?>


    Like this: http://giantpanel.co.uk/test.php

Page 1 of 2 12 LastLast

Posting Permissions

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