Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 01-31-2013, 08:07 PM
AK47- AK47- is offline
 
Join Date: Apr 2012
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Send Email When a Private Message is Received

How can i disable this for all users?
Reply With Quote
  #2  
Old 02-01-2013, 04:59 AM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You'd have to do it in phpmyadmin (database) then you'd need to edit the modifyoptions template and find this
HTML Code:
<tr>
							<td><br />$vbphrase[can_email_when_sends_you_pm]</td>
						</tr>
						<tr>
							<td><label for="cb_emailonpm"><input type="checkbox" name="options[emailonpm]" value="1" id="cb_emailonpm" $checked[emailonpm] />$vbphrase[receive_email_notification_pm]</label><input type="hidden" name="set_options[emailonpm]" value="1" /></td>
						</tr>
and remove it

EDIT: the code above is for vb3 but just look in the same template for similar code and remove it
Reply With Quote
  #3  
Old 02-05-2013, 10:33 AM
AK47- AK47- is offline
 
Join Date: Apr 2012
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Simon Lloyd View Post
You'd have to do it in phpmyadmin (database) then you'd need to edit the modifyoptions template and find this
HTML Code:
<tr>
							<td><br />$vbphrase[can_email_when_sends_you_pm]</td>
						</tr>
						<tr>
							<td><label for="cb_emailonpm"><input type="checkbox" name="options[emailonpm]" value="1" id="cb_emailonpm" $checked[emailonpm] />$vbphrase[receive_email_notification_pm]</label><input type="hidden" name="set_options[emailonpm]" value="1" /></td>
						</tr>
and remove it

EDIT: the code above is for vb3 but just look in the same template for similar code and remove it
Could you go into more detail about the database edit?
Reply With Quote
  #4  
Old 02-05-2013, 10:46 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Admincp/maintenance/execute SQL query this is just a temp fix until member turn it on again do the above to turn it off for good
Reply With Quote
  #5  
Old 02-09-2013, 10:41 PM
AK47- AK47- is offline
 
Join Date: Apr 2012
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForceHSS View Post
Admincp/maintenance/execute SQL query this is just a temp fix until member turn it on again do the above to turn it off for good
what's the sql query i have to input so it turns off everyones email thingy
Reply With Quote
  #6  
Old 02-09-2013, 11:14 PM
Amaury Amaury is offline
 
Join Date: Nov 2011
Location: Ellensburg, WA
Posts: 1,075
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Some users do prefer to receive e-mails of new PMs...
Reply With Quote
  #7  
Old 02-09-2013, 11:22 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AK47- View Post
what's the sql query i have to input so it turns off everyones email thingy
It's in the drop down list in the location I posted above
Reply With Quote
  #8  
Old 02-10-2013, 12:59 AM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First, add your admin userid to the config file.
open ./includes/config.php

around line 129 you will find
PHP Code:
$config['SpecialUsers']['canrunqueries'] = ''
add your userid. if its '1' then it will resemble this
PHP Code:
$config['SpecialUsers']['canrunqueries'] = '1'
save/re-upload the file

Go To
AdminCP->Maintenance->Execute SQL Query->

Select
Code:
Yes - Send Notification Email When a Private Message is Received
under All Users

Click "Continue", and then on the next page click "Continue" again to "Confirm Query Execution"

Done.

And so you don't have to keep doing it, set it to do this by default by going to

AdminCP->Settings->Options->User Registration Options->

Check the box in the "Default Registration Options" section that reads
Code:
Send Notification Email When a Private Message is Received
Save. Done.
Reply With Quote
  #9  
Old 02-10-2013, 04:12 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LifesGreatestGift View Post
First, add your admin userid to the config file.
open ./includes/config.php

around line 129 you will find
PHP Code:
$config['SpecialUsers']['canrunqueries'] = ''
add your userid. if its '1' then it will resemble this
PHP Code:
$config['SpecialUsers']['canrunqueries'] = '1'
save/re-upload the file

Go To
AdminCP->Maintenance->Execute SQL Query->

Select
Code:
Yes - Send Notification Email When a Private Message is Received
under All Users

Click "Continue", and then on the next page click "Continue" again to "Confirm Query Execution"

Done.

And so you don't have to keep doing it, set it to do this by default by going to

AdminCP->Settings->Options->User Registration Options->

Check the box in the "Default Registration Options" section that reads
Code:
Send Notification Email When a Private Message is Received
Save. Done.
He wants it off, not to send email
Reply With Quote
  #10  
Old 02-10-2013, 04:37 PM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

then select NO instead of yes. not hard to figure out.
Reply With Quote
Благодарность от:
Amaury
Reply

Thread Tools
Display Modes

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 04:14 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.04326 seconds
  • Memory Usage 2,274KB
  • 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
  • (4)bbcode_code
  • (2)bbcode_html
  • (4)bbcode_php
  • (4)bbcode_quote
  • (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
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)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