Forgot Password / Register
Site Statistics
Total Members: 520
Total Tutorials: 242
Newsest User: 8884244477
Todays Unique Hits: 123
0 Users 5 Guests Online
Forum Index » Tutorials » [Request] Avatar system that r
Posted on Thursday 26th June 2008 at 06:08 PM
dtnet
templates/default/images/noavatar.png's Avatar
Active Member
Like the title says.

The avatar system should resize to f.eg. height: 100px and width: 100px. It should also rename the file, so if someone upload a image with the same name as an other, it doesn't replace the first image with the same name.

It doesn't matter what the new name is, but maybe:

Username1.jpg

Then the next should be:

Username2.jpg


It should also be able to upload png and gif to.
Posted on Thursday 26th June 2008 at 06:10 PM
dtnet
templates/default/images/noavatar.png's Avatar
Active Member
The title is too short for the description...

It should be

Avatar system that resizes to a particular height and width
Posted on Thursday 26th June 2008 at 07:15 PM
ilyas-shezad
templates/default/images/noavatar.png's Avatar
Junior Member
I can make one that uploads the files. however i cant make php resize images u can do that in html like....
Code

<img src="linktoimage.jpg" width="464" height="1321" />


basically by changing the width and height attributes/parameters
Posted on Thursday 26th June 2008 at 07:41 PM
dtnet
templates/default/images/noavatar.png's Avatar
Active Member
But then the pixels would be messed up.
I also have border around it, and padding, but when I add that code it doesn't show up