crazy idea but sure its possible

Started on the old forum in August 2011 · view the original in the archive · old links redirect here

4 replies · 601 views · started 15 years ago · 1 min read

3 participants
nclemale36 Lead · 537 posts #1

hi guys .am sure this is possible but i have no idea what to look for to do it.

lets say i want to add a large image with lets say how many registered users i have or how many online there is .instead of it being in text format.

how would i go about it.

cheers

amylee Principal · 1,092 posts #2

look at the id card in ravingwap script, that showed how many posts a user had and what rank they were don't see why it can't be modded to show online users and what not

nclemale36 Lead · 537 posts #3

amy ave found some code but am getting errors using it

// load the image from the file specified:
$im = imagecreatefromgif("../images/block.gif");
// if there's an error, stop processing the page:
if(!$im)
{
die("");
}

// define some colours to use with the image
$yellow = imagecolorallocate($im, 255, 255, 0);
$black = imagecolorallocate($im, 0, 0, 0);

// get the width and the height of the image
$width = imagesx($im);
$height = imagesy($im);

// draw a black rectangle across the bottom, say, 20 pixels of the image:
imagefilledrectangle($im, 0, ($height-20) , $width, $height, $black);

// now we want to write in the centre of the rectangle:
$font = 4; // store the int ID of the system font we're using in $font

$text = "wapchat4u.com"; // store the text we're going to write in $text

// calculate the left position of the text:
$leftTextPos = ( $width - imagefontwidth($font)*strlen($text) )/2;
// finally, write the string:
imagestring($im, $font, $leftTextPos, $height-18, $text, $yellow);

// output the image
// tell the browser what we're sending it
Header('Content-type: image/gif');
// output the image as a png
imagegif($im);

// tidy up
imagedestroy($im);
StRiNg_MaStEr Developer · 93 posts #4

find water mark script with GD its on Coding talk search a bit then watermark ur registered or online users on any image bt u wil have to code something so it can dynamically watermark on image

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