Dynamic Sig With Avatar
Muz89 Offline
Junior Member
**
Posts: 2
Joined: Feb 2012
Post: #1
Shy Dynamic Sig With Avatar
Can you help me do some dynamic siggy with user avatar?

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?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.

02-28-2012 03:39 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: