PDA

View Full Version : PHP Powered Signature Features



timROGERS
23-12-2005, 04:10 PM
I've added some new things to my signature, which load the profile of a random member, load a random thread or load a random forum. Their done with some easy customizing of a piece of simple PHP Nets posted a while ago, I'm just reposting it to share the joy ;D I've put some comments in the code to make it easier to understand. This is the random forum code:


<?
$end = rand(1, 664); /* Randomizes a number from 1 to 664 (current latest forum) and sets it as the variable "$end" */
$address = "habboxforum.com/forumdisplay.php?f="; /* Sets the variable "$address" as the forum display page without the forum number */
$location = "$address$end"; /* Puts the forum display and the randomized number together and sets it as "$location" */
header("location: http://$location"); /* Sends your browser to the randomized address (variable "$location") */
?>

nets
24-12-2005, 03:03 PM
I thought no one read that thread :o

Tomm
24-12-2005, 03:30 PM
vBulletin Message

Invalid Forum specified. If you followed a valid link, please notify the administrator

Steven.
24-12-2005, 03:33 PM
That looks quite funky O_O *Goes and does it on my site ;o*

Want to hide these adverts? Register an account for free!