Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-11-2007, 04:28 AM
dantilley dantilley is offline
 
Join Date: Jun 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Automatic login for users

Hi,

Can anyone please tell me if it's possible to make it so that a user can be made to automatically login to Vbulletin under certain circumstances, without having to actually use the normal forum login controls?

Specifically, I have a Vbulletin forum within a password protected, members-only area of my web site. Once a user has logged into that members only area (using my own code, independent of VBulletin) I would like to make it so that when they click the link to the Forum, they can go straight in without having to then subsequently log into the forum. At the moment, users effectively have to log in twice which is not quite so user friendly.

The problem is that some not so net-savvy users are finding it awkward having to log in twice and so are not using the site so much.

Any help would be much appreciated, thanks,

Dan.

PS - Asked already in vbulletin.com and it was suggested I post it here instead.
Reply With Quote
  #2  
Old 06-11-2007, 06:16 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could model your login system to use vBulletin's instead. It would eliminate the need for two separate systems.
Reply With Quote
  #3  
Old 06-12-2007, 02:47 AM
dantilley dantilley is offline
 
Join Date: Jun 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The problem there could arise from the fact that my site currently uses ASP to log-in and not PHP as VBulletin does. Also, there's a fair amount of code that's been created around logging in and maintaining users' logged in status which I'd rather not re-write if at all possible.

The other problems come from people changing their passwords through the main site, and also when we have to add new users into our private area of the site, as they will need to go straight into the forum database too. What I ideally need is some functions I can access like:

login_to_forum (user_name);
add_user (user_name, password, email);
delete_user (user_name);
change_password (user_name, new_password);

Now, I realise this might be asking a bit much, but if there's any way I can pointed in the right direction for getting together some functions which can achieve the above commands then that would be much appreciated.

Thanks a lot in advance,

Dan.
Reply With Quote
  #4  
Old 06-12-2007, 09:25 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Passwords are encoded as follows:
PHP Code:
md5(md5($password) . $salt
You will find the salt in the user table.
Reply With Quote
  #5  
Old 08-12-2007, 01:10 PM
borntosucceed borntosucceed is offline
 
Join Date: Aug 2007
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi;
Have you found a solution yet as I am looking for exactly the same?
We have an established membership site (written in asp.net) and I am looking to write some code to
1) Register all the existing users with the forum
2) Whenever a new user joins add him as a user to the forum as well
3) When a user is in the member area in our site and clicks on the forum, I would like him/her to be able to be logged in automatically without re-entering user information.

TIA
Thomas
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 02:18 AM.


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