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 03-20-2003, 03:27 AM
spcover spcover is offline
 
Join Date: Sep 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Importing Yahoo Group Member List

I've been working on a site for a friend who has a pretty successful Yahoo Group. During the past six months, we've installed vBulletin 2.8 and then the VBPortal system at phpportals.com over it. So far it is looking good.

Now we want to try to move the Yahoo Group activity over to the vBulletin-based system. There are over 1,000 members in the Group.

I can download the Yahoo Group member list and convert it to a series of INSERT statements. But I need help with constructing the INSERT statements.

For one, I don't understand the numerics on many of the fields and more importantly I certainly don't know how to encrypt a password. This is an example of a phpMyAdmin dump of an INSERT statement for my user record in our vBulletin site:

INSERT INTO user VALUES (3, 6, 'sean, '435599a6845186f3ca42dca51174e8a4', 'sean@yahoo.com', 2, '', 0, 'http://www.yahoo.com', '', '', '', 'Scarsdale Technologies, Inc.\r\nhttp://www.yahoo.com', 1, 0, 0, 'Webmaster', 1, 1033611785, 1, -1, 1046835562, 1047005472, 1042211321, 4, '-5', 1, '2', '', '', 1, 1, 1, 33, 15, '0000-00-00', -1, 1, '', 0, 1, 0, 0, '');

Now, the Yahoo Groups member download file provides very little data. Here is my data record there:

'sean,'sean@yahoo.com','','M','','','Special Notices','Normal','7/10/2001'

It is basically the Username, Email Address, Sex, and Date Joined. No password is provided.

So to convert the Yahoo list, I'd need to make up a password for each user. Let's say, for the conversion, I would make both their new VBulletin username and password equal to their Yahoo name.

Can you help me?

I need an example of the statements required to encrypt the new password (in this instance, it'd temporarily be equal to the username) and to INSERT the new record into the User table.

Thanks much.

Sean
Reply With Quote
  #2  
Old 03-20-2003, 04:17 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I suggest:

assign a random password that is unknown to users (eg. if you assign their own username without MD5ing it as password that will be unknown to all!) then let them use password lost tool to reset the password and get a new one.

If you assign another password (like their username with MD5!), everybody can login to everybody's account.
Reply With Quote
  #3  
Old 03-20-2003, 11:12 AM
spcover spcover is offline
 
Join Date: Sep 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Agreed, but I still need help with the code.

I understand your suggestion and it was always under consideration. If I was going to assign a random password to each user, I would prefer some system-automated way to send everyone a signup email with their login details. But yes, I agree with your concern and may actually end up doing just that.

However, I still really need some help with the INSERT statement and encrypting the password.

I guess for every user I'd need two PHP commands - an encrypt of some password combined with an INSERT.

Any suggestions?

Thanks in advance,

Sean
Reply With Quote
  #4  
Old 03-21-2003, 08:09 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Yesterday at 03:12 PM spcover said this in Post #3
However, I still really need some help with the INSERT statement and encrypting the password.
You don't need to encrypt the password. Just user their username without encryption in the insert command. Since the vb assumes the password is encrypted, your unencrypted password will be meaningless to vb, so users can't login to their account in anyway without resetting the password.

Mailing users is also easy:
1- Use a "mail" command in your script to mail the users after inserting them to db
2- After the insertion, use vb's email members feature to mail them.
3- Use your yahoo listing to mail them..

You don't need to give them their usernames or passwords just give them the password reset link of your forum and ask them to use their yahoo group emails to retrieve their usernames and passwords.
Reply With Quote
  #5  
Old 03-24-2003, 03:37 AM
spcover spcover is offline
 
Join Date: Sep 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK. Very good. I have successfully used an INSERT command to create a test user record. See below:

INSERT INTO user values (32, 2, 'fred2', 'f5d1278e8109edd94e1e4197e04873b9', 'fred2@scarsdalenet.com', 1, '', 0, 'http://', '', '', '', '', 1, 1, 0, 'Junior Member', 0, 1048479583, 1, -1, 1048479583, 1048479583, 0, 0, '0', 1, '', '', '', 1, 0, 0, 0, 15, '0000-00-00', -1, 1, '68.70.238.236', 0, 1, 0, 0, '');

I based it off of a real user record in the "user" table. It uploads fine.

However, I have a real problem. The user "fred2" does not show up in the Members List and this seems to be a problem. For some reason, the user record is not recognized in places like the Members List and the Set New Password screen.

When I go to the Lost Password screen and input the email address "'fred2@scarsdalenet.com", the system recognizes the record and sends an email. I receive the email and click on the activation link. The system then sends an email with the username and a temporary password.

This is where I run into the next problem. I go back to the system and type in the username "fred2" and the temporary password. It takes it, displays a "Logging you in, fred2" screen, but then instead of taking me to the screen where I can reset the password, it dumps me back at the Login screen saying "You are not logged in or you do not have permission to access this page."

I've tested the Lost Password process by 1) manually registering a test user, 2) logging out, 3) going through the Lost Password/Reset Password process and that worked just fine, as it is supposed to. So I don't think there is a coding error anywhere.

And since I based my INSERT statement on an INSERT statement from a myPHPAdmin dump statement and I've double-checked the uploaded record against the other regular user records, I think the "users" record data is OK.

So I'm kind of left wondering whether there is some kind of authentication process I am missing. Do I have to set a flag for the user in some other table like "userfield"? I'm beginning to think so.

Any ideas?

Thanks in advance.

Sean
Reply With Quote
  #6  
Old 03-24-2003, 03:44 AM
spcover spcover is offline
 
Join Date: Sep 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seems if I INSERT a blank record into the table "userfield" for each userid I INSERT into "users", it solves my problem.

But I'd feel better if I knew why!

Any comments?

Thanks much.

Sean
Reply With Quote
  #7  
Old 03-24-2003, 07:11 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 07:44 AM spcover said this in Post #6
It seems if I INSERT a blank record into the table "userfield" for each userid I INSERT into "users", it solves my problem.

But I'd feel better if I knew why!

Any comments?

Thanks much.

Sean
userfield table saves data for users too so both fields must be populated when inserting a user manually. In some parts of vb code there are join queries to userfield table and if user does not have a record there, query returns no results which means user is not displayed although he is in user database
Reply With Quote
  #8  
Old 03-24-2003, 11:35 AM
spcover spcover is offline
 
Join Date: Sep 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Logician,

Thanks so much for your helpful answers.

Sean
Reply With Quote
  #9  
Old 04-24-2003, 06:40 PM
sraposa sraposa is offline
 
Join Date: Apr 2003
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi there.

just curious... were you able to download the postings, or just the member list. i'm looking into moving the data over from Yahoo Groups so it can become a searchable archive on our new vBulletin site. it's funny... i hadn't even thought about the user list.

in any case, it doesn't appear to be simple...

thanks
-scott
Reply With Quote
  #10  
Old 04-24-2003, 06:48 PM
spcover spcover is offline
 
Join Date: Sep 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We did not attempt to move the message archives from the Yahoo group. Instead we disabled the ability to post to the Yahoo Group and left a "Message Archives" link on our new site to the Yahoo group.

We just imported the Yahoo users into the vBulletin system.

If you ever figure out how to get the Yahoo messages into vBulletin, please let me know. I'm sure that's something we'd be interested in.
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:21 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.04188 seconds
  • Memory Usage 2,263KB
  • Queries Executed 13 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete