vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   User List Import (https://vborg.vbsupport.ru/showthread.php?t=47336)

jacobi 01-03-2003 06:29 PM

User List Import
 
Greetings all, and happy New Year!

I have been lurking here for a little while, and have found I am not alone in my problem: I would like to import an existing membership database for my organization (in text-delimited format) as a starting point for my forum. (Then I can e-mail all of my members on how to get started).

After trying a number of search strings, I found several posts where people asked about this, but they kind of disintegrated into thin air.

On another Web site I manage, we use Discus, where the administrator may or may not choose to use MySQL as a backend, but it has an import facility/utility that allows the admin to paste delimited text, which it parses into the database.

Any/all suggestions are most appreciated! :)

Xenon 01-03-2003 07:52 PM

well shouldn't be too hard to do :)

just a little script is required, which reads out from that file,and filles in the information into the user and userfield tables...

i'd say it would be a job of 5 perhaps 10 minutes for any hacker out here.
just the thing to manege the db at first a bit, to include all the fields can take a bit more (wether explaining or doing it self per admin rights)

jacobi 01-07-2003 11:00 AM

Anybody out there? :)

I would like to go "live" with my forum soon, but one of the features I touted to our organization was the ability to browse a list of our members. If we have to wait for everyone to register, that feature won't be a reality for months, unfortunately.

I tried to upload a CSV tab delimited file in a MySQL management program, matching the relevant fields (including the appropriate group id number), and it showed up in my admin group list, but did not show up in the user list. The admin CP showed that number of members, but I could not manage the data. There seems to be something I'm missing.

Thanks again,
Adam

Logician 01-07-2003 11:24 AM

Quote:

After trying a number of search strings, I found several posts where people asked about this, but they kind of disintegrated into thin air.
Actually why this does not exist is highly related to the fact that there can not be a "magical script" that can work for all.

The conversion script must be a custom one depending on the user details of the site applied for everyone. So for example your memberinfo might be including membername, email, location, age, while some other site owner's list has membername, profession, interests, birthday.

Therefore you can code a script that will work for your site but you can not easily turn it to a "full release vb hack" which will work for other users as well who are trying to achieve the same goal..

Xenon 01-07-2003 03:54 PM

Quote:

Originally posted by jacobi
I tried to upload a CSV tab delimited file in a MySQL management program, matching the relevant fields (including the appropriate group id number), and it showed up in my admin group list, but did not show up in the user list. The admin CP showed that number of members, but I could not manage the data. There seems to be something I'm missing.
Whenever you import a member into the user table, you have to create a row in the userfield table also
after you have created this row (just userid must be filled, the rest is irrelevant) the user can be edited from within your acp :)

jacobi 01-07-2003 05:15 PM

First, Xenon - thanks for the tip. I bet that'll do the trick and I can't wait to try.

Quote:

Regarding Logician's post...
The conversion script must be a custom one depending on the user details of the site applied for everyone. So for example your memberinfo might be including membername, email, location, age, while some other site owner's list has membername, profession, interests, birthday.
I realize this, which is why I customized my member info file to match with vBulletin's fields. I actually painstakingly reorganized the data columns to work with the import, which is why the MySQL database was populated correctly. If the MySQL import worked (and I was just missing what Xenon pointed out), I'm wondering if a be-all, end-all script couldn't prompt the user to match fields and then change the field names/descriptions later. Just a thought.

jacobi 01-08-2003 12:51 PM

Well, I imported to both the "user" and "userfield" tables, and it worked like a charm. In fact, I probably should have just done that in the first place because I did have the profile data for the userfield table; I was simply looking for instant gratification.

charlesm 01-12-2003 04:04 PM

Hi,

We a have a user list that we need to import for a client and would prefer to pay someone to write a script that works rather than bodge it ourselves...

Essentially we will have a CSV file that determines the user name, password, email addresses and a series of fields that relates to the their options (this may or not be necessary).

This will then need to be imported into the main database - initially when it is installed and then possibly every six months.

The board is being is installed within a secure extranet, so the only way that people can be added will be either via the admin section or via this install.

If you need anything else to price this, please let me know,

kaihawaii 04-19-2003 06:47 PM

is there a generic hack fpr these issue, for importing such userfiles, e.g.:

"email"
"name@one.com"
"name@two.com"

or

"email","firstname","lastname"?

it should upd. all the needed tables for 2.6 and must be customizable before on the customfields.

brobson168 07-28-2003 03:13 PM

Hi, we are just setting up a chat room for DECUS - the UK Digital Pensioners association. We have very similar requirement - we wish to import from a CSV file our member details (we have over 500 member so typing them in is a major task).

Can anyone help?

Cheers

Brian Robson(brian.robson@btinternet.com.UK)


All times are GMT. The time now is 08:24 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.01776 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete