php forum
php mysql forum
php mysql smarty
 
Topic Options
#317458 - 07/26/08 07:22 PM PM Quota Checker
Basil Fawlty Offline
Journeyman

Registered: 10/30/01
Posts: 133
Loc: New Mexico

   PM Quota Checker to Del.icio.us Add to del.icio.us
  Digg PM Quota Checker Digg it
Out of necessity, I have developed a PM quota check script. Basically all it does is look at each user and determine, based on the groups they belong to, what their maximum allowed PM quota is. Then, it lists all users who are at or exceeded their PM quota. You might be asking how they could exceed their quota? Well, its simple - in my case, I changed the PM quota to a number lower than it had been for unpaid users. However, there were many user who were already over that new quota number. So, what happens is, someone will try to PM a member and think that the PM will be received, when in fact it never gets to the recipient. The person who sent the PM has no indication that their PM was not actually sent unless they happen to notice that the other person's name is not listed in the PM. I've had several cases where someone thought they had PMd another member, only to discover later that the person never saw the PM.

This sort of script may have already been developed (I wouldn't doubt it), but if not, I would be happy to share this one (which can be used as is or modified to your hearts content).

Basil


Edited by Basil Fawlty (07/26/08 07:23 PM)
_________________________

Top
#317467 - 07/28/08 11:04 PM Re: PM Quota Checker [Re: Basil Fawlty]
Basil Fawlty Offline
Journeyman

Registered: 10/30/01
Posts: 133
Loc: New Mexico
Guess not.
_________________________

Top
#317468 - 07/29/08 08:11 AM Re: PM Quota Checker [Re: Basil Fawlty]
blaaskaak Offline
Member

Registered: 02/25/07
Posts: 299
Loc: The Netherlands
I am really curious on what would solve this on the actual problem of checking limits

The current pm quota system of ubb.threads kinda sucks imho. I don't care about how many threads there are, I care about the amount of actual messages.

I will probably make a script that would disable PM's for people over their quota, and make a custom quota check that counts the actual number of messages.
_________________________

Top
#317469 - 07/29/08 08:57 PM Re: PM Quota Checker [Re: blaaskaak]
sirdude Moderator Offline
Bada bing!
Enthusiast

Registered: 11/08/03
Posts: 439
Loc: SoCal
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.
_________________________

A taxpayer voting for Obama is like a chicken voting for Colonel Sanders.

Top
#317570 - 09/16/08 06:03 PM Re: PM Quota Checker [Re: sirdude]
Mike L_dup1 Offline
Lurker

Registered: 02/15/04
Posts: 4
Basil,

I am most definitely interested in this mod.

I have had users get their panties in a wad thinking that someone else was ignoring them due to the issue of the forums not letting them know when one or more intended recipients are over their PM quota.

Top
#317572 - 09/17/08 05:51 PM Re: PM Quota Checker [Re: Mike L_dup1]
Mike L_dup1 Offline
Lurker

Registered: 02/15/04
Posts: 4
Seems we do not have to worry about this with 7.3.2

Quote:
BugFix: When sending a PM to a user who was over their private topic limit, it would just drop them from the recipients instead of giving an error message.

Top


Moderator:  sirdude 
Who's Online
0 Registered (), 23 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Team UBBDev Rides Again!
by AllenAyres
10/13/08 01:36 PM
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Newest Members
Kevs, pisa666, ghengis317, NitroX, Dogan
13346 Registered Users
Top Posters Last 30 Days
AllenAyres 11
blaaskaak 6
Ian_W 4
tackaberry 4
Chris Bale 4
Gizmo 4
FREAK1 4

 

 

 
fusionbb message board php hacks