Can you? id appreciate it.

Results 1 to 3 of 3
  1. #1
    lol Disguised is offline
    Grand MasterRank
    Jan 2011 Join Date
    521Posts

    Can you? id appreciate it.

    Edit my current banner

    so it says blank users online!

    Like, my user count, right on the banner,

    Id appreciate it.

    Thanks,
    Disguised


  2. #2
    Elite Member prodigy007 is offline
    Member +Rank
    Feb 2013 Join Date
    MissouriLocation
    177Posts

    Re: Can you? id appreciate it.

    Here you go: Go here on this Ragezone thread: Dynamic Users Online banner: Working Download: dynamicsiggy.zip
    Code:
    <?php 
    $dbhost = 'sqlip'; 
    $dbuser = 'youruser'; 
    $dbpass = 'yourpass'; 
    $dbname = 'yourdb'; 
    $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die                      ('Error connecting to mysql'); 
    mysql_select_db($dbname); 
    $result = mysql_query("SELECT * FROM server_status");
    $usersreg = mysql_query("SELECT * FROM users"); 
    $num_rows = mysql_num_rows($usersreg)+ 112; 
    $registered = "Registered!";
    $online = "Users Online!";
    $row = mysql_fetch_array( $result ); 
    $image = imagecreatefrompng('images/banner.png'); 
    $font_color = imagecolorallocate($image, 255, 255, 255); 
    $font_color2 = imagecolorallocate($image, 0, 0, 0); 
    $font_color3 = imagecolorallocate($image, 255, 69, 0); 
    imagefttext($image, 15, 10, 61, 50, $font_color2, './arial.ttf', $row['online']); 
    imagefttext($image, 8, 0, 88, 45, $font_color2, './arial.ttf', $online); 
    imagefttext($image, 20, 0, 84, 77, $font_color2, './arial.ttf', $num_rows); 
    imagefttext($image, 8, 0, 88, 92, $font_color2, './arial.ttf', $registered);
    imagefttext($image, 15, 10, 59, 48, $font_color3, './arial.ttf', $row['online']); 
    imagefttext($image, 8, 0, 86, 43, $font_color, './arial.ttf', $online); 
    imagefttext($image, 20, 0, 82, 75, $font_color3, './arial.ttf', $num_rows); 
    imagefttext($image, 8, 0, 86, 90, $font_color, './arial.ttf', $registered); 
    header('Content-type: image/png'); 
    imagepng($image); 
    imagedestroy($image); 
    ?>
    Last edited by prodigy007; 01-03-13 at 07:00 PM.

  3. #3
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,613Posts

    Re: Can you? id appreciate it.




Advertisement