Scaper
07-25-2008, 01:56 AM
ok im wanting to get a dynamic sig for my prayer script/with and extra feature i want a sig with a picture behind like pVh's and hy's but i dont have the foggiest of how to do it
i want it to say how long it worked,how many bones burried and xp earned
can some1 help me pleae and tell me how to do 1 of these
if you get what im saying?
thanks
NiCbaZ
07-25-2008, 06:40 AM
done take my work on this :p ive never made one but im ok in php so i think i have an idea.... make the image, get a server and just the code from srls dynamic signature and juts make some php code to wrte on it or just get c0de or pvh 2 do it for u :p
Its made in .php code.
Add me on msn: pvh@live.nl
And I'll make one for you ;)
PvH
P1nky
07-25-2008, 08:06 AM
PHP brotha...
its all php
ye pvh is pretty good he can help ye
MasterKill
07-25-2008, 09:10 AM
PHP FTW!
i'll show you how my sig is done:
<?PHP
function between($betw, $betw2, $str)
{
$str = " " . $str;
$pos = strpos($str, $betw);
if ($pos > 0)
{
$str2 = substr($str, $pos + strlen($betw));
$pos2 = strpos($str2, $betw2);
if ($pos2 == 0)
return '';
return substr($str2, 0, $pos2);
}
else
return '';
}
header('Content-type: image/png');
$curl = file_get_contents('http://www.stats.srl-forums.com/index.php?action=view_script&id=275'); // read srl stats page
$Sig = imagecreatefrompng('./IronMineSig.PNG'); // get the background img from your host, in the same map as the php file
$Time = Between('Worked : <strong>', '.', $curl);
$Time = Str_Replace('Years', 'Yr,', $Time);
$Time = Str_Replace('Months', 'Ms,', $Time);
$Time = Str_Replace('Weeks', 'We,', $Time);
$Time = Str_Replace('Days', 'D,', $Time);
$Time = Str_Replace('Hours', 'H,', $Time);
$Time = Str_Replace('Minutes', 'M', $Time);
$Mined = Between('mined : <strong>', '<', $curl);
$Responds = Between('onds : <strong>', '<', $curl);
$white = imagecolorallocate($Sig, 255, 255, 255); // create color for text
imagettftext($Sig, 10, 0, 72, 61, $white, './LevelFont.ttf', Trim($Time));
imagettftext($Sig, 10, 0, 72, 96, $white, './LevelFont.ttf', Trim($Mined." Ore's"));
imagettftext($Sig, 10, 0, 72, 131, $white, './LevelFont.ttf', Trim($Responds));
imagepng($Sig); // compile sig
?>
So for a dynamic sig you need:
a hosting place with PHP
a php file like above
a image for the background
a font file (.TTF)
StrikerX
07-25-2008, 10:33 AM
So for a dynamic sig you need:
[list] a hosting place with PHP
mind giving us an example. I cant find any Free ones...
MasterKill
07-25-2008, 11:19 AM
mind giving us an example. I cant find any Free ones...
www.freehostia.com
pritty good one
Laur€ns
07-25-2008, 12:45 PM
I thougt 110MB had php too, but not sure.
Freehostia FTW
I upload everything there:p
If anyone needs help with dynamic siggies, add me on msn: pvh@live.nl ;)
PvH
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.