https://www.icyphoenix.com/viewtopic.php?f=33&t=7166&p=49073#p49073
-----------------------------------
Mighty Gorgon
Tue 25 May, 2010 19:57

Dynamic Signature
-----------------------------------
I have created a small script for a friend which generates a dynamic signature you can fill with the content you like.

The script is very very basic.

All you have to do is edit the code and insert what you need to be printed:

[code linenumbers=false syntax=php]<?php
/**
*
* @package Icy Phoenix
* @version $Id$
* @copyright (c) 2008 Icy Phoenix
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

$randomquote = array(
	'My first quote!',
	'My second quote!',
	'My third quote!',
	'My fourth quote!',
	'My last quote!'
);

$image = 'signature_bar.png';
$im = imagecreatefrompng($image);

$main_color = imagecolorallocate($im, 51, 102, 153);
$black = imagecolorallocate($im, 0, 0, 0);
$orange = imagecolorallocate($im, 255, 85, 0);
$blue = imagecolorallocate($im, 68, 102, 136);
$red = imagecolorallocate($im, 255, 0, 0);
$green = imagecolorallocate($im, 0, 160, 0);

$left_margin = 10;

imagestring($im, 3, $left_margin, 2, 'My wonderful name!', $orange);
imagestring($im, 2, $left_margin, 18, 'Another text example...', $main_color);
imagestring($im, 2, $left_margin, 30, 'Ok, another one!', $blue);
imagestring($im, 1, $left_margin, 48, $randomquote[rand(0, sizeof($randomquote) - 1)], $green);

header('Content-Disposition: filename=signature_bar.png');
header('Content-Type: image/png');
imagepng($im);
imagedestroy($im);

?>[/code]

When you have edited the PHP file, just upload it to your server, and then write the address in your browser!

Result will be something like this:
[img]http://www.icyphoenix.com/files/images/2/signature_bar_demo.png[/img]


I hope you will like this!


