TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 02, 2024, 06:44:29 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,178
  • Total Topics: 21,220
  • Online today: 151
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 112
  • Total: 113
  • @rjen

random phobia block

Started by Max, August 20, 2007, 11:24:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Max

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

jdvarner

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