Go Back   vb.org Archive > News and Announcements > vBulletin Pre-Sales Questions
  #1  
Old 07-18-2006, 05:58 AM
beltane beltane is offline
 
Join Date: Jul 2006
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Automatically add forum user

Hi there,

I'm wanting to use vbulletin for an existing site I have, with a pre-existing member login. I want to create a new forum registration with the same username/password when someone joins the main site, but after that the accounts can be seperate. From my understanding, this could be done by an SQL insert statement in my existing registration, but I'm not sure if this is possible with vB? I can get the password in plain text using $_POST.

I'm keen to get started and I've read a few posts on here from my search, but I'm not 100% sure it's possible.

(I also posted this on vbulletin.com, apologies if they're related sites, I'm very new to vB!).
Reply With Quote
  #2  
Old 07-18-2006, 07:11 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This would be possible with vBulletin yes

Obviously the more in-depth you go about a single registration form and whether you wish to have a single sign-on system, determines how you do this

People round here are very helpful and will be willing to assist you if you come accross any problems or have queries about how data can be used in a single sign-on system

Chris
Reply With Quote
  #3  
Old 07-18-2006, 07:25 AM
beltane beltane is offline
 
Join Date: Jul 2006
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the quick reply Chris! All I'm wanting to do is create a new user with the same username and password, both of which I can capture when they submit the user form, everything else can be the default user settings for a new user on vB.

A single login would be a 'nice to have' once I get it under control intially, but for now I don't want a login bridge, or single sign in, just the ability for people who join the main site to be able to login and post on the forums without having to create another account .

If it can be done fairly painlessly then I'll certainly be buying vB to use, as my time is pretty limited at the moment.
Reply With Quote
  #4  
Old 07-18-2006, 08:25 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In that case it should be fairly easy to do - The only thing that you may need to watch out (I've never attempted this myself with vB 3.5 or 3.6 ) for is how the password is stored in vBulletin, as it uses an md5 hash with a unique salt; Looking through how the registration file does it should tell you how that is created but if there are any questions, you are likely to find someone who knows here

Chris
Reply With Quote
  #5  
Old 07-18-2006, 11:06 AM
beltane beltane is offline
 
Join Date: Jul 2006
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I am now the owner of a new vB owned license ...I'm sure I'll be back once I get going!
Reply With Quote
  #6  
Old 07-18-2006, 11:08 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Congratulations on your purchase and welcome to the community.
Reply With Quote
  #7  
Old 07-18-2006, 11:47 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Welcome to the community

Chris
Reply With Quote
  #8  
Old 07-28-2006, 11:43 AM
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Location: Italy
Posts: 1,418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Registering a user from another web application is not very easy.

Basically it needs the following steps:
  • Get current server date and time
  • Check if user already exists (exit if yes; prevents from overwriting a user who first registered to the forum, then to your application)
  • Add user to forum and a specific usergroup ID:
    • Hash password if length <> 32 characters (assuming a cleartext password), and hashes to MD5 with salt
    • Insert the user record
    • Set the minimum reputation level
    • Insert custom user fields
    • Insert record into password history
    • Build user statistics
Additionally it may need the addition of an avatar, a personal user title and something alike.

Hope this helps
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:46 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.07167 seconds
  • Memory Usage 2,216KB
  • 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
  • (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