vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   vBulletin database question (2.2.8 to 3.7.3) (https://vborg.vbsupport.ru/showthread.php?t=190373)

manfai777 09-08-2008 09:17 PM

vBulletin database question (2.2.8 to 3.7.3)
 
Back in the old days, version 2.2.8, in the User database base, there are the following columns:

showemail [smallint(6), NOTNULL]
emailnotification [smallint(6), NOTNULL]

In the Usergroup table, there is the following column:

canpostnew [smallint(6), NOTNULL]

I can't find these columns anymore in the 3.7.3 vBulletin database tables, can you tell me which are the corresponding new fields for the above columns and in which table can I find them?

Much appreciated!

Opserty 09-08-2008 11:06 PM

I think they would probably have been moved into a bitfield setting I think its called "options" in the user table.

You can view the list of bitfield settings by looking in the /includes/xml/bitfield_vbulletin.xml file. I think vBulletin still uses the same name so try doing a "Find" in that file and you should find the info you need.

(A Closer Look at Bitfields)

manfai777 09-10-2008 09:02 PM

Thanks for the help. From the bitfield xml file, I see the following:

<bitfield name="canpostnew" group="post_thread_permissions" phrase="can_post_threads" install="2,5,6,7">16</bitfield>

As I understand this, this is the forumpermissions column from the usergroup table, is this correct? Should I just do a bitwise operation to check if 16 is masked? What does "install=2,5,6,7" mean?

Opserty 09-10-2008 10:33 PM

  1. Yes
  2. Yes
  3. It refers to when the product (in this case vBulletin) is first installed, which groups should have that set to true (or "Yes") by default.

(2, 5, 6, 7 are the default Registered Users, Super Moderators, Administrators and Moderators usergroups)


All times are GMT. The time now is 02:25 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.01031 seconds
  • Memory Usage 1,713KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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