Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

Twitter Sig


ghost's Avatar
0 0

Hey, I know I don't post in here often, and this is more coding than GFX related, but I wonder what you all think of my new dynamic sig?

Thanks

mozzer


spyware's Avatar
Banned
0 0

your text isn't exactly fitting on the sig ;)


ghost's Avatar
0 0

Yeah, I had wordwrap at 30 rather than 28, which is what its at now


ghost's Avatar
0 0

[edit]Somehow, blue works perfectly with that sig and your username.[/edit]


spyware's Avatar
Banned
0 0

mozzer wrote: Yeah, I had wordwrap at 30 rather than 28, which is what its at now

You should consider making a PNG instead of a PNG


ghost's Avatar
0 0

Yeah, I may do that

Which to use as my sig?


ghost's Avatar
0 0

The source thing for it


include ( "xmlparser.php" );
$latest = file_get_contents ( "latesttweet.txt" );
function getLatestTwitter ( $username, $password )
{
	$p = new xmlParser();
	$p->parse ( "http://twitter.com/statuses/user_timeline/mozzer.xml?count=1" );
	return trim ($p->output[0]['child'][0]['child'][2]['content'] );
}

$text = wordwrap ( "Lastest Twitter:\n" . getLatestTwitter("mozzer", "monday"), 27, "\n", true );
if ( $latest !== $text )
{
fwrite ( fopen ( "latesttweet.txt", "w"  ), $text );
$im = imagecreatefromjpeg ( "twittersig.jpg" );
$textcolour = imagecolorallocate ( $im, 0, 0, 0 );
imagettftext ( $im, 10, 0, 160, 50, $textcolour, "georgia", $text );
imagejpeg ( $im, "twitter.jpg" );
imagepng ( $im, "twitter.png" );
imagedestroy ( $im );
echo "Twitter Updated";
} else {
echo "No new twitter";
}
?>```

I'll be using the JPG though, 1/3 the file size


EDIT: The actual sig design was by 0rijin4l