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 02-24-2004, 03:02 PM
shazzy shazzy is offline
 
Join Date: Feb 2004
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default adding users to VB manually via DB....

We have registerations on VB disabled, and in v2.x.x we used the following SQL query to add users..

PHP Code:
  $sql_users="INSERT INTO user (userid,usergroupid,username,password,email,joindate,signature) VALUES ($player_id,2,'".addslashes($row["user_name"])."','".$set_pass."','".$row["email"]."',".time().",'')"
This worked great, however in VB3 this dosent seem to work ... The user gets added but the "Welcome to our newest member" still shows the last user, when I go directly to the USERID for this user it says "Invalid User specified" ...

Is there something else I need to pass to the user table, which is new in V3 that I am missing?


Thanks in advance.
Reply With Quote
  #2  
Old 02-24-2004, 04:01 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by shazzy
We have registerations on VB disabled, and in v2.x.x we used the following SQL query to add users..

PHP Code:
  $sql_users="INSERT INTO user (userid,usergroupid,username,password,email,joindate,signature) VALUES ($player_id,2,'".addslashes($row["user_name"])."','".$set_pass."','".$row["email"]."',".time().",'')"
This worked great, however in VB3 this dosent seem to work ... The user gets added but the "Welcome to our newest member" still shows the last user, when I go directly to the USERID for this user it says "Invalid User specified" ...

Is there something else I need to pass to the user table, which is new in V3 that I am missing?


Thanks in advance.
You can just add them via the ACP.......

the password is now stored differntly with a salt, i assume this is at least one problem
Reply With Quote
  #3  
Old 02-24-2004, 04:12 PM
r00t3d r00t3d is offline
 
Join Date: Feb 2004
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery
You can just add them via the ACP.......

the password is now stored differntly with a salt, i assume this is at least one problem
Is there no easier way to add user apart from manually via the acp, as adding 100s of users daily is not going to be an interesting task?
I am aware of the salt password problem, but is there any work around this?

Tnx.
Reply With Quote
  #4  
Old 02-24-2004, 04:30 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not just allow registration with moderation?
Reply With Quote
  #5  
Old 02-24-2004, 04:33 PM
r00t3d r00t3d is offline
 
Join Date: Feb 2004
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery
Why not just allow registration with moderation?
The userid needs to match the userid on our league backend system: so when a user logs into the league they are automatically logged into the forum.
Reply With Quote
  #6  
Old 02-24-2004, 07:18 PM
red hot machine red hot machine is offline
 
Join Date: Nov 2003
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a simalar problem. I'm moving a phpnuke user database over to vb3. I've added all the users the same way as you have. I've also added them to the userfield table aswell, but I get invalid links when trying to click on a user's profile.
Reply With Quote
  #7  
Old 02-25-2004, 12:06 PM
r00t3d r00t3d is offline
 
Join Date: Feb 2004
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The main problem that we seem to have atm is with the passwords.

If someone changes there password on our backend which is a league or a new user is added, the passwords should be synced with the password on the forum vb3. Now all is good with vb 2.3.x but vb3 uses the salt, what I havent been able to figure out is how to generate a salt password on our backend and then insert that into the vb3 user profile so that both passwords are synced, on new user creation and password changes.

Any help on the above would be greatly appreciated.

Thanks
Reply With Quote
  #8  
Old 02-25-2004, 04:45 PM
shazzy shazzy is offline
 
Join Date: Feb 2004
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have been thinking of it logically...

On our side of the system we do this : [Customer chooses to change password.....]

Quote:
if userid exists in VB database, get the value of the salt field.
MD5 password with the salt key and store it both in our database and in the vbulletin database....
Both of these passwords should now be in the format VB likes and insync with our database.
I guess that will work....
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 12:54 AM.


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.05140 seconds
  • Memory Usage 2,235KB
  • 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_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete