Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 05-31-2002, 07:06 PM
nikvon's Avatar
nikvon nikvon is offline
 
Join Date: Jan 2002
Location: Huntington Beach CA
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Looking for Advice on Importing Users

The guys at the vBulletin Forums suggested I try this post here:

Does anyone have a comprehensive set of directions on how to Import Users using phpmyadmin?

I would very much appreciate any experienced users' do's, dont's and dont forget to's tips.

I have MySQL v3.23.32 and phpmyadmin v2.2.3.

This is the first time for me trying this. I want to append about 400 users to a user database that already contains about 110 users.

I'm no stranger to importing data into databases, but have never done it with these tools into this type of database engine.

I have the csv file ready to go and I know to back up the mysql tables before I proceed.

Do I leave the UserID field empty (I see it is an auto-increment field), or do I need to assign a userid to each new record?

Do I also need to Import/append the new users to the UserField too, even if the field1 through field5 will be empty? How about into the UserActivation table? I notice both have the UserID field in them.

How to I create that 10 digit date/time number for JoinDate for June 1 2002 at 6am?

After sucessfully importing/appending these records, what do I need to update from the admin panel?

Any helpful hint would be greatly appreciated.

Thank you.
Reply With Quote
  #2  
Old 05-31-2002, 07:17 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok

1) User-ID can't be empty, but if you'll take the NULL operator, it will use the autoincrement for that, so it works.

2) yes, you have to fill the userfield table too, or you cannot change userinfos in the admin-panel.

3) you can create the datelines with the php-function mktime(), look at php.net about the params

4) if the users are in the DB, you don't need to do anything more in the ACP, they are in
Reply With Quote
  #3  
Old 06-30-2002, 06:48 PM
mashby's Avatar
mashby mashby is offline
 
Join Date: Jan 2002
Location: Nashville, TN - USA
Posts: 736
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm looking to do the same thing. I had an offline database that I was using for my membership and I have approximately 600 members to import into vB.

The posts above were very helpful, but I have a few more questions.
- What do I do with the password field? Can I assign a generic password, if so how?
- Also, what about lastvisit, lastactivity, and lastpost fields. Can they be blank?
- Lastly, once imported, the users are ready to access their accounts correct? In other words, there's no e-mail verification stage right?

Thanks in advance to anyone who can help.
Reply With Quote
  #4  
Old 06-30-2002, 08:11 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by mashby

1 What do I do with the password field? Can I assign a generic password, if so how?
2 Also, what about lastvisit, lastactivity, and lastpost fields. Can they be blank?
3 Lastly, once imported, the users are ready to access their accounts correct? In other words, there's no e-mail verification stage right?

1 if your pws are already encrypted with md5, you can just copy it to the online db, if not you have to encrypt them
you can also assign a generic pw, e.g. if the pw should be the username:

[sql]UPDATE user SET password=MD5(username)[/sql]

2 Yes, then standart time will be inserted

3 if you set them to usergroup 2 no verification is required anymore.
Reply With Quote
Reply

Thread Tools
Display Modes

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 07:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03778 seconds
  • Memory Usage 2,180KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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