sig question


Recommended Posts

Originally posted by prasanth16

come on keldyn

Sorry prasanth, i tried searching over the forums for the answer to this one but came up with nothing.

Glad to see you have it sorted now

Keldyn

Link to comment
Share on other sites

Create a file called sig.php on your server (your server must support php)

The following code is for three images, you can modify it for as many images as you want. Make sure the images are in the same directory as the sig.php file. Make sure there is NO WHITESPACE outside of the "<? ?>" tags.


&lt;?

$URL1="sig1.gif";

$URL2="sig2.gif";

$URL3="sig3.gif";

srand((double) microtime() * 1000000);

$num=rand(1,3);

if($num==1)

	@header ("Location: $URL1");

elseif($num==2)

	@header ("Location: $URL2");

else

    @header ("Location: $URL3");

?&gt;

then, in the Neowin User CP put this is your sig table, make sure to replace {'s with [ etc...

{IMG}http://www.yourserver.com/sig.php{/IMG}

Hope that helps :)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.