View Full Version : Its simple but i cannot figure out how

01-04-2006, 10:47 PM
I need a script that can parse this page: http://aoe.cuetech.de/ranking-services/playerinfo?name=ElitE&mode=5 and display it on a colored background, like a forums signature. but the ElitE in the link above would need to be able to be changed to other peoples usernames. the format for the above link is nickname;rank;rate;wins;losses on the image it should display the value for nickname, rate (to the first 2 decimal places), wins and losses, NOT rank. how would i make a script that would do this, it is very important and needs to be done by the end of the month.

Sorry if i described anything wrong up there im not an expert at php, only a begginner, but i learn well.

Thx for the help :p

01-05-2006, 01:25 AM
Ill let you know, this is the first REAL script i have made for someone on this forums, i am usually the one requesting help, but i decided i could do this for you.

you will need gd installed on the server.
you would have to use a
try something like this:

header("Content-type: image/png");
$string = "ElitE;11970;1627.82722487164;24;19";
list($nick, $rank, $rate, $wins, $losses) = explode(";", $string);

$im = imagecreate(400,150);
$bg = imagecolorallocate($im,255,0,0);
$tc = imagecolorallocate($im,255,255,255);

imagestring($im, 5, 5, 5, "Name: $nick", $tc);
imagestring($im, 5, 5, 15, "Rank: $rank", $tc);
imagestring($im, 5, 5, 25, "Rate: $rate", $tc);
imagestring($im, 5, 5, 25, "Wins: $wins", $tc);
imagestring($im, 5, 5, 25, "Losses: $losses", $tc);


01-05-2006, 02:26 AM
thx lol, i had it figured out b4 you responded, but thanks for the post anyway, im sure someone can use it.

01-05-2006, 02:36 AM
i don't quite understand what this script does

01-05-2006, 03:04 AM
i don't quite understand what this script does
Makes an image of some kind

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum