Icon randomizer service

Discuss everything else here

Moderator: ArcWolf

Post Reply
User avatar
Shinmera
Posts: 82
Joined: Tue Jun 22, 2010 5:33 pm
Location: Switzerland | Zürich
Contact:

Icon randomizer service

Post by Shinmera »

So yeah, since some users in the chatroom wanted a rotating avatar, I quickly put together a service for you guys.
How it works:

1) Create an account: Call this page in your browser, but replace the NAME with your desired username:
http://data.tymoon.eu/avatars/randicon.php?n=NAME
it should now have created a table for you on my database.

2) Fill it with pictures: to do this, call the following page in your browser, but replace NAME with the previously chosen NAME and URL with the url to the picture. Be careful, the NAME has to be exactly the same (case sensitive)! The same goes for the next steps.
http://data.tymoon.eu/avatars/randicon.php?u=NAME&a=URL
repeat this step as many times as you want.

3) Remove pictures: Just call this:
http://data.tymoon.eu/avatars/randicon.php?u=NAME&d=URL
it should have removed the url from the list.

4) Get a random picture: You just need to call:
http://data.tymoon.eu/avatars/randicon.php?u=NAME
and you'll get a random picture out of your list.

However, there are some limitations you should respect:
-phpBB3 (this forum software) only supports icons with the size 100x100. The pictures the urls links to HAVE to be that size.
-the url CAN'T contain apostrophes!

Otherwise, have fun using it! I hope it works for everyone!
If you have problems, just post here.

How it works in the backend:
The PHP script you are calling connects to my MySQL database and stores your data there. It then reads out the requested table into an array and chooses a random one. Next, it determines the filetype of the picture and sets the header of the file. Finally, it just prints out the picture contents. Simple. (40 lines of code, ~10 minutes of work)

Disclaimer: I do not have constant control over the content those URLs can link to and therefore no constant control over what the called URL may or may not display. I do not take responsibility for any damage done by the viewing of said URLs and/or generated URLs by third party users.
Tymoon.eu A new webcomic every Monday, Wednesday and Friday. Just like HP!
Shinmera@deviantART | Shinmera@FurAffinity
User avatar
Jakkal
Posts: 167
Joined: Wed Jun 09, 2010 2:14 am
Location: Bavaria/Germany

Re: Icon randomizer service

Post by Jakkal »

yeah I heared of that, but I stick to "gif-rotations" or just animations.
User avatar
Typhon
Posts: 1008
Joined: Sat May 08, 2010 1:16 am
Location: In my house. Reading housepets. And organic chemistry.

Re: Icon randomizer service

Post by Typhon »

I believe someone else has done this already and has a site set up too. Don't remember the username.
User avatar
Kyderra
Posts: 2725
Joined: Wed Oct 28, 2009 7:31 am
Location: The Netherlands

Re: Icon randomizer service

Post by Kyderra »

Typhon wrote:I believe someone else has done this already and has a site set up too. Don't remember the username.
ReCreate
"Why would you ever want to connect the dots?"
ReCreate
Posts: 1415
Joined: Sun Mar 28, 2010 6:09 pm
Location: http://bordomirc.co.cc
Contact:

Re: Icon randomizer service

Post by ReCreate »

Kyderra wrote:
Typhon wrote:I believe someone else has done this already and has a site set up too. Don't remember the username.
ReCreate
No, I had the idea, but never bothered actually doing it. XD(my avatar was a dynamic one that showed a random image, but i never made a site where others could set theirs up)
It's now static though, and I doubt it's gonna change for a long time.(if ever :roll: )
Don't let others define you, Only you can determine your fate
no longer active, sorry
Post Reply