Testing My Sig
Curve
Join Date: 2003-12-17 Member: 24475Members, Reinforced - Shadow
<div class="IPBDescription">Should be randomised</div> Yay it works its randomised, but a white bg on it now and no transparancy <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad-fix.gif' border='0' style='vertical-align:middle' alt='sad-fix.gif' /><!--endemo-->
Comments
I was going to ask if any one knows how to create transparent backgrounds, because the white fill is annoying me.
n00bs need not answer: "Save it as a gif"
I cant remember the code for transparency in php generated images?
Edit: Got it working so it now works in forums, even ones that have php turned off as a valid file extension for images.
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1--><Files *.png>
ForceType application/x-httpd-php
</Files><!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
And the actual code itself
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1--><?php
if ($_GET['src'] == 1)
{
highlight_file('sig2.png');
die();
}
$goodfiles = array();
$gfpos = 0;
$d = dir('.');
while (($file = $d->read()))
{
if (substr($file, 'png') >= 1)
{
$goodfiles[$gfpos] = $file;
$gfpos++;
}
}
srand(time());
$touse = $goodfiles[(rand()%($gfpos-1))];
header('Content-type: image/png');
header('Pragma: No cache');
$file = fopen($touse, 'r');
while (!feof($file))
{
echo fread($file, 4096);
}
?> <!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
Enjoy all, remember to save as blah.png
please use the search function or use your eyes and look carefully! the topic is !webbed!
And the official thread is also for requesting and show sigs... not just testing the one you've just made...
basicly any sig related should go there.
and yea, +1... saved you from saying it