Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Nov 2005
    Posts
    80
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Its simple but i cannot figure out how

    I need a script that can parse this page: http://aoe.cuetech.de/ranking-servic...e=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

  • #2
    Senior Coder
    Join Date
    Aug 2005
    Posts
    1,119
    Thanks
    2
    Thanked 1 Time in 1 Post
    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
    explode();
    string
    try something like this:

    PHP Code:
    <?php
    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);
    imagefill($im,0,0,$bg);
    imagestring($im,3,20,5,"name",$fg);
    imagepng($im);
    imagedestroy($im);

    imagestring($im555"Name: $nick"$tc);
    imagestring($im5515"Rank: $rank"$tc);
    imagestring($im5525"Rate: $rate"$tc);
    imagestring($im5525"Wins: $wins"$tc);
    imagestring($im5525"Losses: $losses"$tc);

    ?>

  • #3
    New Coder
    Join Date
    Nov 2005
    Posts
    80
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thx lol, i had it figured out b4 you responded, but thanks for the post anyway, im sure someone can use it.

  • #4
    New Coder
    Join Date
    Nov 2005
    Posts
    56
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i don't quite understand what this script does
    www.XtraFile.com
    -Free OneClick File Hosting!

  • #5
    Regular Coder Ranger56's Avatar
    Join Date
    Mar 2005
    Location
    Kent, WA.
    Posts
    783
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by brotherhewd
    i don't quite understand what this script does
    Makes an image of some kind


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •