vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Recieve email from other members query please (https://vborg.vbsupport.ru/showthread.php?t=188299)

Davey-UK 08-16-2008 09:51 AM

Recieve email from other members query please
 
Could anyone please provide me with the sql query required to make all my members accept email from other members.

I know about the setting for new members, but i need to change the members option already in the database.
Cheers

Marco van Herwaarden 08-16-2008 11:20 AM

Are you really sure you want to do this? This might not be acceptable by your members as this is a privacy setting, and each user should decide for themself if they want to share their email address.

Davey-UK 08-16-2008 11:56 AM

Quote:

Originally Posted by Marco van Herwaarden (Post 1599912)
Are you really sure you want to do this? This might not be acceptable by your members as this is a privacy setting, and each user should decide for themself if they want to share their email address.

Thanks for the reply.

Yes, im quite sure, as this is a school reunion website, so it is vital that users can contact each other.

Any ideas? :)

Marco van Herwaarden 08-16-2008 12:16 PM

Not test, but i am 99% sure it is this setting (make backup before running manual queries, maybe test this first on a testboard).

Show Email Address
On: UPDATE user SET options=options + 256 WHERE NOT(options & 256)
Off: UPDATE user SET options=options - 256 WHERE options & 256

Davey-UK 08-16-2008 12:51 PM

Nice one, thankyou....
I would have never worked that out! :confused:

By the way, if anyone uses this code, you must put your database prefix before the USER

eg vb_user

nexialys 08-16-2008 12:59 PM

prefix, oh prefix...

yeah, this is the query, BUT remember this will query properly if the default options are not changed...

Davey-UK 12-15-2008 05:53 PM

Quote:

Originally Posted by Marco van Herwaarden (Post 1599957)
Not test, but i am 99% sure it is this setting (make backup before running manual queries, maybe test this first on a testboard).

Show Email Address
On: UPDATE user SET options=options + 256 WHERE NOT(options & 256)
Off: UPDATE user SET options=options - 256 WHERE options & 256

Can u please give the query to do exactly the same to the PM system

Davey-UK 12-20-2008 06:12 AM

Dont worry, ive found it!

That automatic query option is a fantastic way of quickly identifying a query.


All times are GMT. The time now is 08:23 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.01128 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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