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:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 1841
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 14
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)