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

Reply
 
Thread Tools Display Modes
  #1  
Old 12-15-2010, 07:47 AM
squishi squishi is offline
 
Join Date: May 2006
Location: Frankfurt
Posts: 282
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Deactivating email sending in database

I noticed that about 2/3 of my membership has never posted on the board.
When I send out emails, about 1/2 of them come right back.

So I want to turn off the email reception settings for inactive users.
I can select all the users with an SQL query.

But I think the email options are encoded in the options database column?
Could you please explain to what setting I would need to set this so that inactive users no longer receive an notifications from my forum (except admin emails)?
Reply With Quote
  #2  
Old 12-17-2010, 06:50 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by squishi View Post
I noticed that about 2/3 of my membership has never posted on the board.
When I send out emails, about 1/2 of them come right back.

So I want to turn off the email reception settings for inactive users.
I can select all the users with an SQL query.

But I think the email options are encoded in the options database column?
Could you please explain to what setting I would need to set this so that inactive users no longer receive an notifications from my forum (except admin emails)?
There's an option in each User's settings to opt out of receiving Admin Emails. You can tick that option for each of those Users yourself when editing them in the Admin CP. It's under Browsing Options.
Reply With Quote
  #3  
Old 12-17-2010, 09:16 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you still want to do it with a query (like if there are too many to do manually), you could probably figure it out by getting the value of "options" from the db for your userid, then change the option you're interested in and get it again and see which bit changed. I did that for "Receive email from Admins" or whatever it's called, but I just read your post again and I see now that's the one you want leave on.
Reply With Quote
  #4  
Old 12-24-2010, 06:19 AM
squishi squishi is offline
 
Join Date: May 2006
Location: Frankfurt
Posts: 282
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Digital Jedi View Post
There's an option in each User's settings to opt out of receiving Admin Emails. You can tick that option for each of those Users yourself when editing them in the Admin CP. It's under Browsing Options.
If you like to click that option for 30,000+ users on your forum - fine.
I have better things to do and will need to edit the database.

--------------- Added [DATE]1293179002[/DATE] at [TIME]1293179002[/TIME] ---------------

So what options are included in that database field?
I want to make sure that I don't accidentally overwrite something.
Reply With Quote
  #5  
Old 12-24-2010, 05:56 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by squishi View Post
If you like to click that option for 30,000+ users on your forum - fine.
I have better things to do and will need to edit the database.
Being that I have no idea how many members you were referring to, since you never mentioned it, I was giving you an option you may or may not have been aware of. I was trying to be helpful. The sarcasm wasn't really necessary.
Reply With Quote
  #6  
Old 12-26-2010, 01:55 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by squishi View Post
I noticed that about 2/3 of my membership has never posted on the board.
When I send out emails, about 1/2 of them come right back.

So I want to turn off the email reception settings for inactive users.
I can select all the users with an SQL query.

But I think the email options are encoded in the options database column?
Could you please explain to what setting I would need to set this so that inactive users no longer receive an notifications from my forum (except admin emails)?
You should probably require a valid email address on registration (email confirmation) so you don't get to the point of having so many bad email addresses to begin with.
Reply With Quote
  #7  
Old 12-26-2010, 06:06 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by squishi View Post
So what options are included in that database field?
I want to make sure that I don't accidentally overwrite something.
I don't know, but I was thinking it doesn't matter if you find the bit of interest (as I mentioned above) and only change that one bit, like with a bitwise OR or AND.
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:47 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.04117 seconds
  • Memory Usage 2,222KB
  • 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
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete