Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-30-2013, 06:40 PM
blue7's Avatar
blue7 blue7 is offline
 
Join Date: Aug 2007
Location: Turkey/Ankara
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to disable sending email when the PM box is full ?

Hello,

I am using "vBRecycle - Moderation Auto-PM" mod, which is send pm to users when their post or threads deleted. Yesterday an user complained about spam mails. I asked to him what spam mail and he show me his mail box which is full of spams and say "your inbox is full etc..."

Problem is when someone's inbox is full and if their thread or post deleted "vBRecycle - Moderation Auto-PM" mod trying to send them pm and because inbox is full mod keep continue trying to send pm. Each time process fail user get a spam mail. And theres really thousands of spams.

I dont want to disable vBRecycle - Moderation Auto-PM mod because its really useful, i need to disable system which is send email to user when his inbox is full but i dont know how do that. On admin cp there is no such option for this.

I need your help. Thanks in advance.
Reply With Quote
  #2  
Old 10-30-2013, 11:34 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Problem is with that mod, it is not something in vBulletin that should be doing. With that said you should be able to do it by editing the file, includes/functions_autopm and add this:

Code:
$pmdm->set_info('is_automated', true);
After this:
Code:
$pmperms['adminpermissions'] = 2;
This is untested, so you ill have to test it out yourself.
Reply With Quote
Благодарность от:
blue7
  #3  
Old 10-31-2013, 01:06 PM
blue7's Avatar
blue7 blue7 is offline
 
Join Date: Aug 2007
Location: Turkey/Ankara
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your answer,

i did what you said and when i tested it i got this error :

HTML Code:
Fatal error: Call to a member function set_info() on a non-object in /home/......./domains/......./public_html/forum/includes/functions_autopm.php on line 117
Reply With Quote
  #4  
Old 10-31-2013, 11:23 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm, try adding this,

Code:
require_once('./global.php'); 
require_once(DIR . '/includes/adminfunctions_profilefield.php'); 
require_once(DIR . '/includes/adminfunctions_user.php');
below this,

Code:
// ========================================================================
// Moderation Auto-PM
// Automaticly sends a PM when a thread, post or attachment is moderated
// Version 2.0.1
// ------------------------------------------------------------------------
// FUNCTIONS_AUTOPM.PHP - Called from the plugins
// ------------------------------------------------------------------------
// Written by Alan Wagstaff
// Copyright (C) 2006 Alan Wagstaff
// ========================================================================
Reply With Quote
  #5  
Old 11-01-2013, 01:32 PM
blue7's Avatar
blue7 blue7 is offline
 
Join Date: Aug 2007
Location: Turkey/Ankara
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This time i got this error :

Code:
Fatal error: Call to a member function set_info() on a non-object in /home/.../domains/..../public_html/forum/includes/functions_autopm.php on line 121
Reply With Quote
  #6  
Old 11-01-2013, 08:13 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I mess around with it a bit later and see what I can do with it.
Reply With Quote
  #7  
Old 11-01-2013, 08:21 PM
blue7's Avatar
blue7 blue7 is offline
 
Join Date: Aug 2007
Location: Turkey/Ankara
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok thanks.
Reply With Quote
  #8  
Old 11-01-2013, 11:55 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I think I finally got it, add this:

Code:
    $pm = datamanager_init('PM', $vbulletin, ERRTYPE_SILENT);
    $pm->overridequota = true;
    $pm->set_info('is_automated', true);
After this:

Code:
// Fill in the blanks
Had to adjust some of the code, but it seems to send the PM now, and no email if the inbox is full.
Reply With Quote
Благодарность от:
Lynne
  #9  
Old 11-02-2013, 07:24 PM
blue7's Avatar
blue7 blue7 is offline
 
Join Date: Aug 2007
Location: Turkey/Ankara
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do i need to undo the changes you said previously?
Reply With Quote
  #10  
Old 11-02-2013, 07:25 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, undo those, and just use the last one.
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 06:31 AM.


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.04880 seconds
  • Memory Usage 2,267KB
  • 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
  • (7)bbcode_code
  • (1)bbcode_html
  • (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
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete