PDA

View Full Version : How do you change your sig everytime somone sees it.


321
2003-08-16, 11:54 PM
I've seen people with sigs that change every time you see it in a cycle. Like you see it once and then you click refresh and you see a different sig from the same person. And if you click it enough it will show you the same one you saw at first. Can somone please tell me how to do this?

Derfud
2003-08-17, 12:32 AM
I think they may actually be random. I dont know how to do it. But i'm sure it's some kind of BB code.

Squeeky
2003-08-17, 12:44 AM
Originally posted by Derfud
I think they may actually be random. I dont know how to do it. But i'm sure it's some kind of BB code.

It's actually a .php script, you need a server that supports PHP 4.0+ to host the script on

Derfud
2003-08-17, 12:55 AM
Ah, now i get it, you link the picture to the image url, and then that URL is always changing the images. Makes sense.

eXoSloth
2003-08-17, 01:05 AM
Squeek, is there a place I could get my hands on one of those scripts, or do I have to write one my self? I know a place where I can get 10 megs free /w PHP.

321
2003-08-18, 02:45 AM
Thanks for telling me and I would also like to know if I could get the script.

Kaikou
2003-08-18, 02:57 AM
I've already made 6 sigs, the below one being the most recent..I really wanna get some kind of PHP script going because it's annoying having to change them every few days...

Revenant
2003-08-18, 03:14 AM
Originally posted by Kaikou
because it's annoying having to change them every few days...

No one says you have to change them every few days.....

Doobz
2003-08-18, 03:18 AM
Hey, Rev, that new Rancid album any good? i've heard Fall Back Down and Red Hot Moon and really liked those 2, how's the rest of it?

Revenant
2003-08-18, 04:14 AM
Originally posted by Doobz
Hey, Rev, that new Rancid album any good? i've heard Fall Back Down and Red Hot Moon and really liked those 2, how's the rest of it?

Yea, those are the best tracks so far, IMO. You see the video for FBD yet?
As for the rest of the album, I've looked around, but haven't found any mp3's on it. A certain P2P program has RIAA fakes all over it, so I guess we'll have to wait till the 20th to hear some of the real stuff, see if it's worth buying.
From what I read in a recent issue of Alternative Press, there should be some Tim/Lars singing duels like from "... And Out Come The Wolves" :thumbsup:


And to make this totally not off topic..... So how bout that script.... anyone have it.....? :D :p

Doobz
2003-08-18, 04:24 AM
yeah, i saw the video on All Things Rock late one night, really good song

judging from all the recent songs by Rancid, i really like the direction they're headed in

Revenant
2003-08-18, 04:28 AM
I don't mind them going a bit more commercial, as long as they stay true to the message...

Ghryphen
2003-08-18, 11:28 AM
Magick

Squeeky
2003-08-18, 12:00 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!

Ghryphen
2003-08-18, 12:08 PM
Some boards like Invision don't like the folder or .php as a image location, so I named my folder gryphav.gif with index.php as the script.

321
2003-08-21, 02:26 AM
Ok thanks for the help Squeeky.

321
2003-08-29, 02:47 AM
Hopefully people are still looking at this thread. Ok I edited the .PHP script that Squeeky gave me, even though I was unsure what to put in the first and second places where I had to edit it so I put the link where I wanted it and I put the same link on both places.
Was that the wrong thing to do?
And then I got stuck

Orignally Posted by Squeeky Upload to the directory defined in the .php script (the part you edited)

What exactly do you mean Upload what to it the .PHP script I edited to it upload it to the site using FTP? so if it would be www.<domainname>.com/sigs I would upload it to the folder sigs?

and then again there was another place I got stuck.

Originally Posted by Squeeky upload all images you want to that directory

Do you mean to the same folder like sigs or do you mean edit the .PHP script somehow to include it?

Squeeky
2003-08-29, 04:33 AM
321, do this.

E-Mail me the sigs you want hosted, and i will randomize them on the PSU server for you. [email protected] :)

Hamma
2003-08-29, 01:42 PM
Originally posted by Squeeky
321, do this.

E-Mail me the sigs you want hosted, and i will randomize them on the PSU server for you. [email protected] :) no.

We cant start offering free sig hosting :rofl:

321
2003-08-29, 03:30 PM
Originally posted by Hamma
no.

We cant start offering free sig hosting :rofl:

Ok:( .

Squeeky
2003-08-29, 04:57 PM
Originally posted by Hamma
no.

We cant start offering free sig hosting :rofl:

Just one small directory on my staff page.

Ok, email to me still at that address and i will host it on my ISP page :p

Strygun
2003-08-29, 04:59 PM
Originally posted by Squeeky
Just one small directory on my staff page.

Ok, email to me still at that address and i will host it on my ISP page :p

I'm surprised your ISP offers PHP hosting.

Squeeky
2003-08-29, 05:02 PM
Originally posted by Strygun
I'm surprised your ISP offers PHP hosting.

I've hosted this script on there once before. DIdn't have any problems

It's OFN that Cox>All (Especially comcast)

If not, i will have a friend loan me some space :D

ajohn505
2003-08-29, 08:41 PM
Take, take, take, 321. Why don't you ever give?

Squeeky
2003-08-29, 08:45 PM
wtf john? Chill out....i haven't seen you contirbute anything....

321
2003-08-29, 11:44 PM
Originally posted by ajohn505
Take, take, take, 321. Why don't you ever give?

Don't act like you know me. How do you know I never give?

BUGGER�GHO�T
2003-08-30, 02:03 AM
common guys, last thing i wana see here is squeeky going all pissy again.


k jw, is there any free website that supports the code? jw....

Khronos
2003-08-30, 02:35 AM
Originally posted by Squeeky

Cox>All

yes i think we all agree that cox > all. :lol:

Strygun
2003-08-30, 09:13 AM
Originally posted by BUGGER�GHO�T
common guys, last thing i wana see here is squeeky going all pissy again.

Onizuka
2003-08-30, 10:45 AM
Originally posted by BUGGER�GHO�T
common guys, last thing i wana see here is squeeky going all pissy again.