View Full Version : sigs
Retroactive
2004-01-03, 03:25 PM
hey, im just wondering: how do you get your sig to change each time you post? i've seen Hamma's and Corrosion's and they both look cool. is it a php thingy i've been hearing about? thanks
eXoSloth
2004-01-03, 03:32 PM
Holy crap, we should just stickey this.
<?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://s90801493.onlinehome.us/exo/$slika" )
?>
There is the script. Open it up wordpad and copy/paste it in. Change 'http://s90801493.onlinehome.us/exo/' to whatever folder you want to put all your sigs and this script in. Save the entire thing as something.php. Upload it to the folder you put in your script. Make sure your server is a PHP capable server. Then just put the path to the PHP script between some image tags in your sig and you're done.
BTW if you're having trouble finding a server try www.1and1.com
Edit: Fixed my code tags :rolleyes:
Retroactive
2004-01-03, 03:33 PM
wow thanks
dscytherulez
2004-01-03, 05:29 PM
Yeah, i got pissed off because i couldnt get it to work...BUT I WILL!
Fragmatic
2004-01-03, 06:34 PM
Can someone hook me up with a 1and1 account? I live in england so I can't make the call :(
Anyone help me?
What do you mean path between the images?
dscytherulez
2004-01-03, 07:27 PM
Put the path between these-> ...
Still didn't work what I typed was [.img]http://www.site.blah/sigs/pic[./img][ing]http://www.site.blah/sigs/sig2.php[./img][img]http://www.site.blah/sigs/pic[/img.]
Edit: Links are just there for some reason don't click on them.
JetRaiden
2004-01-03, 09:50 PM
speaking of sigs...can someone make me one? mine got nerfed to hell...I feel like Im prowlering teh forums naked.
Corrosion
2004-01-03, 10:14 PM
I will Jet, My php sig roxxorz :)
Jet.. PM me.
Squeeky
2004-01-04, 01:09 AM
<?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, if your a PHP noobie 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!
Goodluck.
I've answered numerous PM's, and posted this in countless threads. Can we atleast add the above to a FAQ
I tried what it says and put a link like yours but now I see that your link doesn't work as well.
eXoSloth
2004-01-04, 02:19 PM
Mine doesn't work because the real link to mine is http://s90801493.onlinehome.us/exo.gif, which is actually a folder, but I didn't want to confuse people :)
Corrosion
2004-01-04, 04:22 PM
Just updated my sig with random smilie at the bottom.
With my link you just get a apache web server thing with all the files in the folder shown and if I put it as a signature it is just a :withx:
Corrosion
2004-01-04, 04:58 PM
esplain.
dscytherulez
2004-01-04, 05:28 PM
Yeah, when I used hostultra all i got was an x. It seems that they don't allow you to access the pics outside of the main page, those bastards...! I couldn't find anything better, does anyone have a different free host that supports php and that they know works with the script?
Corrosion
2004-01-04, 05:37 PM
www.1and1.com
dscytherulez
2004-01-04, 05:41 PM
Don't you have to pay after three years though? What if I forget about it and 3 years down the line I end up having to pay for it? That scares me, so, do you have to pay if you don't cancel by the end of the 3 years?
www.1and1.com
I couldn't find anything free in there
And
Do you just link to the folder cause it is not found and when I put the link in my browser it shows me what files i have and then I can click on them but it doesn't just pop up with a image.
Hamma
2004-01-04, 07:28 PM
Why is it that everyone thinks everything should be free on the internet.
AztecWarrior
2004-01-04, 07:46 PM
Why is it that everyone thinks everything should be free on the internet.
Because it should, duh. We already pay our ISP.
xmodum
2004-01-04, 07:53 PM
can any1 make me a sig?i want it to do something with this pic
http://www.planetside-universe.com/media/main/misc/concept/tm_vanu_heavy_color_final.jpg
or this pic
http://www.planetside-universe.com/media/main/misc/concept/tm_vanu_light_color_final.jpg
or this 1 would be better
http://www.planetside-universe.com/media/main/misc/concept/Vanu_Group_Shot.jpg
OneManArmy
2004-01-04, 07:56 PM
I would but i suck. ask frog to do it he has the ereet paint skillz.
FlakMan
2004-01-04, 08:13 PM
I can host a rotating sig thing for anyone. I already have a script, just send me the images.
xmodum
2004-01-04, 08:28 PM
no xbox games flakman? i checked out ur game collection
XBOX PWNS ALL OTHER CONSOLES!!!!!!!!!!!!!!!!!!!
halo will eat ur ps2 anytime !!!! :twisted:
Neon Apocalypse
2004-01-04, 08:36 PM
i agree but PC is better in some cases, but nothing beats the teamwork on xbox live
xmodum
2004-01-04, 08:37 PM
neon , u never told me where u got that program to make those 3d pics like ur sig :)
XBOX PWNS ALL OTHER CONSOLES!!!!!!!!!!!!!!!!!!!
You and your kind will be the first against the wall when the revolution comes.
Neon Apocalypse
2004-01-04, 08:43 PM
yes i did xmodum, its called bryce 5 and its made by corel, my clanmate sent me it
if you want it you'll have to buy it, and ill make you a sig just tell me what you want, ill try and finish it this week since school is starting, ill be busy
Corrosion
2004-01-04, 08:59 PM
hah suckers, my school starts next week.
Fragmatic
2004-01-04, 09:02 PM
321, its a php script, you need to install php, dumbass
FlakMan
2004-01-04, 09:04 PM
no xbox games flakman? i checked out ur game collection
XBOX PWNS ALL OTHER CONSOLES!!!!!!!!!!!!!!!!!!!
halo will eat ur ps2 anytime !!!! :twisted:
I have Halo for the PC, where it should have been from the start. There's not enough games on the XBox that really catch my attention enough to get it. The ones that do, my friend already has them so I just go to his house to play.
321, its a php script, you need to install php, dumbass
Your nice.
vBulletin® v3.8.7, Copyright ©2000-2024, vBulletin Solutions, Inc.