Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-12-2002, 11:48 AM
Cloud Strife Cloud Strife is offline
 
Join Date: Jun 2002
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Moderators have more PM space hack

I would have thought that this hack would have already been here, but I searched for ages and not found a thing...

Currently users only have 20 PM messages space, as admin, mine is automatically unlimited, but I want Supermods and Mods to have a pm space of 100 PMs... They currently only have 20...

Thanks
Reply With Quote
  #2  
Old 08-12-2002, 11:57 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

Ummm... what's the point? Just give all your users 100...
Reply With Quote
  #3  
Old 08-12-2002, 12:05 PM
[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

Vincent]I'm not 100% sure this will work but try this.
Open vb/private.php and find:
PHP Code:
  if ($pmquota>and $touserinfo[usergroupid] != and $bbuserinfo[usergroupid] != 6) {
    
$msgcount $DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$touserinfo[userid]");

    if (
$msgcount[messages]>=$pmquota) {
      
// mailbox full. email user and display error

      
eval("\$emailmsg = \"".gettemplate("email_pmboxfull",1,0)."\";");
      eval(
"\$emailsubject = \"".gettemplate("emailsubject_pmfullbox",1,0)."\";");
      
mail($touserinfo[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");

      eval(
"standarderror(\"".gettemplate("error_pmfullmailbox")."\");");
      exit;
    }
  } 
Replace that with:
PHP Code:
 if ($pmquota>and $touserinfo[usergroupid] <= and $bbuserinfo[usergroupid] <= 4) {
    
$msgcount $DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$touserinfo[userid]");

    if (
$msgcount[messages]>=$pmquota) {
      
// mailbox full. email user and display error

      
eval("\$emailmsg = \"".gettemplate("email_pmboxfull",1,0)."\";");
      eval(
"\$emailsubject = \"".gettemplate("emailsubject_pmfullbox",1,0)."\";");
      
mail($touserinfo[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");

      eval(
"standarderror(\"".gettemplate("error_pmfullmailbox")."\");");
      exit;
    }
  } elseif (
$pmquota>and ($touserinfo[usergroupid]  == or $touserinfo[usergroupid] == 7) and ($bbuserinfo[usergroupid] == and $bbuserinfo[usergroupid] == 7)) {
    
$msgcount $DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$touserinfo[userid]");

    if (
$msgcount[messages]>=100) {
      
// mailbox full. email user and display error

      
eval("\$emailmsg = \"".gettemplate("email_pmboxfull",1,0)."\";");
      eval(
"\$emailsubject = \"".gettemplate("emailsubject_pmfullbox",1,0)."\";");
      
mail($touserinfo[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");

      eval(
"standarderror(\"".gettemplate("error_pmfullmailbox")."\");");
      exit;
    }
  } 
This might not work though.
Reply With Quote
  #4  
Old 08-12-2002, 12:34 PM
[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

Vincent]Also you might want to do this, just noticed private2.php

Anyways open vb/private2.php
Find:
PHP Code:
      // check pm quotas
      
if (($pmquota 0) && ($touserinfo[usergroupid] != 6) && ($bbuserinfo[usergroupid] != 6)) {
        if (
$touserinfo[messagecount] >= $pmquota) {
          
// no further private messages allowed
          
eval("\$email_message = \"".gettemplate("email_pmboxfull",1,0)."\";");
          eval(
"\$email_subject = \"".gettemplate("emailsubject_pmfullbox",1,0)."\";");
          
mail($touserinfo[email],$email_subject,$email_message,"From: \"$bbtitle Mailer\" <$webmasteremail>");
          
$errormessages .= "<li>$touserinfo[username] <smallfont>($touserinfo[messagecount] messages in folder)</smallfont></li>";
          
// go straight to the next recipient in the list
          
continue;
        }
      } 
// end check quotas 
Replace that with:
PHP Code:
      // check pm quotas
      
if (($pmquota 0) && ($touserinfo[usergroupid] <= 4) && ($bbuserinfo[usergroupid] <= 4)) {
        if (
$touserinfo[messagecount] >= $pmquota) {
          
// no further private messages allowed
          
eval("\$email_message = \"".gettemplate("email_pmboxfull",1,0)."\";");
          eval(
"\$email_subject = \"".gettemplate("emailsubject_pmfullbox",1,0)."\";");
          
mail($touserinfo[email],$email_subject,$email_message,"From: \"$bbtitle Mailer\" <$webmasteremail>");
          
$errormessages .= "<li>$touserinfo[username] <smallfont>($touserinfo[messagecount] messages in folder)</smallfont></li>";
          
// go straight to the next recipient in the list
          
continue;
        }
      } elseif ((
$pmquota 0) && ($touserinfo[usergroupid] == 5) or ($touserinfo[usergroupid] == 7) && ($bbuserinfo[usergroupid] == 5) or ($bbuserinfo[usergroupid] == 7)) {
        if (
$touserinfo[messagecount] >= 100) {
          
// no further private messages allowed
          
eval("\$email_message = \"".gettemplate("email_pmboxfull",1,0)."\";");
          eval(
"\$email_subject = \"".gettemplate("emailsubject_pmfullbox",1,0)."\";");
          
mail($touserinfo[email],$email_subject,$email_message,"From: \"$bbtitle Mailer\" <$webmasteremail>");
          
$errormessages .= "<li>$touserinfo[username] <smallfont>($touserinfo[messagecount] messages in folder)</smallfont></li>";
          
// go straight to the next recipient in the list
          
continue;
        }
      } 
// end check quotas 
Next find:
PHP Code:
    // if to-user's PM quota is exceded by sending these messages...
    
if (($pmquota 0) && (($touserinfo[messages] + $nummessages) > $pmquota) && ($bbuserinfo[usergroupid] != 6) && ($touserinfo[usergroupid] != 6)) {
        eval(
"\$email_message = \"".gettemplate("email_pmboxfull",1,0)."\";");
        eval(
"\$email_subject = \"".gettemplate("emailsubject_pmfullbox",1,0)."\";");
        
mail($touserinfo[email],$email_subject,$email_message,"From: \"$bbtitle Mailer\" <$webmasteremail>");
        eval(
"standarderror(\"".gettemplate("error_pmfullmailbox")."\");");
        exit;
    } 
And replace that with:
PHP Code:
    // if to-user's PM quota is exceded by sending these messages...
    
if (($pmquota 0) && (($touserinfo[messages] + $nummessages) > $pmquota) && ($bbuserinfo[usergroupid] <= 4) && ($touserinfo[usergroupid] <= 4)) {
        eval(
"\$email_message = \"".gettemplate("email_pmboxfull",1,0)."\";");
        eval(
"\$email_subject = \"".gettemplate("emailsubject_pmfullbox",1,0)."\";");
        
mail($touserinfo[email],$email_subject,$email_message,"From: \"$bbtitle Mailer\" <$webmasteremail>");
        eval(
"standarderror(\"".gettemplate("error_pmfullmailbox")."\");");
        exit;
    } elseif ((
$pmquota 0) && (($touserinfo[messages] + $nummessages) > 100) && (($touserinfo[usergroupid] == 5)  or ($touserinfo[usergroupid] == 7)) && (($bbuserinfo[usergroupid] == 5) or ($bbuserinfo[usergroupid] == 7))){
        eval(
"\$email_message = \"".gettemplate("email_pmboxfull",1,0)."\";");
        eval(
"\$email_subject = \"".gettemplate("emailsubject_pmfullbox",1,0)."\";");
        
mail($touserinfo[email],$email_subject,$email_message,"From: \"$bbtitle Mailer\" <$webmasteremail>");
        eval(
"standarderror(\"".gettemplate("error_pmfullmailbox")."\");");
        exit;
    } 
Remember this may not work.
Reply With Quote
  #5  
Old 08-12-2002, 12:53 PM
Cloud Strife Cloud Strife is offline
 
Join Date: Jun 2002
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried the first one and it didnt work, then I was about to tell you and saw this message, but it still doesnt work???
Reply With Quote
  #6  
Old 08-12-2002, 01:02 PM
[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

Try it once more because I edited the first one.
Reply With Quote
  #7  
Old 08-13-2002, 09:21 AM
Cloud Strife Cloud Strife is offline
 
Join Date: Jun 2002
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works, but it seems that the mods and super mods have unlimited PM space rather than 100...

Is there anyway to fix that???

Thanks alot.. I appreciate your help
Reply With Quote
  #8  
Old 08-13-2002, 04:53 PM
[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

Hmmmm... give me a day or two and I'll come up with something.
Reply With Quote
  #9  
Old 08-13-2002, 04:59 PM
Cloud Strife Cloud Strife is offline
 
Join Date: Jun 2002
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks alot!
I really appreciate your help here!

Cloud Strife
Reply With Quote
  #10  
Old 08-16-2002, 12:51 PM
Cloud Strife Cloud Strife is offline
 
Join Date: Jun 2002
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im really sorry to bother you [D]Vincent, but have you managed to finish that hack yet?

Its just that its quite urgent...

Thanks
Cloud strife
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 07:02 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.04611 seconds
  • Memory Usage 2,336KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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