vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Send Email When a Private Message is Received (https://vborg.vbsupport.ru/showthread.php?t=294627)

AK47- 01-31-2013 08:07 PM

Send Email When a Private Message is Received
 
How can i disable this for all users?

Simon Lloyd 02-01-2013 04:59 AM

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 :)

AK47- 02-05-2013 10:33 AM

Quote:

Originally Posted by Simon Lloyd (Post 2400964)
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?

ForceHSS 02-05-2013 10:46 AM

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

AK47- 02-09-2013 10:41 PM

Quote:

Originally Posted by ForceHSS (Post 2402042)
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 :p

Amaury 02-09-2013 11:14 PM

Some users do prefer to receive e-mails of new PMs...

ForceHSS 02-09-2013 11:22 PM

Quote:

Originally Posted by AK47- (Post 2403198)
what's the sql query i have to input so it turns off everyones email thingy :p

It's in the drop down list in the location I posted above

LifesGreatestGift 02-10-2013 12:59 AM

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.

ForceHSS 02-10-2013 04:12 PM

Quote:

Originally Posted by LifesGreatestGift (Post 2403227)
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

LifesGreatestGift 02-10-2013 04:37 PM

then select NO instead of yes. not hard to figure out. ;)


All times are GMT. The time now is 01:24 AM.

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.01019 seconds
  • Memory Usage 1,759KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_html_printable
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete