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") */
?>
<?
$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") */
?>