Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adding Users via a Back Door Script? - Users Added fine, but not recognized! Details »»
Adding Users via a Back Door Script? - Users Added fine, but not recognized!
Version: , by donjames donjames is offline
Developer Last Online: Aug 2002 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-20-2002 Last Update: Never Installs: 0
 
No support by the author.

Hi,

I'm designing a site for a client and the site already requires users to register for certain features. Now - we don't want them to register again to access vBulletin (so as to keep usernames/passwords the same). So, I've added code to the registration script I already had (not the vBulletin registration script) so that when a user registers, he is automatically added to the user table for vbulletin.

That all works fine - BUT - when the user who has been added this way tries to login to vBulletin, it initially recognizes them, but when about to display the list of forums, it gives an error:

"There seems to have been a slight problem with the NRCCM Forums database.
Please try again by pressing the refresh button in your browser."

It works fine if I login myself since I initially registered via the vBulletin registration script (so as to be the Administrator). But when logging in users added the other way - it won't display the forums.

When checking the user table, all the entries are there, and the values seem to be okay. The number of users in each user group are also displayed fine in the Administration Control Panel - under Modify User Groups. But when I go to list the users in a particular group, it doesn't find any.

Can anyone give me an idea as to why this might be happening. I haven't changed ANY code in vBulletin - all I've done is add users to the MySQL user table.

Is there a particular field that might not be set or is there another table that might have to be updated after adding members this way?

The insert statement I am using is like the statement below only some of the values change: (note that when adding the password, I first encrypt it using the same command vBulletin does: md5($password))

INSERT INTO user
(usergroupid, username, password, email, styleid, parentemail, coppauser, homepage, icq, aim, yahoo, signature, adminemail, showemail, invisible, usertitle, customtitle, joindate, cookieuser, daysprune, lastvisit, lastactivity, lastpost, posts, timezoneoffset, emailnotification, buddylist, ignorelist, pmfolders, receivepm, emailonpm, pmpopup, avatarid, options, birthday, maxposts, startofweek, ipaddress, referrerid, nosessionhash, inforum)
VALUES (2, 'test', 'ff0680754d57409ca47143f1c01c5320', 'test@hostworthy.biz', 2, '', 0, '', '', '', '', '', 1, 0, 0, 'Junior Member', 0, time(), 1, -1, time(), time(), 0, 0, '-5', 1, '', '', '', 1, 1, 0, 0, 15, '0000-00-00', -1, 1, '', 0, 0, 0);

It seems to add users fine - the problem is vBulletin doesn't recognize these though it counts them correctly.

Any help would be appreciated!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-21-2002, 03:54 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you must also add users to the userfield table
Reply With Quote
  #3  
Old 08-21-2002, 07:19 PM
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Location: eXtremewebtech.com
Posts: 1,201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And make sure its setting there groupid.
Reply With Quote
  #4  
Old 08-22-2002, 12:17 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's all userfield table.

If they're not in the userfield table, you can't edit them in the admin CP not can you see them on the memberlist. Learned that the hard way.
Reply With Quote
  #5  
Old 08-22-2002, 01:07 AM
donjames donjames is offline
 
Join Date: Aug 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks everyone - it works now :classic:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11: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.03897 seconds
  • Memory Usage 2,233KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete