Picture

Location of the Videos
Post Reply
skacke
Posts: 38
Joined: Mon Oct 12, 2009 10:08 pm

Picture

Post by skacke »

Hey! :D

I'm going to make a profile page to my game, and i was just wondering.
Is there any way that a player can upload a picture, so that everyone can see that picture in the players profile page?
Falken
Posts: 438
Joined: Fri May 08, 2009 8:03 pm

Re: Picture

Post by Falken »

Here you have a basic upload tutorial for php:

http://www.w3schools.com/PHP/php_file_upload.asp
--- Game Database ---
For all your game information needs!
Visit us at: http://www.gamedatabase.eu today!
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Picture

Post by Jackolantern »

Just be sure that if you allow players to upload pictures that they have a way to report abuse and that you are able to handle it quickly. It is only a matter of time before someone thinks it would be funny (or in their best interest, if it is someone who runs another game) to post pornographic pictures as their avatar.
The indelible lord of tl;dr
User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Re: Picture

Post by OldRod »

Jackolantern wrote:Just be sure that if you allow players to upload pictures that they have a way to report abuse and that you are able to handle it quickly. It is only a matter of time before someone thinks it would be funny (or in their best interest, if it is someone who runs another game) to post pornographic pictures as their avatar.
Yes, someone will do it - it's just a matter of time :)
skacke
Posts: 38
Joined: Mon Oct 12, 2009 10:08 pm

Re: Picture

Post by skacke »

yea, i will come up with something :) But is there anyway to resize the image? Or just manipulate so that the image looks 160x160?
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Picture

Post by Jackolantern »

I'm pretty sure GD2 has a way to do it, but I know for a fact ImageMagick can do it. GD2 is included with PHP, and ImageMagick is another free image manipulation program with a PHP interface. Imagemagick has many effects that can be applied, with cropping and resizing being only two of them.
The indelible lord of tl;dr
skacke
Posts: 38
Joined: Mon Oct 12, 2009 10:08 pm

Re: Picture

Post by skacke »

okay, thanks mate! :D
Post Reply

Return to “Older Browser MMO Videos”