You could use a script similar to the one in the link below to actually have the image track the viewers country, you could even put a little flag in there as well. ;)
http://www.dynamicdrive.com/forums/s...7&postcount=18
Last edited by LHVWB; 05-28-2008 at 01:06 AM.
~LHVWB, Formerly known as Verbsite.
Getting Started | Forum Rules | X10 Commandments
Terms of Service | Getting Support | IRC Support Chat
Using Simple Machines Forums? Check out my SMF Mods..
It's a nice idea, but NOT THAT SCRIPT plox :o
It uses a 'small' list...
http://www.ci-pro.com/misc/phptest/loc/ip.csv
That thing is around 6 meg! It stores a huge list of ip's and their countries...
Maybe if I find something less... huge...
Edit:
I'm going to change something about my image code, this is an example of what the tutorial outputs:
![]()
Last edited by marshian; 05-28-2008 at 11:39 AM. Reason: Automerged Doublepost
Real programmers don't document their code - if it was hard to write, it should be hard to understand.
It's not hard at all, I've got the file "data-latin.ttf" in the same directory, so I can use this command:
which does almost the same as imagestring(), but it uses a truetype font instead of the normal one.PHP Code:imagettftext($image, 10, 0, 168, 27, 0, "data-latin.ttf", $text[0]);
Real programmers don't document their code - if it was hard to write, it should be hard to understand.
If it didn't work for you - try the following as a last line (make sure you send the header first though):
PHP Code:return imagepng($image);
Last edited by mattura; 05-28-2008 at 06:49 PM.
Last edited by marshian; 05-29-2008 at 12:03 PM.
Real programmers don't document their code - if it was hard to write, it should be hard to understand.
Is it possible to use this kind of script to add a copyright notice which automatically updates the year in the footer image of my site? http://www.circuitz4u.com/
Last edited by bigjoe4; 05-29-2008 at 01:34 PM.
Please visit my site: Circuit designer
Real programmers don't document their code - if it was hard to write, it should be hard to understand.
You can pursuade a mod to edit the contents of the first post
Please visit my site: Circuit designer