Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 05-02-2002, 05:51 AM
redefinery redefinery is offline
 
Join Date: Apr 2002
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Auto-login/register on site that has existing login/registration system?

I'm trying to integrate vBulletin as the forums for a restricted area of my site. The site already has its own login and registration system (php/mysql), so I'm trying to find a solution so that when a user registers on my site, he/she also gets registered as a user in vBulletin. Then, when the user logs in to my site and then accesses the vBulletin forums, he/she gets automatically logged in.

Is there a hack or some code that will allow me to do this?

If not, what are the minimum required fields to register a new user? And, if the user is already logged in (i.e., a username and password is available), what do I need to set (cookies, session data) or call in the vBulletin code to mimic a logged-in user?

Thanks,
Jeff
Reply With Quote
  #2  
Old 05-03-2002, 05:23 AM
rpratt rpratt is offline
 
Join Date: Apr 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I asked for a simular hack not to long ago. Maybe your request will help peak some interest in what I believe would be a very popular add on to VB.

It would great if someone could develop a password protected members area that is outside of VB but uses it's functionality.

A seperate authentication system would need to be created that uses VB's database. It would require it's own registration process (just the required fields of current registration in VB) and login. Also would need to use sessions once members were logged in.

This add on would allow members to use their same username and password to access the members area as well as the forums.

I think I'll post this on elance. Will probably get some bites there.

Ryan
Reply With Quote
  #3  
Old 05-05-2002, 05:35 AM
ixian's Avatar
ixian ixian is offline
 
Join Date: Oct 2001
Location: Denver, CO
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this implimented in several areas of my new site. I don't have it in "hack" form though. For example, I have a perl-based news/review/article system going up and I use vb's authentication system for it.

The easiest way to do this is just to use the vb registration system for everyting - just link to it - and have the other areas of your site read IT for authentication. If you already have a lot of users registered under a different system I can't really help you, as I did it the opposite way. I have the perl dbm::mysql pm installed so I can use code in perl to do lookups against vb's user tables. Cookie and sessionhash authentication work exactly the same inside or outside of vb, they didn't do anything special with it.

Easiest thing to do is take a look at, say, vbportals (www.phpportals.com) and see how wajones' implimented user authentication on non-vb pages in his hack.
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 01:40 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.06921 seconds
  • Memory Usage 2,175KB
  • 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
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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