Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
PM Quota by Usergroup Hack... Details »»
PM Quota by Usergroup Hack...
Version: 1.00, by g-force2k2 g-force2k2 is offline
Developer Last Online: May 2008 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 09-03-2002 Last Update: Never Installs: 29
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-04-2002, 12:55 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 09-04-2002, 12:57 AM
Goldknight's Avatar
Goldknight Goldknight is offline
 
Join Date: Aug 2002
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It s useful hack for me so....

/me install!

Good job! :tup:
Reply With Quote
  #4  
Old 09-04-2002, 04:34 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Code:
$pmperc = round(($allpm[messages] / $pmboxlimit) * 100,2);
Reply With Quote
  #5  
Old 09-04-2002, 04:55 AM
[D]Vincent's Avatar
[D]Vincent [D]Vincent is offline
 
Join Date: Jun 2002
Location: In my own little world?
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't set a limit on the quota but if I did this would be great ^^
Reply With Quote
  #6  
Old 09-04-2002, 11:12 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah Boofo more accurate 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
Reply With Quote
  #7  
Old 09-04-2002, 11:29 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 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
Reply With Quote
  #8  
Old 09-08-2002, 02:00 PM
Stu's Avatar
Stu Stu is offline
 
Join Date: Aug 2002
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 09-08-2002, 03:27 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 11-26-2002, 12:43 PM
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:30 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06465 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete