vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   PM Quota by Usergroup Hack... (https://vborg.vbsupport.ru/showthread.php?t=43148)

g-force2k2 09-03-2002 09:00 PM

PM Quota by Usergroup Hack...
 
As requested by stu... and thanks to my man GoldKnight for the usual help of getting things squared away :)

What does this hack do?
// +++++++++++++++++++++
Simply as the title states... it allows you to create seperate PM Quotas based upon usergroup.
It's configurable in the Admin CP under the usergroup options -> private message options.
Hope its useful and someone can Enjoy it ;)

What to Do?
// +++++++++++++++++++++
Queries to Run (1)
File Modifications (11)
Templates to Edit (1)

As always hopefully this comes useful to some ppl ;) Enjoy... if you like this hack i'd be greatful if you clicked install... regards...

g-force2k2

Erwin 09-03-2002 11:55 PM

You are on a roll with this small but extremely useful hacks, my friend. :) Let me be the first to click install, and I will install it when I get home from work. Good job.

Goldknight 09-03-2002 11:57 PM

It s useful hack for me so....

/me install!

Good job! :tup:

Boofo 09-04-2002 03:34 AM

This will give you a truer percentage reading on larger message quotas.

Code:

$pmperc = round(($allpm[messages] / $pmboxlimit) * 100,2);

[D]Vincent 09-04-2002 03:55 AM

I don't set a limit on the quota but if I did this would be great ^^

g-force2k2 09-04-2002 10:12 AM

yeah Boofo more accurate :p but for larger amounts the floor should do fine ;) round to two decimal places is good for smallter pm quotas... all in all i guess its a matter of preference ;) regards...

g-force2k2

Boofo 09-04-2002 10:29 AM

The nice thing about round is that it will show whole percentages when the percentages are calculated that way. Also, there are Admins out there that will have smaller pm quotas for some of their usergroups. This just gives them an option, that's all. Accuracy will come into account on larger pm quotas, too, especially when you have some off numbers.

Quote:

Originally posted by g-force2k2
yeah Boofo more accurate :p but for larger amounts the floor should do fine ;) round to two decimal places is good for smaller pm quotas... all in all i guess its a matter of preference ;) regards...

g-force2k2


Stu 09-08-2002 01:00 PM

Thanks g-force,
The hack was easy to install and seems to work great.
This hack means I can offer additional benefits to contributing members.

Not so important, But could this be altered to increase the message length allowed per user group?

Thanks Again.

g-force2k2 09-08-2002 02:27 PM

im sure something could be worked out Stu... i'll take a look and add it to my large list of things to do ;) regards... and thanks... notice it could be trickier... but i haven't taken a look at the coding requirements yet...

g-force2k2

ryancooper 11-26-2002 12:43 PM

I absolutley love this hack! One question I am using the Improved PM folkder view and the guage in there is not working correctly. Normal members have 20 POM's and admins get 200 but the guage still says 50% when I have 10 pm's?

Does anyone know what I have to change?

https://vborg.vbsupport.ru/showthrea...threadid=36764


All times are GMT. The time now is 06:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01677 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete