How To Add Info To A Counter Image

Started on the old forum in September 2006 · view the original in the archive · old links redirect here

1 reply · 746 views · started 20 years ago · 1 min read

stretch Developer · 130 posts #1

i have installed a image counter script but i cant find the topic sub made that shows how to put more details on to a counter image.

<?
///////////////////////////////////////////////
switch($img) {
case 'mini':
$im = @imagecreate(70, 14);
$background_color = imagecolorallocate($im, 0, 0, 0);
$text_color = imagecolorallocate($im, 255, 255, 255);
ImageString($im, 1, 3, 3, "+$count", $text_color);
ImageString($im, 1, 49, 3, "+$count", $text_color);
header("Content-type: image/png");
ImagePNG($im);
break;
default:
$im = ImageCreateFromGIF('counter.gif');
$chartreuse = ImageColorAllocate($im,127,255,0); 
/*ImageString($im,1,$hpos,9,$chost,$chartreuse);*/
ImageString($im,1,$pos,14,$count,$chartreuse);
ImageString($im,1,$pos_all,21,$count_all,$chartreuse);header("Content-type: image/png");
ImagePNG($im);
break;
}
}
else
{
print "ID = ???";
}
?>

here is part of that counter script. i want to know how do one insert more txt lines to show on the counter image my site url ??

= = = = = The more you laugh...the longer you live. Read more jokes at http://fun-files.co.cc

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close