Previous Thread
Next Thread
Print Thread
Rate Thread
#54866 12/02/2002 4:18 PM
Joined: Jun 2001
Posts: 120
Member
Member
Offline
Joined: Jun 2001
Posts: 120
To prevent users from using very large files as their avatars, since they can now specify a URL to any image on the internet as a custom avatar, it would be great if there were a way to prevent the use of an image over a setable filesize.

Anyone agree?

Anybody want to whip this up?

Just a suggestion, I know I'd appreciate it smile

Sponsored Links
#54867 12/02/2002 6:09 PM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
What prevents the user from simply changing the image once the check is performed?

The only way to enforce such a thing would be to combine it with a file upload system that performs the validation...


UBB.classic: Love it or hate it, it was mine.
#54868 12/02/2002 6:38 PM
Joined: Jun 2001
Posts: 120
Member
Member
Offline
Joined: Jun 2001
Posts: 120
That's a good point, perhaps a check could be performed at each login?

I've got an old avatar upload script that doesn't allow images greater than 8kb to be uploaded, that I've used since v6.05, but since this new version doesn't support avatars the way the old avatar hack did (i.e. a 'custom' directory where only files with the proper filename could be used as a custom avatar), using this script by itself would be pointless, since people could just upload their oversized avatar elsewhere and then set their custom avatar URL to it.

If there would be a way to renovate the old custom directory and member-number-as-filename method, that would get the same result, but I'd like for people to be able to use their own servers to upload things, if they like, as well. But at the same time, I don't want hapless n00bs using 200kb pics either wink

Thoughts?


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)