vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Set "Receive Email from Admins/Members" to ticked for all members (https://vborg.vbsupport.ru/showthread.php?t=278083)

Scandal 02-05-2012 12:05 PM

Set "Receive Email from Admins/Members" to ticked for all members
 
In User Control Panel > Edit Options, there are the following two options with "tick" box:
Receive Email from Administrators
Receive Email from Other Members

I want to set these boxes to "ticked" (yes) for all members. Is there any option to Admin CP to do it or something query that I must run to set it?

kh99 02-05-2012 12:58 PM

You can do this query:

Code:

UPDATE user SET options = (options | (256 + 16))

I've tried it, but you might want to test it first on one user by adding "WHERE userid = X" to the query.

Scandal 02-05-2012 02:12 PM

Thanks in advance, it works fine on my test forum!

Two last similar question:
1. What is the query to change only the "Receive Email from Administrators" to ticked for all members? (i want to decide)
2. I want to set the field "Time zone" for all users to "(GMT +2:00) Kaliningrad, South Africa, Cairo". What is the query?

kh99 02-05-2012 02:27 PM

Quote:

Originally Posted by philos2 (Post 2296440)
Thanks in advance, it works fine on my test forum!

Two last similar question:
1. What is the query to change only the "Receive Email from Administrators" to ticked for all members? (i want to decide)

Code:

UPDATE user SET options = (options | 16)

and you can probably guess what the query for the other one would be :).

Quote:

2. I want to set the field "Time zone" for all users to "(GMT +2:00) Kaliningrad, South Africa, Cairo". What is the query?
I think it would be:

Code:

UPDATE user SET timezoneoffset = '2'

Scandal 02-05-2012 02:49 PM

Thank you very much! :D


All times are GMT. The time now is 01:11 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.00974 seconds
  • Memory Usage 1,719KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete