The one and only signature creation thread

Can someone tell me how i'd make a PHP script to cycle through several sigs?
Im thinking of making a few sigs, each one highlighting something i like, for example, my existing one, but tarted up, for AC Milan, a JMJ one, a LJ one, SP, Hives, Scrubs.

##EDIT##
In 'The Gimp' how do i add a border/outline to some text that i put in the program?
Also, how would i add transparency to certain parts of a picture? Im trying to make a new Milan sig and i need the white background to be transparent, but not the white in the actual logo.

Thanks in advance. :)
 
Last edited:
G18241 said:
wired0bf.jpg


There you go pal, kept it under 20k for you as well :) that ok? looks a little over compressed at 20k so if you want it a little higher let me know ;)

Had to change it a bit because i couldnt get it the same as before :)

yea thats cool, thanks mate
 
Ive done some quickly. Still need to redesign a Milan one though:
Tell me what you think:

SigHives.jpg


SigJMJ1.jpg


SigJMJ2.jpg


SigSnow.jpg


SigLJ.jpg


If people can make suggestions for improvements, it'd be appriciated.
Thanks.
 
anyone wanna make me one plz??? i was using sloganizer one but it was 2 big

i tried making one myself but the scale was all wrong

i like...

halo
hl2
bmw m2 csl

i hate
ipods...

thanks...
 
Can someone make me a sig please? :)

With my girlfriend in it:

Heres pic:

emma3.jpg


Anything else in it (for background) :)

Maybe get rid of sticking out hair? (to the right of pic) :)
TIA !
 
can someone make me a sig plzzzzzzzzzzzzzzzzzzzzz :(((

i would like a "ganstar" sig, so cheezeeeeeee, i would like tupac-nas and The game on it THXXXXXX <3
 
BoomAM said:
Can anyone help me with the php scripts so i can cycle through some sigs of mine?

Rob wrote the following midway through this thread

<?php
// You'll need to change this next line. Leave a trailing slash.
$dir = 'path/to/signature/images/;
$dh = opendir($dir);
while (false !== ($filename = readdir($dh))) {
$files[] = $filename;
}
$image = $files[rand(0, count($files))];

header('Location: '.$dir.$image);
?>
 
The frankly awesome Rob also wrote this better, shinier and more compact script at some point in the thread:

Code:
<?php
$files = glob('{*.PNG,*.png,*.JPG,*.jpg,*.GIF,*.gif}', GLOB_BRACE);
header('Location: '.$files[array_rand($files)]);
?>

:cool:
 
robmiller said:
The frankly awesome Rob also wrote this better, shinier and more compact script at some point in the thread:

Code:
<?php
$files = glob('{*.PNG,*.png,*.JPG,*.jpg,*.GIF,*.gif}', GLOB_BRACE);
header('Location: '.$files[array_rand($files)]);
?>

:cool:
That doesn't work. The image is cached due to it being redirected rather than the image being dynamically generated, therefore, you have to CTRL+F5 to get the image to change :)
 
Well you could just readfile() it and either rely on the browser to auto-detect the content type or determine it yourself.

Code:
<?php
$files = glob('{*.PNG,*.png,*.JPG,*.jpg,*.GIF,*.gif}', GLOB_BRACE);
$im = $files[array_rand($files)];
header('Content-Type: '.mime_content_type($im));
readfile($im);
?>
 
robmiller said:
Well you could just readfile() it and either rely on the browser to auto-detect the content type or determine it yourself.

Code:
<?php
$files = glob('{*.PNG,*.png,*.JPG,*.jpg,*.GIF,*.gif}', GLOB_BRACE);
$im = $files[array_rand($files)];
header('Content-Type: '.mime_content_type($im));
readfile($im);
?>
Which is how I do it in my current rotation script :p
 
Cool.
Now i just need to know how the heck to use it.
I take it i put the script into notepad, save as a *.php, and drop it in the same directory on my webspace as my sig images. And then on this forum, have the image link goto the php file?

##EDIT##
Or not.
How do i use these scripts then?
If only it was as simple as a dos batch file. :p
 
Last edited:
1. Stick this in a file, and call it rotate.php:

Code:
<?php
$files = glob('{*.PNG,*.png,*.JPG,*.jpg,*.GIF,*.gif}', GLOB_BRACE);
$im = $files[array_rand($files)];
header('Content-Type: '.mime_content_type($im));
readfile($im);
?>

2. Create a new directory on your web server. Put the script you just created in it, along with all the images you'd like to rotate.

3. Put this into your signature, replacing domain.com with the appropriate URL:

[img]
 
Back
Top Bottom