Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-09-2013, 04:19 AM
qdesigns qdesigns is offline
 
Join Date: Jan 2013
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Single login

Hey everyone,

I'm quite new to vBulletin and I need to create a single site-wide login for both the forums and my main site. We're currently using a custom-built PHP/MySQL app for the main site, so I'll need to handle the VB integration from scratch.

What's the easiest way to bridge logins between a custom application and VB? My initial thought was just to register a user with the same credentials in both the main app user db and vBulletins db when the user registers for either service. Maybe there's an easier way, though!

Any help is much appreciated! Thanks!
Reply With Quote
  #2  
Old 02-25-2013, 05:40 PM
gtfreymann gtfreymann is offline
 
Join Date: Feb 2013
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am facing the same issue. I would be happy with even inserting a hook that ensures they have a valid user account in our main system before allowing a login to begin....
Reply With Quote
  #3  
Old 02-27-2013, 01:34 PM
betterthanyours betterthanyours is offline
 
Join Date: May 2012
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey, you could look at the following for an example of how it has been done?

https://vborg.vbsupport.ru/showthread.php?t=270517
Reply With Quote
  #4  
Old 02-27-2013, 02:31 PM
gtfreymann gtfreymann is offline
 
Join Date: Feb 2013
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by betterthanyours View Post
Hey, you could look at the following for an example of how it has been done?

https://vborg.vbsupport.ru/showthread.php?t=270517
This seems to be geared towards using vBulletin as the "master". We have existing registration software and dozens of apps that authenticate through it.

What I'm after is a way to have vBulletin at least check our main user database before allowing a login to vBulletin, to ensure the user is already validated and exists in our registration software. They have already gone through the registration process and we would prefer not to make them register a second time to participate in the vBulletin Forums.

We don't need the Register process from vBulletin at all, nor do we want it.

If that makes any sense... ;-)
Reply With Quote
  #5  
Old 03-06-2013, 01:26 PM
gtfreymann gtfreymann is offline
 
Join Date: Feb 2013
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did have a look through this thread:

https://vborg.vbsupport.ru/showthread.php?t=82836

I preferred the class.forumops.php setup.

We just purchased VB v5 and these two includes don't seem to exist:

require_once($_SERVER['DOCUMENT_ROOT'] . '/forum/core/includes/class_dm.php'); // for class_dm_user.php
require_once($_SERVER['DOCUMENT_ROOT'] . '/forum/core/includes/class_dm_user.php'); // for user functions

Any ideas how to manage user records (add/edit/delete) in a script that can be called outside of the actual running VB system?
Reply With Quote
  #6  
Old 03-08-2013, 07:04 PM
gtfreymann gtfreymann is offline
 
Join Date: Feb 2013
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I used the first example as the class wasn't working and using VB 5 I am able to add a new user from outside VB.

To update the user I am just accessing the 'user' table directly.

Couldn't be any simpler.

If anybody else is having issues trying to add a new user to VB from outside PM me and I can send you a copy of my scripts.
Reply With Quote
  #7  
Old 03-16-2013, 03:34 AM
fungku's Avatar
fungku fungku is offline
 
Join Date: Jan 2011
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting... So how do you manage logins/sessions?

If someone is logged into your site, and then goes to VB are they still considered logged in there as well?
Reply With Quote
  #8  
Old 03-16-2013, 11:53 AM
gtfreymann gtfreymann is offline
 
Join Date: Feb 2013
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fungku View Post
Interesting... So how do you manage logins/sessions?

If someone is logged into your site, and then goes to VB are they still considered logged in there as well?
No, they have to log into VB separately... that wasn't an issue for us.
Reply With Quote
  #9  
Old 03-20-2013, 07:46 AM
fungku's Avatar
fungku fungku is offline
 
Join Date: Jan 2011
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I PM'd you.

I'd like to try this out extending my framework's user auth to do this.

I think I want to share cookies as well, though.
Reply With Quote
  #10  
Old 04-05-2013, 11:33 PM
frankgeraci frankgeraci is offline
 
Join Date: Mar 2013
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am also pretty interested in this. I initially saw the vbsso plugin, but it will not work with vb 5. I also have a site that handles registration and would like users to automatically have a forum account.
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 10:46 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.08120 seconds
  • Memory Usage 2,251KB
  • 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
  • (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_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