Jump to content
xisto Community
snlildude87

How To Make A Sig Rotator for people with multiple sigs

Recommended Posts

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.

Share this post


Link to post
Share on other sites

i think in order to display the php to run on here you would have to put the <?php insert "http://forums.xisto.com/no_longer_exists/; ?> something like that (coding is a bit off but you get the idea)if you can work the php to something like that it might work then.

Share this post


Link to post
Share on other sites

What am i doing wrong?
In http://forums.xisto.com/no_longer_exists/ is a folder named sig.png. In that folder is a file named index.php

It has this code:

<?phpHeader("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");Header("Expires: Thu, 19 Nov 1981 08:52:00 GMT");Header("Pragma: no-cache");Header("Content-Type: image/gif");srand((double)microtime()*1000000);$randnum = rand(0,1,2,3);if($randnum == 0){ readfile("http://img398.imageshack.us/img398/8074/siggymoody2copy7ff.jpg");}else if($randnum == 1){ readfile("http://img8.imageshack.us/img8/7831/siggymoody3copy7rm.jpg");}else if($randnum == 2){ readfile("http://img109.imageshack.us/img109/6484/moodysig9pd.gif");}else if($randnum == 3){ readfile("http://img109.imageshack.us/img109/9291/moodysig23bl.png");}?>

The images are uploaded and in my CP is this:
[img]http://moody.trap17.com/sig.png[/img]Gift sigs recieved from: truefusion, mayank

It gives a 'user posted image' error

Share this post


Link to post
Share on other sites

Try this code:

<?phpHeader("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");Header("Expires: Thu, 19 Nov 1981 08:52:00 GMT");Header("Pragma: no-cache");Header("Content-Type: image/gif");srand((double)microtime()*1000000);$randnum = rand(0,3);if($randnum == 0){readfile("http://img398.imageshack.us/img398/8074/siggymoody2copy7ff.jpg");}else if($randnum == 1){readfile("http://img8.imageshack.us/img8/7831/siggymoody3copy7rm.jpg");}else if($randnum == 2){readfile("http://img109.imageshack.us/img109/6484/moodysig9pd.gif");}else if($randnum == 3){readfile("http://img109.imageshack.us/img109/9291/moodysig23bl.png");}?>

Share this post


Link to post
Share on other sites

Oh, man, very thanks it worked :D I like you guys :ph34r:

188958[/snapback]

Yeah, no problem.

 

And if you don't want to waste bandwidth, then you can try this shorter code:

 

<?phpHeader("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");Header("Expires: Thu, 19 Nov 1981 08:52:00 GMT");Header("Pragma: no-cache");Header("Content-Type: image/gif");// Header info, forces no cache and image type of GIF	$sigs = file("http://sang.trap17.com/sig.png/list.txt"); //replace the URL inside with your list.txt	$blah = $sigs[rand(0, count($sigs) - 1)];	$blah = substr($blah, 0, strlen($blah) - 1);	readfile($blah);?>

What that does is it finds a list.txt inside your sig.png folder, picks a random line, and displays it. Your list.txt file is basically a list of all the URLs to your sigs...one per line. Just check out mine if you don't know what I'm talking about: http://forums.xisto.com/no_longer_exists/

 

This is good if you don't want to waste your own webspace and bandwidth.

Share this post


Link to post
Share on other sites

Hi,
I'm using the code above but it never displays the last image on my list and occasionaly nothing displays at all.

<?phpHeader("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");Header("Expires: Thu, 19 Nov 1981 08:52:00 GMT");Header("Pragma: no-cache");Header("(anti-spam-content-type:) image/png");// Header info, forces no cache and image type of GIF$sigs = file("http://forums.xisto.com/no_longer_exists/;; //replace the URL inside with your list.txt$blah = $sigs[rand(0, count($sigs) - 1)];$blah = substr($blah, 0, strlen($blah) - 1);readfile($blah);?>

[url=http://img175.imageshack.us/img175/2914/crossnames0hf.png]http://img175.imageshack.us/img175/2914/crossnames0hf.png[/url][url=http://img.photobucket.com/albums/v240/pistons50/present4staff.png]http://img.photobucket.com/albums/v240/pis...esent4staff.png[/url][url=http://i21.photobucket.com/albums/b287/ScottGfx/GfxsectorStaffSig.png]http://i21.photobucket.com/albums/b287/Sco...torStaffSig.png[/url][url=http://img399.imageshack.us/img399/9938/staffpresent8tr.png]http://img399.imageshack.us/img399/9938/staffpresent8tr.png[/url]

Link

do I need to change something, or is it something to do with my host?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.