TinyPortal

Development => Block Codes => Topic started by: Max on August 20, 2007, 11:24:04 PM

Title: random phobia block
Post by: Max on August 20, 2007, 11:24:04 PM
heres the code for a random phobia block...  enuff said   :P

php block


//
// Random Phobia Script
//
// Font Face
$font ="Verdana";
//
// Font Size
$fontsize ="2";
//
// Link To Text File
$PhobiaFile ="Phobia.txt";
//
// Dont Not Edit Below
// It Does All The Magic For You :)
echo "<font face=\"$font\" size=\"$fontsize\">";
$phobiaquotes = file("$PhobiaFile");
$quote = rand(2, sizeof($phobiaquotes)-1);
echo $phobiaquotes[$quote];
echo "</font>";


upload the phobia text file to your forum directory folder
you can see the block on my site http://thegaff.net/forums
Title: Re: random phobia block
Post by: jdvarner on August 27, 2007, 11:57:19 PM
Works good Max.

Did not that this one:

Hippopotomonstrosesquippedaliophobia - Fear of long words.

Doesn't wrap in a block like the rest of them do. So it distorts the template/page. I just took it out, but thought i'd let ya know.

jd