nieke - Do you have any plans to release the code you used to make Bitthanks possible so that others can implement it for themselves or as other providers providing same type of service to others as well?
Here's some code that does something similar:
$font = "/usr/share/fonts/ttf-bitstream-vera/Vera.ttf";
require_once 'jsonRPCClient.php';
$data=new jsonRPCClient('http://127.0.0.1:8332');
$donated = $data->getreceivedbylabel("Bitcoin Forum Sig");
if (substr($_SERVER["HTTP_REFERER"], 0, 27) == "http://bitcointalk.org/") {
$text = "Received amount in Bitcoins: $donated. Want to thank me for this forum post? Click here!";
header("Content-type: image/png");
$fontsize = 12;
$bounds = array();
$bounds = ImageTTFBBox($fontsize, 0, $font, "W"); $oy = abs($bounds[7]-$bounds[1]);
$bounds = ImageTTFBBox($fontsize, 0, $font, $text);
$w = abs($bounds[4]-$bounds[6]);
$h = abs($bounds[7]-$bounds[1]);
$image = imagecreatetruecolor($w,$h);
imagefill($image, 0, 0, imagecolorallocatealpha($image, 255, 255, 255, 127));
imagesavealpha($image, true);
ImageTTFText($image, $fontsize, 0, 0, $oy, imagecolorallocate($image, 0, 0, 0), $font, $text);
imagePNG($image);
}
else {
$address = $data->getnewaddress("Bitcoin Forum Sig");
echo "Hello! You've reached the donation page for accepting donations :)
";
echo "
";
echo "This user accepts Bitcoin donations at the following address: $address
";
echo "
";
echo "Number of Bitcoins received for this user: $donated.";
}
?>