View Full Version : Signature
hl
July 24th, 2005, 01:59 AM
I know it's been up for a while, but I'd just like to get a couple ratings for my signature. I know it's pretty plain but I like it :)
Rate away :)
zoe_says
July 24th, 2005, 02:05 AM
Am I missing something? All I see is a green box?
Edit: I see now it changes colors.
GlamourKills
July 24th, 2005, 02:11 AM
Boring, make it more random, and not one color.
B3NKobe
July 24th, 2005, 02:14 AM
I dont think I can comment on it
imark
July 24th, 2005, 02:32 AM
I like the idea, but it's not very exciting. How about color pallets(sp?)?
Keep the randomness tho ;)
hl
July 24th, 2005, 03:18 AM
people aren't noticing it's a random color. well it is :)
i might do a pallette :)
NoirWD
July 24th, 2005, 03:26 AM
its alright but it doesn't capture to users attention...at first I thought it was just a plain box....maybe added some words, anything that would draw the user.
G
July 24th, 2005, 07:22 AM
nothing to critique on it just a bland single color rectangle :(
Vexir
July 24th, 2005, 07:54 PM
I like it, its like having colour lovers in your siggy :thumb:
Yeah I know I'm wierd, but everything has its uses.
Seb Hughes
July 24th, 2005, 07:56 PM
I am Commentless :love: do you use php to load a random images?
icio
July 25th, 2005, 01:04 PM
it's a pretty cool idea :)
cs2 seb: I'd imagine he generates random hex numbers and then draws the rectangles using php.
hl
July 27th, 2005, 05:00 PM
it's a pretty cool idea :)
cs2 seb: I'd imagine he generates random hex numbers and then draws the rectangles using php.
yep.
heres the code for whoever wants it:
<?
header('Content-type: image/gif');
function leadZero($number){
$narray = preg_split('//', $number, -1, PREG_SPLIT_NO_EMPTY);
$count = count($narray);
if($count == 1){
return "0".$number;
}
else{
return $number;
}
}
$img = imagecreate(300, 60);
$r = rand(1,255);
$g = rand(1,255);
$b = rand(1,255);
$transparent = imagecolorallocate($img, 255,255,255);
imagecolortransparent($img, $transparent);
imagefilledrectangle ( $img, "0", "40", "300", "60", $transparent );
$rancol = imagecolorallocate($img, $r, $g, $b);
$black = imagecolorallocate($img, 0,0,0);
imagefilledrectangle ( $img, "0", "0", "300", "40", $rancol );
imagettftext($img, "6", "0", "255", "48", $black, "silkscreen.ttf", "#" . leadZero(dechex($r)) . leadZero(dechex($g)) . leadZero(dechex($b)));
imagettftext($img, "6", "0", "0", "48", $black, "silkscreen.ttf", "TheSpitBox.net - Coming Soon");
imagegif($img);
imagedestroy($img);
?>
feel free to mod it in anyway you like.
nicholas87
July 27th, 2005, 06:05 PM
It would be cool if it changed without refreshing the page.
Jeff Wheeler
July 27th, 2005, 06:11 PM
That could work by doing a header "Location: $PHP_SELF" after a certain amount of time, without too much trouble I imagine.
hl
July 27th, 2005, 06:22 PM
That could work by doing a header "Location: $PHP_SELF" after a certain amount of time, without too much trouble I imagine.
i don't think that would work. $_SERVER['PHP_SELF'] would most likely be the path to signature.gif
Jeff Wheeler
July 27th, 2005, 06:24 PM
On some servers, $PHP_SELF is a global variable equal to $_SERVER['PHP_SELF'], I just didn't feel like writing out the whole thing.
hl
July 27th, 2005, 06:33 PM
On some servers, $PHP_SELF is a global variable equal to $_SERVER['PHP_SELF'], I just didn't feel like writing out the whole thing.
i know, but i meant that it's probably not going to work.
i'm seeing if i can get it to be an animated gif with random frames every ten second. of course, pausing it would just be a right click away for people.
Jeff Wheeler
July 27th, 2005, 06:34 PM
Alright. I want to see if I can get the timer thing working. It sounds like fun.
hl
July 27th, 2005, 06:36 PM
header("Refresh: 10;" . $_SERVER['PHP_SELF']);
i put that in the file to test it out. it works on the direct thing. (www.thespitbox.net/kirupa/signature.gif) but won't work on the forums.
Jeff Wheeler
July 27th, 2005, 06:38 PM
It doesn't refresh for me at all...
hl
July 27th, 2005, 06:47 PM
like i said, go to www.thespitbox.net/kirupa/signature.gif
it'll refresh every ten seconds. just wait for it.
on the forums: it doesn't work.
REEFˇ
July 27th, 2005, 06:48 PM
I barely stay on a post for 10 seconds, you might wanna think about that.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.