- Joined
- Jun 9, 2007
- Messages
- 2,081
- Reaction score
- 1,192
Thanks, good release. Was searching around for this. :]
haha no doubt, so was tsuka and his cars they were amazing id love to see that in flash next level new leaders![]()
yo dude
stop flaming
ever gave out a positive comment?
you been infraction banned just to go on your other acc and flame again
you will never change
/facepalm

Oh, and this is better than Edward's because it doesn't place the stats over the image... anyone can do that? This actually re-generates the image when someone logs into your hotel
<?php
//Code created by Reptilon of http://forum.ragezone.com
$con = mysql_connect("YourHOST","root","DBPASS"); //Change this to you database connection details.
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("YourDB", $con); //Change YourDB to your database where all the tables are, EX: phoenix3
$result = mysql_query("SELECT * FROM server_status"); //Server_status is the table where users_online is. If users_online is not in this, then change it
while($row = mysql_fetch_array($result))
{
echo $row['users_online']; //users_online is the row where it shows how many users that are online, if it isnt this in the database then change it
}
mysql_close($con);
?>
<?php
//Code created by Hejula of http://forum.ragezone.com
header('Content-type: image/png');
$onlineurl = file_get_contents('http://yoururl/banner/online.php'); //change this to where your online.php is.
$font = 'arial.ttf';
$handle = imagecreatefrompng('template.png'); // Background Image
$bg_color = ImageColorAllocate ($handle, 135, 206, 250);
$txt_color = ImageColorAllocate ($handle, 239, 244, 241);
imagettftext($handle, 12, 0, 130, 16, $txt_color, $font, "$onlineurl Users Online!");
ImagePng ($handle);
?>
Well, since there are ssome users using The php version, i thought i'd release my version, and how to set it up
Okay, just save this code as online.php anywhere on your site..
Okay, save this as index.php in the folder /banner/PHP:<?php //Code created by Reptilon of http://forum.ragezone.com $con = mysql_connect("YourHOST","root","DBPASS"); //Change this to you database connection details. if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("YourDB", $con); //Change YourDB to your database where all the tables are, EX: phoenix3 $result = mysql_query("SELECT * FROM server_status"); //Server_status is the table where users_online is. If users_online is not in this, then change it while($row = mysql_fetch_array($result)) { echo $row['users_online']; //users_online is the row where it shows how many users that are online, if it isnt this in the database then change it } mysql_close($con); ?>
this code:
PHP:<?php //Code created by Hejula of http://forum.ragezone.com header('Content-type: image/png'); $onlineurl = file_get_contents('http://yoururl/banner/online.php'); //change this to where your online.php is. $font = 'arial.ttf'; $handle = imagecreatefrompng('template.png'); // Background Image $bg_color = ImageColorAllocate ($handle, 135, 206, 250); $txt_color = ImageColorAllocate ($handle, 239, 244, 241); imagettftext($handle, 12, 0, 130, 16, $txt_color, $font, "$onlineurl Users Online!"); ImagePng ($handle); ?>