IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
9 Pages V  « < 3 4 5 6 7 > »   
Reply to this topicStart new topic

How To Make A Sig Rotator

, for people with multiple sigs

Rating 1 V
BuffaloHELP
no avatar
More than meets the eye
Group Icon
Group: Admin
Posts: 3,646
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042
myCENT:90.30



Post #41 post 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.

Go to the top of the page
+Quote Post
TripleH13
no avatar
Privileged Member
*********
Group: Members
Posts: 621
Joined: 26-August 05
Member No.: 11,160



Post #42 post Aug 31 2005, 09:58 PM
thanks man it seems cool and i wanted to do this for a while so thanks
Go to the top of the page
+Quote Post
[i]_R_Crazy_Idio...
no avatar
Super Member
*********
Group: Members
Posts: 205
Joined: 17-June 05
Member No.: 8,330



Post #43 post Sep 7 2005, 03:38 AM
Awesomeness, I hope to try this on some other forums as well.
Go to the top of the page
+Quote Post
epox
no avatar
Premium Member
Group Icon
Group: Banned
Posts: 160
Joined: 10-July 05
From: Bogotá, Colombia, South America.
Member No.: 9,238



Post #44 post Sep 7 2005, 05:12 AM
i was asking myself if i could add random text in the same way
Go to the top of the page
+Quote Post
DYABLO
no avatar
Newbie [Level 1]
*
Group: Members
Posts: 18
Joined: 1-September 05
Member No.: 11,376



Post #45 post Sep 7 2005, 05:40 AM
thanks if this really works it would help me alot cause i have so many sigs.
thanks snlildude87 tongue.gif
Go to the top of the page
+Quote Post
Masked
no avatar
Newbie [Level 3]
***
Group: Members
Posts: 43
Joined: 8-July 05
Member No.: 9,181



Post #46 post Sep 7 2005, 08:45 PM
thanks for sharing smile.gif cant wwait to try this one out.
Go to the top of the page
+Quote Post
Saint_Michael
no avatar
$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
*********************
Group: [HOSTED]
Posts: 6,819
Joined: 21-September 04
From: 9r33|\| 399$ 4|\|D 5P4/\/\
Member No.: 1,218
T17 GFX Crew
myCENT:18.90



Post #47 post 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.
Go to the top of the page
+Quote Post
snlildude87
no avatar
Moderator
***************
Group: Members
Posts: 2,325
Joined: 8-March 05
From: Mawson, Antarctica
Member No.: 4,254



Post #48 post 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....
Go to the top of the page
+Quote Post
BuffaloHELP
no avatar
More than meets the eye
Group Icon
Group: Admin
Posts: 3,646
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042
myCENT:90.30



Post #49 post 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
echo "$RandomRotator";
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.
Go to the top of the page
+Quote Post
snlildude87
no avatar
Moderator
***************
Group: Members
Posts: 2,325
Joined: 8-March 05
From: Mawson, Antarctica
Member No.: 4,254



Post #50 post 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.
[right][snapback]183366[/snapback][/right]
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?
Go to the top of the page
+Quote Post

9 Pages V  « < 3 4 5 6 7 > » 
Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   8 -gladiator_us- 836 24th November 2006 - 04:28 PM
Last post by: darkhunter
No New Posts   5 SilverBoarder 570 27th August 2004 - 04:15 AM
Last post by: zip_mc
No New Posts 5 LuciferStar 699 25th September 2004 - 11:48 AM
Last post by: LuciferStar
No New Posts   4 shadowx 1,010 23rd August 2007 - 08:23 PM
Last post by: shadowx
No New Posts   12 Raptrex 1,101 28th August 2004 - 06:55 AM
Last post by: odomike
No New Posts 5 arash 1,648 2nd July 2006 - 02:25 PM
Last post by: garbage
No New Posts   6 Lunaray 349 10th September 2004 - 08:43 AM
Last post by: Lunaray
No New Posts   2 Triple X 344 28th September 2004 - 02:40 AM
Last post by: Triple X
No New Posts   0 dolar123 234 11th April 2008 - 01:48 PM
Last post by: dolar123
No New Posts   4 electriic ink 547 25th July 2006 - 07:28 PM
Last post by: electriic ink
No New Posts   13 Shadow 954 15th October 2004 - 01:51 AM
Last post by: odomike
No new   21 nicky1 2,264 31st August 2006 - 08:29 AM
Last post by: fo0xcr4f7
No new   30 GamerGlitch 5,172 23rd June 2008 - 10:52 AM
Last post by: toolbox03
No New Posts 3 odomike 411 8th November 2004 - 09:30 PM
Last post by: odomike
No New Posts   0