SRL Archive - Help and Support

PHP...Stats thing...!


mage of begu

2007-03-31 10:52:51

Ok, ive seen Sumilion has the stats thing and StarBlaster too…for their script…id like to have one too…is there any tutorials for that or any kind of help…?

Sumilion

2007-03-31 11:19:24

Gotta have c0de for that :)

mage of begu

2007-03-31 13:48:02

From: Sumilion
Gotta have c0de for that :)


Deleted…:D

Starblaster100

2007-03-31 17:37:11

lol, the person "c0de" coded our sigs for us, using PHP.
Thats what Sumilion meant ;)

mage of begu

2007-03-31 17:49:36

From: Starblaster100
lol, the person "c0de" coded our sigs for us, using PHP.
Thats what Sumilion meant ;)


ohh… :D … lolz…i thought i need the CODE (the PHP thing) :D…hehe…i gonna ask him :D…!
Edit: He knows how to encrypt php then :D

danrox2004

2007-03-31 21:32:35

You need a my sql database.. All the image functions are in the GD library - http://au3.php.net/gd. Make a background image, with the name of the script or whatever then get the coordinates that you want the text to be, and save the font you want to the server. Then write the text to the image using imagettftext.

mage of begu

2007-04-01 05:26:21

From: danrox2004
You need a my sql database.. All the image functions are in the GD library - http://au3.php.net/gd. Make a background image, with the name of the script or whatever then get the coordinates that you want the text to be, and save the font you want to the server. Then write the text to the image using imagettftext.


Thank you very much…i will try this one…but if i get pissed … i will just let c0de do it…! (if he wants)

danrox2004

2007-04-01 07:22:35

alright… i may be able to do it if i find the password to my host…

mage of begu

2007-04-01 07:44:38

From: danrox2004
alright… i may be able to do it if i find the password to my host…


Ok, i have now a problem…i dont seem to get GD to work…im not even sure if i did it right ;) im using freehostia.com…could you give me instruction how to do it correctly ?…i have no idea how to do this :( but id like to learn…damn…it gets the image for me…but it doesnt seem to put the text to it…heres my PHP part:

[PHP]<?php
header("Content-type: image/png");
$string = $_GET['text'];
$im = imagecreatefrompng("images/button1.png");
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);
?> [/PHP]

and i dont have GD installed on freehostia :D cause i dont know if it has to be there :D…instructions would be great…ty…!

Infantry001

2007-04-08 23:44:38

well, evne though hes banned, i would like to know :)

if you could spare some time, maybe you could explain to me a little bit?