Jump to content
xisto Community
snlildude87

How To Make A Sig Rotator for people with multiple sigs

Recommended Posts

Hi,

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

 

--code removed to preserve layout--

 

--removed to preserve layout--

 

Link

 

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

190008[/snapback]

It's probably uour host. Make sure that it can support PHP. If not, you might need to change hosts. Also, make sure the URL to list.txt is correct. I got 404ed when going to http://forums.xisto.com/no_longer_exists/.

 

 

nice code man

190860[/snapback]

Thank you, but next time, try to post more.

 

 

where do u get the renders from in your sig

191307[/snapback]

Just do a search on Google. Xisto also has its own resources forum. Check it out: http://forums.xisto.com/no_longer_exists/ Edited by snlildude87 (see edit history)

Share this post


Link to post
Share on other sites

Nice thing I like that sig rotator what lots of members in this forum uses, but I have an problem:

I made everything said in this topic:
1) Uploaded most of my sigs on dawiss.trap17.com
2) then made that index.php
3) I made an sig.png folder on my server and put there in that index.php
4) When I run it is says there is an error in:

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/hosts/djss.lv/www/sig.png/index.php:8) in /usr/local/hosts/djss.lv/www/sig.png/index.php on line 9Warning: Cannot modify header information - headers already sent by (output started at /usr/local/hosts/djss.lv/www/sig.png/index.php:8) in /usr/local/hosts/djss.lv/www/sig.png/index.php on line 10Warning: Cannot modify header information - headers already sent by (output started at /usr/local/hosts/djss.lv/www/sig.png/index.php:8) in /usr/local/hosts/djss.lv/www/sig.png/index.php on line 11Warning: Cannot modify header information - headers already sent by (output started at /usr/local/hosts/djss.lv/www/sig.png/index.php:8) in /usr/local/hosts/djss.lv/www/sig.png/index.php on line 12

and after this there is very long line with some kind of glitch words...

This is my code I put in index.php:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://forums.xisto.com/no_longer_exists/ Document</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body><?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,10);if($randnum == 0){ readfile("http://forums.xisto.com/no_longer_exists/ if($randnum == 1){ readfile("http://forums.xisto.com/no_longer_exists/ if($randnum == 2){ readfile("http://forums.xisto.com/no_longer_exists/ if($randnum == 3){ readfile("http://forums.xisto.com/no_longer_exists/ if($randnum == 4){ readfile("http://forums.xisto.com/no_longer_exists/ if($randnum == 5){ readfile("http://forums.xisto.com/no_longer_exists/ if($randnum == 6){ readfile("http://forums.xisto.com/no_longer_exists/ if($randnum == 7){ readfile("http://forums.xisto.com/no_longer_exists/ if($randnum == 8){ readfile("http://forums.xisto.com/no_longer_exists/ if($randnum == 9){ readfile("http://forums.xisto.com/no_longer_exists/ if($randnum == 10){ readfile("http://forums.xisto.com/no_longer_exists/ if($randnum == 11){ readfile("http://forums.xisto.com/no_longer_exists/;

Then I put this code in my signature and it didn't show the image rotating ;):
[img]http://forums.xisto.com/no_longer_exists/;

So please help someone, because something isn't right ;)...

Share this post


Link to post
Share on other sites

well I tell you what you did wrong in order to run any php script it has to be a seperate document meaning you have to put the code in and save it as sig.php then you would a comman in your script for it to activate the php document.and with what you did it won't run at all its one of those web design things i guess but get with me online and I tell you how to fix it.

Share this post


Link to post
Share on other sites

hello i googled sig rotator and found this place and when i tryed it didnt work i jus got user posted image every time here is my 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("(anti-spam-(anti-spam-(anti-spam-content-type:))) image/gif");srand((double)microtime()*1000000);$randnum = rand(0,20);if($randnum == 0){ readfile("http://img62.imageshack.us/img62/8010/timotegreen6nu.jpg");}else if($randnum == 1){ readfile("http://img118.imageshack.us/img118/6783/timotezappedcopy8fv.jpg");}else if($randnum == 2){ readfile("http://img294.imageshack.us/img294/1831/lightningsigcopy3na.jpg");}else if($randnum == 3){ readfile("http://img56.imageshack.us/img56/3904/contestcopy4tv.jpg");}else if($randnum == 4){ readfile("davesbasement.org/Images/truculentsiggilneas copy.jpg");}else if($randnum == 5){ readfile("http://img363.imageshack.us/img363/6175/thecrowcopy4cs.jpg");}else if($randnum == 6){ readfile("http://img279.imageshack.us/img279/5476/swordssigcopy7mc.jpg");}else if($randnum == 7){ readfile("http://img466.imageshack.us/img466/1623/timoteff6np.jpg");}else if($randnum == 8){ readfile("http://img524.imageshack.us/img524/479/4thcallengecopy4hu.jpg");}else if($randnum == 9){ readfile("http://img235.imageshack.us/img235/6094/strangersigcopy2of.jpg");}else if($randnum == 10){ readfile("http://img113.imageshack.us/img113/4779/seconddraftcopy3fd.jpg");}else if($randnum == 11){ readfile("http://img22.imageshack.us/img22/6207/medallion1hn.jpg");}else if($randnum == 12){ readfile("http://img225.imageshack.us/img225/4857/dragstersigcopy6bv.jpg");}else if($randnum == 13){ readfile("http://img460.imageshack.us/img460/5278/bestsigever5ng.jpg");}else if($randnum == 14){ readfile("http://img481.imageshack.us/img481/2158/fire3xc.jpg");}else if($randnum == 15){ readfile("http://img488.imageshack.us/img488/2438/gowsigcopy2xh.jpg");}else if($randnum == 16){ readfile("http://img460.imageshack.us/img460/389/shadowfire29zh.jpg");}else if($randnum == 17){ readfile("http://img357.imageshack.us/img357/3845/demon2copy7bd.jpg");}else if($randnum == 18){ readfile("http://img426.imageshack.us/img426/3629/dark6xs.jpg");}else if($randnum == 19){ readfile("360designs.org/uploadfolder/aotw1%20copy.jpg;;}?>

and i had it linked to


davesbasement.org/sig.png;

and i jus got this every time


Share this post


Link to post
Share on other sites

the only think I can think is that you didn't make the folder remember make a new folder and call it sig.png.

Share this post


Link to post
Share on other sites

i am guessing that you add this

<?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/gif");
// Header info, forces no cache and image type of GIF

$sigs = file("http://forums.xisto.com/no_longer_exists/;); //replace the URL inside
$blah = $sigs[rand(0, count($sigs) - 1)];
$blah = substr($blah, 0, strlen($blah) - 1);
readfile($blah);
?>


to an index.php file? and if so, mine is not working for me...

Share this post


Link to post
Share on other sites

i foudn thsi psted else where my saint michel and ive been trying it but i cant figure it out:

 

Today, I will show you how to make a sig rotator similar to mine (refresh a page with my post, and you will see a different sig each time). We will use the sig rotator to display random sigs here at Xisto.

  1. [*]Create a folder called sig.png

Actually, the folder can be called anything, but since we will be using the rotator here, it has to be called sig.png because Invision Power Board may not allow weird extensions. You can replace png in sig.png with any valid image extensions such as gif of jpg.

[*]Create a file called index.php

If you need help renaming a file to .php, post below. In the file, copy and paste the following code

index.php:

Code:

 

<?php Header("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-(anti-spam-content-type:)) image/gif"); srand((double)microtime()*1000000); $randnum = rand(0,1); if($randnum == 0) { readfile("http://forums.xisto.com/no_longer_exists/;); } else if($randnum == 1) { readfile("http://forums.xisto.com/no_longer_exists/;); } ?>

 

 

 

then in your forum sig block but this code in

Code:

 

[img ]http://forums.xisto.com/no_longer_exists/'>http://forums.xisto.com/no_longer_exists/[ /img]http://forums.xisto.com/ make sure to have no gaps in your bbcode either.

 

 

and if done correctly you will something similar to mine at the bottom.


i have this

 

<?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-(anti-spam-content-type:)) image/gif");	srand((double)microtime()*1000000);	$randnum = rand(0,1);	if($randnum == 0)	{  readfile("kyle.trap17.com/pictures/mine/sig.png/;;	}	else if($randnum == 1)	{  readfile("kyle.trap17.com/pictures/mine/sig.png/;;	}?>

and it dont work??????

 

anyone give me a tutorial with pictures? or saint michal can you help me out please pm me or pst here all help needed thanks

 

Notice from BuffaloHELP:
All codes go under CODE bbcodes.

Share this post


Link to post
Share on other sites

trap doesnt allow png files if thats the problem "filetype not allowed"change the folder to .gif and your link to match I had that problem not sure if thats all your problem is since you gave a very detailed description of "it doesn't work"

Share this post


Link to post
Share on other sites

SIG.PNG is actually a folder name. It is to trick the forum thinking that it's calling a PNG file but in reality SIG.PNG is a folder name and it contains index.php with the above coding. So naturally it executes without a hitch.Please try again. By the way, you could have replied to the Sig Rotator Tutorial instead of creating a new topic. Please refrain from that next time. All "like" posts and questions should be under the same and one topic. Merging.Also check to see if you have hotlink enabled. You need to disable it or allow direct URL link.

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.