Page 1 of 1
.php avatars
Posted: Mon Nov 03, 2008 8:36 pm
by *Wiro
Any chance an admin will consider making it possible to use them?
I started with PHP yesterday and today I managed to create an avatar that counts the amount of times it was viewed.
And I'd like to use it on this forum, but it doesn't support it.
So, any chance of this happening?
Posted: Mon Nov 03, 2008 8:49 pm
by marol
PHP avatars raises serious security issues and won't be enabled.
Posted: Mon Nov 03, 2008 8:56 pm
by *Wiro
Ya, I just noticed.
I just finished a code that stores IPs of everyone who watches the image. So not that great of an idea after all.
But without the risks it would be a fun addition. ^^,
Posted: Mon Nov 03, 2008 9:31 pm
by marol
This is also possible using regular JPG or GIF avatars, but PHP makes is a lot easier.
Posted: Mon Nov 03, 2008 9:39 pm
by *Wiro
But with that you can only have a random avatar, right?
With PHP you can also make images that show the amount of times it was viewed and other nice things.
Oh well. I'll check the random avatar without PHP tommorow.
Posted: Mon Nov 03, 2008 9:42 pm
by marol
Actually with appropriate server mapping you may cause a request for *.jpg file to be handled by PHP script transparently to the user.
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
Posted: Mon Nov 03, 2008 9:54 pm
by *Wiro
That sounds really complicated, and I'm not that great with PHP, HTML and everything yet. So before I'll even consider trying more complicated things, I'll first master PHP and HTML some more. And CSS.
I'm only 14 too, and the only time I can spend learning programming languages is free time at home. At school we don't learn these kinds of things, sadly. :/
Thanks for telling me about it though.

Posted: Mon Nov 03, 2008 10:29 pm
by Cdls
Wiro, here is a site you can check out if you are looking for resources on learning this stuff, I use it from time to time in addition to other things:
http://www.w3schools.com/sitemap.asp
Posted: Mon Nov 03, 2008 11:13 pm
by *Wiro
Hehe, that's the site I've been using all the time.
It's great to start with. But I slowly start to notice that there are more and more problems that either have to be found on google, or I'll somehow have to figure it out myself. And I have a lot of people on my MSN list who are very skilled with PHP and other programming languages who I can always ask for help when I need it.
Thanks anyway.

Posted: Tue Nov 04, 2008 10:22 pm
by joo
Hehe, why didn't I think of linking to a script for my avatar... or even a signature... the possibilites are limitless!