Making Userbars
#6

First of all, DON'T bump. Second, you should use ******. (Yes, it has hundreds of tutorials for what you are looking for)


Well, here, you can use my code, if you are using MySQL, then you are a lucker:
PHP код:
$imagepath "css/images/statspage.jpg";
$image imagecreatefromjpeg($imagepath);
$imgheight imagesy($image);
$color imagecolorallocate($image221160221);
// setlocale(LC_MONETARY, 'en_US'); // If you want to format cash
// Connect to MySQL & DB
$user mysql_real_escape_string($_GET['changeme']);
$result mysql_query("SELECT * FROM changeme WHERE changeme = '$changeme'"$connect);
// Y < Lower        Higer >
// X ^ Lower        Higher V
// Got our row, lets get the values
while($myrow mysql_fetch_assoc($result))
{
    
imagestring($image5126$imgheight-93$myrow["user"], $color); // Username
    
imagestring($image390,  $imgheight-31$myrow["kills"], $color); // Kills
    
imagestring($image3220$imgheight-31$myrow["deaths"], $color); // Deaths
    // imagestring($image, 3, 332, $imgheight-31, money_format('%i', $myrow[5]), $color); // Money
    
imagestring($image3332$imgheight-31$myrow["money"], $color); // Money
    
imagestring($image3459$imgheight-31$myrow["Level"], $color); // Admin Level
}
header('Content-Type: image/jpeg');
// imagejpeg(Image, FileName, Quality);
imagejpeg($imageNULL100); 
You will have to play with "imagestring" to get the correct position. ****** it if you need any more help.

Your URL would be something like: [IMG/]http://******.com/image.php?changeme=Luis[IMG]

Here's the example image using that above code:


Good luck.
Reply


Messages In This Thread
Making Userbars - by Luis- - 08.07.2011, 14:28
Re: Making Userbars - by iGetty - 08.07.2011, 14:37
Re: Making Userbars - by Luis- - 08.07.2011, 14:46
Re: Making Userbars - by Luis- - 08.07.2011, 15:22
Re: Making Userbars - by Luis- - 08.07.2011, 23:04
Re: Making Userbars - by [L3th4l] - 08.07.2011, 23:36
Re: Making Userbars - by PrawkC - 08.07.2011, 23:36
Re: Making Userbars - by Luis- - 09.07.2011, 00:21
Re: Making Userbars - by Luis- - 09.07.2011, 15:02
Re: Making Userbars - by Luis- - 09.07.2011, 18:51

Forum Jump:


Users browsing this thread: 3 Guest(s)