vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Table 'user' field 'option' (https://vborg.vbsupport.ru/showthread.php?t=181678)

LemarkXxX 06-06-2008 09:25 AM

Table 'user' field 'option'
 
Hello,
I have a simple question: in my database, table 'user', there's a field called 'option', with different values, but I don't understand the useful of this field.
A developper made an alternative page to create new user directly to vbulletin database. As a result, all new users have "15" in option field and they are like "coppa users" (as I can see in my control panel). So he decided to put "3159" (like most of the other users) and now, they can login to the forum, send PM, but for me, I can't send them a PM. I have error sql:

Database error in vBulletin 3.6.8:

Invalid SQL:
INSERT INTO pm (pmtextid, userid) VALUES (480583, );

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Error Number : 1064
Date : Wednesday, June 4th 2008 @ 06:04:53 PM
Script : http://...........
Referrer : http://...........
IP Address : ..:..:..:..
Username : LemarkXxX
Classname : vb_database

Sorry for my poor english, and I hope all of this is understandable.
If there anybody who can find me a solution ?
Thanks in advance...

Dismounted 06-06-2008 09:43 AM

Disable all your modifications. Try then.

Marco van Herwaarden 06-06-2008 10:24 AM

Tell your developer to use the DataManagers instead of directly inserting new users into the user table.

Inserting them manually will lead to many problems unless you know exactly what you are doing (a new user need rows in more tables then only the user table).

The option field is a bitfield used to store multiple boolean values into a single column.

LemarkXxX 06-06-2008 10:46 AM

Quote:

Originally Posted by Marco van Herwaarden (Post 1542209)
Tell your developer to use the DataManagers instead of directly inserting new users into the user table.

Thanks for your answer, but what do you mean by "the DataManagers" ? Sorry for the question... :-)

Marco van Herwaarden 06-06-2008 11:00 AM

See this article for examples: Add new Users (automatically)

LemarkXxX 06-06-2008 12:21 PM

Thanks a lot for your answer...


All times are GMT. The time now is 11:35 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.01655 seconds
  • Memory Usage 1,718KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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