I have a similar script on my other xenforo setup, will add it here asap. http://xenaddicts.com/sig/generator.php it produces something like this by just adding my user ID . Have you set a page up on your forum, was it easy, can I see a demo? Thanks! -Brandon
I looked around for this as well... to see how it was done, or if I could figure it out myself... never got any luck though.
Simple google I found the script and its php.. If you need help I can read php like reading a book Image needed PHP: <?php// XenForo signature generator by Erik Swan :)function getPage($url){ $ch = curl_init(); curl_setopt($ch,CURLOPT_URL, $url); curl_setopt($ch,CURLOPT_FRESH_CONNECT,TRUE); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,5); curl_setopt($ch,CURLOPT_RETURNTRANSFER,TRUE); curl_setopt($ch, CURLOPT_USERAGENT, 'XenForo Signature Generator by Eriksrocks'); curl_setopt($ch,CURLOPT_TIMEOUT,10); $html=curl_exec($ch); if($html==false){ $m=curl_error(($ch)); error_log($m); } curl_close($ch); return $html;}$username = 'eriksrocks';$userid = '103';$page = getPage('http://xenforo.com/community/members/' . $username . '.' . $userid . '/mini-stats.xml');$xml = simplexml_load_string($page);$likes = $xml->total_likes;$trophies = $xml->trophy_points;// DEFINE STUFF$font = 'square.ttf';$size = 27;$x1 = 45;$x2 = 136;$y = 43;$width = 198;$height = 76;$kerning = 3;// DRAW$final = imagecreatefrompng("sigbackground.png");$black = imagecolorallocate($final, 0, 0, 0);imagealphablending($final, true); // setting alpha blending onimagesavealpha($final, true); // save alphablending setting (important)$array = str_split($likes);$hpos = $x1;for($i=0; $i<count($array); $i++){ $bbox = imagettftext( $final, $size, 0, $hpos, $y, $black, $font, $array[$i] ); $hpos = intval($bbox[2])+$kerning;}$array = str_split($trophies);$hpos = $x2;for($i=0; $i<count($array); $i++){ $bbox = imagettftext( $final, $size, 0, $hpos, $y, $black, $font, $array[$i] ); $hpos = intval($bbox[2])+$kerning;}// OUTPUTheader('Content-type: image/png');imagepng($final);imagedestroy($final);?>
I like the one from here: http://xenmod.com/signature/gen.php but the one that is in your post @Brandon as it has a slightly more visually appealing look