MyBB Hacks

Full Version: Dynamic Sig With Avatar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can you help me do some dynamic siggy with user avatar?

PHP Code:
<?php
define("IN_MYBB", 1);
include "global.php";
// Set Variable dri mybb
$Username = $mybb->user['username'];
$posts = $mybb->user['postnum'];
$duit = $mybb->user['newpoints'];
$icpic = $mybb->user['avatar'];
// Create Gambar
$image = imagecreatetruecolor(300,200);

// set variable untk letak kat string
$ip = "Ip Anda: $_SERVER[REMOTE_ADDR]";
$username2 = "Username: $Username";
$duit2 = "Wang: $duit";
$posts2 = "Posts: $posts";

imagestring($image, 10, 20, 40, $username2, 0x00ff00);
imagestring($image, 10, 20, 70, $ip, 0x00ff00);
imagestring($image, 10, 20, 100, $posts2, 0x00ff00);
imagestring($image, 10, 20, 130, $duit2, 0x00ff00);
imagestring($image, 10, 210, 160, "Rc.my", 0xFFFFFF);
imagecopymerge($image,$icpic, 20, 20, 20, 20, 100, 100, 70);
header('Content-Type: image/png');
imagepng($image, null, 9);
imagedestroy($image);
imagedestry($icpic);
?>


These some code that i already make but i can make that signature show user avatar.

Reference URL's