vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   higher pm limit for mod's and admins (https://vborg.vbsupport.ru/showthread.php?t=37229)

pank 04-09-2002 10:38 PM

higher pm limit for mod's and admins
 
How hard would it be to allow the admin's and mod's to have a higher stored pm limit than the users. Right now I only allow my users a max of 5. Unfortunately that means that I and my mods can also only have 5. Any way around this. Thanks...

Zzed 04-09-2002 10:46 PM

Admins have no limits in their PM quota. ;)

I can make a hack to remove that quota for moderators as well. Let me know if you are interested. :)

pank 04-09-2002 11:11 PM

Hmmm, I guess I never noticed for me since I always delete them after I read them but I'll take you up on the admins part. Thanks...
Since it's already set for admins I'm guessing I just need to find the code and add another user group to that statement? Any help is appreciated. Thanks again...

pank 04-09-2002 11:24 PM

Ok I found this code
Code:

  if ($pmquota>0 and $touserinfo[usergroupid] != 6 and $bbuserinfo[usergroupid] != 6) {
    $msgcount = $DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$touserinfo[userid]");

in private.php I'm guessing that is what I need to change? If so all I need is the updated usergroup to include mod's. Thanks again...

Zzed 04-10-2002 09:57 AM

That's one of them.

I just remember having posted this at VB.com. It's for version 2.2.2. But I think it should work with the latest as well. ;)

http://www.vbulletin.com/forum/showt...561#post250561

BTW, I got smacked for posting code hacks over there. :D

pank 04-10-2002 10:31 AM

Thanks a ton... I'll give that a whirl when I get home later. Thanks...


All times are GMT. The time now is 04:35 PM.

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.01081 seconds
  • Memory Usage 1,724KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete