Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-10-2002, 01:15 AM
nulltone nulltone is offline
 
Join Date: Apr 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Mass User Import

The head admin of my school is going to basically give me a comma seperated database, in text format. This database will have a list of users, and their desired password.
As of now, it is planned that we will only have their name and password, but other information (if nessicary) can be placed in this file.
I have full access to this server (Linux), so I can use mysql on the command line.

1. First of all, is it possbile (through vBulletin, mysql, php, whatever) to mass add users like this? Has anyone made a script? I have done many searches and have found nothing.
2. Of all, how has it been done, or how could it be done?
3. Are there any complications?

Idealy, I would like the user preferences (no to signatures, yes to mail from admin, etc) in that file, but those can be set manually through the mysql command line at a later date.

Keep in mind, the passwords will be in plain text.
Reply With Quote
  #2  
Old 09-10-2002, 08:45 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can (should) write a PHP script which will read from your file and update the user table in db accordingly. Since it's only user table there wont be any complications to worry about just dont forget to update your counters after you run the script. In your script you can (should) configure any other field's default value other than username and password.

Quote:
Keep in mind, the passwords will be in plain text.
They can be plain text in your source file but you have to MD5 them while your scripting is writing them into your db..
Reply With Quote
  #3  
Old 09-10-2002, 12:45 PM
nulltone nulltone is offline
 
Join Date: Apr 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, I guess suprisingly no one has made this type of script before?
I dont know anything about php, so....I dont know if I'd be able to pull it off..
Reply With Quote
  #4  
Old 12-18-2002, 02:32 AM
matthew tucker's Avatar
matthew tucker matthew tucker is offline
 
Join Date: Nov 2002
Location: Sydney, Australia
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So ... did you pull it off in the end??

If so, can you share it?

We have an external membership database (filemaker, but could be exported to csv etc) which has personal and membership information; I'd like to mass-import all our financial users and update their records on a monthly basis so that when they become unfinancial they lose certain privileges on the vbboard. (read: incentive to rejoin)

I can do this currently via an expiry date manually entered into admincp for each user, and cunningly interrogated when a user visits the board, dropping them to a lower privilege usergroup id they are not financial. They can also see when they log in how many days left they have on their membership.

But I'd like to do it for all users in an automatic sort of way. :ermm:
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 05:30 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.04063 seconds
  • Memory Usage 2,183KB
  • 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