Announcement

Collapse
No announcement yet.

user table option field

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • user table option field

    I currently send a newsletter to all registered users (I use a odbc connection from my email server to select usergroupid = 2 from the users table)

    But I would like to use the Receive Email from Administrators option to turn on / off my sites newsletter so members can opp out. I see that adding 16 allows admin emails and minus turns off the option but I see a lot of odd numbers in that field.

    Is there a reference to the way the options field works?

  • #2
    See this thread.

    The user option bits are defined in the includes/init.php file:

    Code:
    // Defined constants used for user field.
    $_USEROPTIONS = array(
    	'showsignatures'    => 1,
    	'showavatars'       => 2,
    	'showimages'        => 4,
    	'coppauser'         => 8,
    	'adminemail'        => 16,
    	'showvcard'         => 32,
    	'dstauto'           => 64,
    	'dstonoff'          => 128,
    	'showemail'         => 256,
    	'invisible'         => 512,
    	'showreputation'    => 1024,
    	'receivepm'         => 2048,
    	'emailonpm'         => 4096,
    	'hasaccessmask'     => 8192,
    	//'emailnotification' => 16384, // this value is now handled by the user.autosubscribe field
    	'postorder'         => 32768,
    );

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎