View Full Version : Hamma how do you making your sig keep changing?
krayons
2003-11-04, 09:19 AM
:confused:
sutserikeru
2003-11-04, 09:26 AM
i think he uses a .php script or something like that
NoSurrender
2003-11-04, 09:33 AM
yup thats it and it takes up ALOT of bandwith. BTW wut do u guys think of my avatar?
DoomWarrior
2003-11-04, 09:46 AM
Ground Control 2!!!!
He did use a .php script, but still... http://www.planetside-universe.com/forums/images/vbnewstyle01-blue/sendpm.gif
Squeeky
2003-11-04, 10:07 AM
http://www.planetside-universe.com/forums/images/vbnewstyle01-blue/sendpm.gif
Strygun
2003-11-04, 11:25 AM
it's a php script, no mas
Doppler
2003-11-04, 02:38 PM
I find your avatar highly offensive actualy.
TekDragon
2003-11-04, 03:29 PM
Ground Control 2? Wtfh? Is that out?
Hamma
2003-11-04, 04:59 PM
I don't think its out yet. Anyway I use a PHP script
Corrosion
2003-11-04, 06:07 PM
Nice new sigs btw
powdahound
2003-11-05, 02:23 PM
yup thats it and it takes up ALOT of bandwith. BTW wut do u guys think of my avatar?
Doesn't use any more bandiwdth than any other sig of the same size...
Squeeky
2003-11-05, 02:46 PM
<?php
//read folder
$folder=opendir("." );
$names = Array();
while ($file = readdir($folder))
$names[count($names)] = $file;
closedir($folder);
//sort file names in array
sort($names);
//remove any non-images from array
$tempvar = 0;
foreach ($names as $name)
{
$ext = strtolower(substr($name,-4));
if ($ext==".jpg"||$ext==".gif"||$ext=="jpeg"||$ext==".png" )
$names1[] = $name;
}
//random
srand ((double) microtime() * 10000000);
$rand_keys = array_rand ($names1, 2);
//random image from array
$slika = $names1[$rand_keys[0]];
//image dimensions
$dimensions = GetImageSize($slika);
header ("Location: http://staff.planetside-universe.com/squeeky/Sigs/$slika" )
?>
That is the script, for PHP noobies copy paste all that code into Notepad, change the http://staff.planetside-universe.com/squeeky/Sigs/$slika to the appropriate directory and on the "Save As" drop down box select "All Files" and save as sigs.php
Upload to the directory defined in the .php script (the part you edited) and then upload all images you want to that directory (script supports .jpg, .gif, .png, .bmp). Then take the URL (in my case http://staff.planetside-universe.com/squeeky/Sigs/squeeky.php) and paste it with [img] tags in your sig. Viola!
Indecisive
2003-11-05, 08:30 PM
Accually, what he really does, is, he sits at his comp, and anytime someone refreshes, he changes his sig through the CP
:p
JetRaiden
2003-11-05, 08:35 PM
:rofl:
thanks for all the hard work hamma!
Ground control 2, the sequel to the BEST stratigic RTS ever.
EineBeBoP
2003-11-05, 09:53 PM
think im finally gunna set up a .php script for myself :)
SilverLord
2003-11-06, 09:08 AM
he uses speedhack
:rofl: Lol.
vBulletin® v3.8.7, Copyright ©2000-2024, vBulletin Solutions, Inc.