|
|
|
|
![]() ![]() |
![]() Group: Admin
Posts: 3,646 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 myCENT:90.30 |
Post
#41
Aug 31 2005, 08:58 PM
thablkpanda, Please stay within the topic. If it's a question pertaining to your post you can PM moderators directly. What was your topic title? PM me with your answer, please. According to your post records the last post you made was just recently. snlildude87, I created a folder quote.png and place my index.php like so CODE <?php /************************************************** **********************/ /* PHP RandomRotator v1.0 */ /* =========================== */ /* */ /* Written by Steve Dawson - http://www.stevedawson.com */ /* Freelance Web Developer - PHP, Perl and Javascript programming */ /* */ /* This program is free software. You can redistribute it and/or modify */ /************************************************** **********************/ ## HTML or plain text can be randomised. see associated random.txt for the quotes/html. ## See the associated ReadMe.txt file for full installation instructions. ## The name of the .txt file which hold the rotating info (currently random.txt) $filename = "random.txt"; $file = file($filename); srand((double)microtime()*1000000); while ($RandomRotator == "") { $RandomRotator = ereg_replace("\n","",$file[rand(0,count($file))]); } ## This prints the banner, quotes or random text, or whatever is in the random.txt file print "$RandomRotator"; ?> and my random.txt as CODE "The HERO is one who knows how to hang on one minute longer." -Norwegian Proverb. "The noblest service comes from nameless hands, and the best servant (as the Lord has taught us) does his or her work Unseen." -Anonymous Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. -Unknown Half of my life is revision of the other half. -Unknown ...quick to compassion, slow to anger... -JC ...to express unique idea with unique words is called genius -Me" All I'm getting is a small box with saying, 'user posted image' and nothing. I even tried to disguise random.txt as random.jpg but failed. I even tried to have random.txt as CODE <img alt="my random quote"> <img alt="my random quote2"> so that the image box will come up but the quote would be in the image frame. It works in the regular browser (either ways) but not for the forum. Thank you. |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 621 Joined: 26-August 05 Member No.: 11,160 |
Post
#42
Aug 31 2005, 09:58 PM
thanks man it seems cool and i wanted to do this for a while so thanks
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 205 Joined: 17-June 05 Member No.: 8,330 |
|
![]() Group: Banned
Posts: 160 Joined: 10-July 05 From: Bogotá, Colombia, South America. Member No.: 9,238 |
|
![]() Group: Members
Posts: 18 Joined: 1-September 05 Member No.: 11,376 |
Post
#45
Sep 7 2005, 05:40 AM
thanks if this really works it would help me alot cause i have so many sigs. thanks snlildude87 |
![]() ![]() ![]() Group: Members
Posts: 43 Joined: 8-July 05 Member No.: 9,181 |
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED]
Posts: 6,819 Joined: 21-September 04 From: 9r33|\| 399$ 4|\|D 5P4/\/\ Member No.: 1,218 ![]() myCENT:18.90 |
Post
#47
Sep 7 2005, 09:03 PM
yeah what snlil ysaid ou would have to echo the php then it should pop up, and i just noticed that now about the random quotes, i never noticed it before.
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 2,325 Joined: 8-March 05 From: Mawson, Antarctica Member No.: 4,254 |
Post
#48
Sep 7 2005, 09:30 PM
I'm not sure if the echo will work, but I think that it should.... Buffalo, I see that you double spaced your quotes file. It needs to be single spaced. See if that works.... |
![]() Group: Admin
Posts: 3,646 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 myCENT:90.30 |
Post
#49
Sep 8 2005, 12:18 AM
I edited my random.txt to be single spaced. I edited so that it shows as CODE ## This prints the banner, quotes or random text, or whatever is in the random.txt file as the last line. But it fails. Here is the link http://buffalohelp.net/dev/random_quotes.png and see if you can work it out.echo "$RandomRotator"; |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 2,325 Joined: 8-March 05 From: Mawson, Antarctica Member No.: 4,254 |
Post
#50
Sep 8 2005, 01:46 AM
QUOTE(BuffaloHELP @ Sep 7 2005, 09:18 PM) Here is the link http://buffalohelp.net/dev/random_quotes.png and see if you can work it out. Hmm, the link works, and I can see the quotes in text form. Are you saying that it doesn't work when you call it from trap17?
[right][snapback]183366[/snapback][/right] |
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | ||
|---|---|---|---|---|---|---|
![]() |
8 | -gladiator_us- | 836 | 24th November 2006 - 04:28 PM Last post by: darkhunter |
||
![]() |
5 | SilverBoarder | 570 | 27th August 2004 - 04:15 AM Last post by: zip_mc |
||
![]() |
5 | LuciferStar | 699 | 25th September 2004 - 11:48 AM Last post by: LuciferStar |
||
![]() |
4 | shadowx | 1,010 | 23rd August 2007 - 08:23 PM Last post by: shadowx |
||
![]() |
12 | Raptrex | 1,101 | 28th August 2004 - 06:55 AM Last post by: odomike |
||
![]() |
5 | arash | 1,648 | 2nd July 2006 - 02:25 PM Last post by: garbage |
||
![]() |
6 | Lunaray | 349 | 10th September 2004 - 08:43 AM Last post by: Lunaray |
||
![]() |
2 | Triple X | 344 | 28th September 2004 - 02:40 AM Last post by: Triple X |
||
![]() |
0 | dolar123 | 234 | 11th April 2008 - 01:48 PM Last post by: dolar123 |
||
![]() |
4 | electriic ink | 547 | 25th July 2006 - 07:28 PM Last post by: electriic ink |
||
![]() |
13 | Shadow | 954 | 15th October 2004 - 01:51 AM Last post by: odomike |
||
![]() |
21 | nicky1 | 2,264 | 31st August 2006 - 08:29 AM Last post by: fo0xcr4f7 |
||
![]() |
30 | GamerGlitch | 5,172 | 23rd June 2008 - 10:52 AM Last post by: toolbox03 |
||
![]() |
3 | odomike | 411 | 8th November 2004 - 09:30 PM Last post by: odomike |
||
![]() |
0 |