Jump to content


Image name detection generator thing...


2 replies to this topic

#1 npsken

    Young Padawan

  • Members
  • Pip
  • 26 posts
  • Gender:Male
  • Interests:Computer Programming<br />Graphic Design

Posted 19 August 2006 - 02:11 AM

Ok, the best I can give you is an example of what I am talking about:
http://my.livecard.n...10/G2Ladmin.png

Notice in place of G2Ladmin you can put any gamertag and it generates an image according to that gamertag. How can I do this?

Edit: What I basically want to do is detect what image name the user typed into the address bar and then generate an image based on that information. For example, kenpowers.png would have an image that said kenpowers on it somewhere.

Edited by npsken, 19 August 2006 - 02:16 AM.


#2 RedDragon

    Young Padawan

  • Members
  • Pip
  • 207 posts

Posted 19 August 2006 - 04:26 AM

Dynamic images can be created with the help of php.

Do a google search on it, or check this link http://www.phpbuilde...us19990124.php3, might suit your needs ;)

Good luck!

#3 Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 970 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

Posted 19 August 2006 - 10:05 AM

A very basic image generation script that is based on GET data, and a little .htaccess will do the job.
Here's an example of what the .htaccess for that image you gave a link to would most probably be.
RewriteRule ^xbox10/(.+).png$ /xbox10/sig-generator.php?name=$1 [nc]
Of course they might have used a different approach, but that is the easiest way.

Should be easy enough for you to find a script to generate a simple image and adopt it for your own use. (Hint: I've posted such script not too long ago in this very forum for someone else.)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users