Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
L.K. Posted July 21, 2015 Posted July 21, 2015 Hi guys,I want to know, what the entries in members_bitoptions field are standing for?If I do a count on my core_members table, I have following results. As far as I could see, "1073807360" means that they will need to activate their account by DOI.Could anybody help me out? mysql> select count(*), members_bitoptions FROM core_members GROUP BY members_bitoptions;+----------+--------------------+| count(*) | members_bitoptions |+----------+--------------------+| 3 | 0 || 797877 | 65536 || 1 | 65537 || 6 | 69632 || 1 | 134217728 || 38 | 268500992 || 1 | 268503040 || 3 | 268505088 || 8756 | 1073807360 |+----------+--------------------+
Marcher Technologies Posted July 21, 2015 Posted July 21, 2015 Unless you have a very strong understanding of bitwise operations, it is not wise to be altering that or viewing it via the database directly to try to determine the value.It stands for an entire set of binary flags for the given member:/** * @brief Bitwise values for members_bitoptions field */ public static $bitOptions = array( 'members_bitoptions' => array( 'members_bitoptions' => array( 'bw_is_spammer' => 1, // Flagged as spam? // 2 is deprecated // 4 (bw_vnc_type) is deprecated // 8 (bw_forum_result_type) is deprecated 'bw_no_status_update' => 16, // Can post status updates?, 1 means they CAN'T post status updates. 0 means they can. // 32 (bw_status_email_mine) is deprecated // 64 (bw_status_email_all) is deprecated // 128 is deprecated (previously bw_disable_customization) // 256 is deprecated (bw_local_password_set) - used to represent if a local passwnot was set and block the change password form if not 'bw_disable_tagging' => 512, // Tags disabled for this member? 1 means they are, 0 means they aren't. 'bw_disable_prefixes' => 1024, // Tag prefixes disabled? 1 means they are, 0 means they aren't. 'bw_using_skin_gen' => 2048, // 1 means the user has the easy mode editor active, 0 means they do not. 'bw_disable_gravatar' => 4096, // If 0 then gravatar will not be used. // 8192 (bw_paste_plain) is deprecated // 16384 (bw_html_sig) is deprecated // 32768 (allow_admin_mails) is deprecated 'view_sigs' => 65536, // View signatures? // 131072 (view_img) is deprecated // 262144 is deprecated 'coppa_user' => 524288, // Was the member validated using coppa? // 1048576 (login_anonymous) is deprecated // 2097152 (login_anonymous_online) is deprecated // 4194304 (members_auto_dst) is deprecated // 8388608 (members_created_remote) is deprecated // 16777216 (members_disable_pm) is deprecated 'unacknowledged_warnings' => 33554432, // 1 means the member has at least one warning they have not acknowledged. 0 means they have none. // 67108864 (pp_setting_moderate_comments) is deprecated and replaced with global setting 'pp_setting_moderate_followers' => 134217728, // Previously pp_setting_moderate_friends. Replaced with setting that toggles whether or not member can be followed. 'pp_setting_count_visitors' => 268435456, // If TRUE, last 5 visitors will be shown on profile 'timezone_override' => 536870912, // If TRUE, user's timezone will not be detected automatically 'validating' => 1073741824, // If TRUE user is validating and should have a corresponding row in core_validating ), 'members_bitoptions2' => array( 'show_pm_popup' => 1, // "Show pop-up when I have a new message" 'remove_gallery_access' => 2, // Remove access to Gallery 'remove_gallery_upload' => 4, // Remove permission to upload images in Gallery 'no_report_count' => 8, // 1 means the report count will not show 'has_no_ignored_users' => 16, // If we know the user has no ignored users, we don't have to query for them ) ) ); pulled from \IPS\Member. As above, even I am rather.... hesitant to try to modify or read such from the database directly.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.