|
-
-
Maverick Hunter
Ah yes, i would also like to know this. They are quite creepy, although they are very wrong if you are behind a proxy.
-
Information Architect
I even use this "technology" as a fundament for a website design: http://www.rogotworld.com/main.php (The IP on the top part)
Only thing you have to do different for a footer is to tell php to php .txt files so you can use it on forums as a footer.
Fredi
-
Cool,
No one knows yet though, they must be getting out from somewhere ?
-
Information Architect
That's how I did it:
PHP Code:
<?php
$text = $_SERVER['REMOTE_ADDR'];
$chars = strlen($text);
$fontsize = 50;
$fontfile = "/home/rogotwld/public_html/redesign_pics/ArialHB.ttf";
$im = imagecreatefromjpeg ('/home/rogotwld/public_html/redesign_pics/m3_template.jpg');
imagealphablending ($im, true);
$c_outline = imagecolorresolvealpha ($im, 188, 188, 188, 99);
$c_text = imagecolorresolvealpha ($im, 237, 237, 237, 0);
if ($chars == 14){
$startx = 120;
$starty = 40;
} else if ($chars == 15){
$startx = 102;
$starty = 40;
} else if ($chars == 13){
$startx = 135;
$starty = 40;
} else if ($chars == 12){
$startx = 157;
$starty = 40;
} else if ($chars == 11){
$startx = 179;
$starty = 40;
} else if ($chars == 10){
$startx = 202;
$starty = 40;
} else if ($chars == 9){
$startx = 225;
$starty = 40;
} else if ($chars == 8){
$startx = 248;
$starty = 40;
} else if ($chars == 7){
$startx = 271;
$starty = 40;
} else if ($chars == 16){
$startx = 80;
$starty = 40;
} else{
$startx = 60;
$starty = 40;
}
for ($ox = -1; $ox <= 1; $ox++) {
for ($oy = -1; $oy <= 1; $oy++) {
imagefttext ($im, $fontsize, 0, $startx+$ox, $starty+$oy, $c_outline, $fontfile, $text, array());
}
}
imagefttext ($im, $fontsize, 0, $startx, $starty, $c_text, $fontfile, $text, array());
header("Content-type: image/jpeg");
imagejpeg($im, NULL, 75);
?>
All those if else for the positioning could be done easyer, but I was to lazy to make perfect code. (And for whatever reson, the function to calculate the width was not working)
Fredi
-
Follower
-
Information Architect
Originally posted by squidlips
Got an example/link?
From the site I've posted above.
The dynamic jpeg: http://www.rogotworld.com/redesign_p...dynamic_ip.php
The template jpeg: http://www.rogotworld.com/redesign_pics/m3_template.jpg
Fredi
-
Follower
Very unique... did you do that out of interest or take insparation from another site etc?
-
Information Architect
It was just popping into my mind, like thousands of other things each day. (Most of them are just a waste of time, but that's how I work) 
Fredi
-
is not a good designer.
thats cool, i always wondered how the did dynamic pics.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|