Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
i went with a 'total inbox size' method. 'size' is calculated as the actual DB used for all messages in the inbox PLUS the attachments (yes, attachments is a mod).. also takes into account number of peeps in the PT and divides accordingly.

now attachments also end up being shared, so i don't kill the poor bastard with the whole attachment either. i also limit attachments to images (png|jpg|gif). if they wanna send zips and rars, they can use email..

reason i went with attached images is to make it easy to upload screenies and all that directly into the PM.. it auto inserts the [img] tags after upload so they can add text before / after as part of the post.. this replaces the current attachment system, where it's just appended at the end and really doesn't seem to be part of the post frown

i'd recommend this only if your hosting plan has the room (HDD space), otherwise, just kill attachments as the option and just tally up the PM_POSTS size amortized against all the participants. wink

also, i added this calculated field to the online table (per user_id), so it's easily grabbed. then viewmessages.inc.php does a recalc whenever it's invoked. this saves always computing, while sacrificing the small possibility that a user barely might go over their limit for a short while.

Sponsored Links
Entire Thread
Subject Posted By Posted
PM Quota Checker Basil Fawlty 07/27/2008 2:22 AM
Re: PM Quota Checker Basil Fawlty 07/29/2008 6:04 AM
Re: PM Quota Checker blaaskaak 07/29/2008 3:11 PM
Re: PM Quota Checker sirdude 07/30/2008 3:57 AM
Re: PM Quota Checker Mike L_dup1 09/17/2008 1:03 AM
Re: PM Quota Checker Mike L_dup1 09/18/2008 12:51 AM

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
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
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)