timROGERS
09-02-2007, 06:10 PM
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
// 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 :)
<?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 :)