Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-11-2010, 09:34 AM
NBZ4live NBZ4live is offline
 
Join Date: Jun 2010
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help with vBulletin Integration and Autologin

Hi,

I'm trying to integrate vBulletin into our product.
The automated account creation and validation of the session from our product works fine in the "init_startup" hook.
But now I have problems to perform an autologin to vBulletin if the Product session is valid and the vBulletin account exists. (without redirection page)

I have now tried this code:

PHP Code:
require_once(DIR '/includes/functions_login.php');
    
$vbulletin->session->created false;
    
process_new_login(''false''); 
after filling
PHP Code:
$vbulletin->userinfo 
with information ("userid, usergroupid, membergroupids, infractiongroupids, username, password, salt") from the user table.

The Problem is: vBulletin generates a session and sets a cookie, but the userid in the session row and the cookie is 0.

Please help to solve this problem.

Thanks in advance.

Best Regards,
NBZ4live
Reply With Quote
  #2  
Old 06-15-2010, 09:40 AM
NBZ4live NBZ4live is offline
 
Join Date: Jun 2010
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nobody an idea?
I already tried many ways to do that, but nothing helps.
I have successfully logged in user by editing the userid in his entry in the sessions table, but thew user will be loged in after a refresh. I can't use do_login_redirect(), because the redirect page makes another redirect and so on.
Reply With Quote
  #3  
Old 06-16-2010, 10:03 AM
NBZ4live NBZ4live is offline
 
Join Date: Jun 2010
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok. Have solved this by my own. You can close the topic.
Reply With Quote
  #4  
Old 11-01-2010, 11:32 AM
aussiev8 aussiev8 is offline
 
Join Date: Aug 2004
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what did you do to solve this? I've been trying to fake a session all day, and although my cookie's and db are set fine.. vb just creates a new session... its driving me crazy
Reply With Quote
  #5  
Old 07-30-2011, 05:16 PM
tommythejoat's Avatar
tommythejoat tommythejoat is offline
 
Join Date: Apr 2008
Location: Boston
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have exactly the same problem as was discussed above.

My single Signon using forms based authentication on a Windows server was working fine with vB3.8 for a year or so, but with vB4 the do_login_redirect triggers an infinite redirect.

My code transparently creates a vB account or logs the user in if their email address matches between vBulletin and my CRMS. I execute the login and my code with a button and it works fine, but if I have it fire from a hook, it gives the infinite redirect in v4.
Reply With Quote
  #6  
Old 08-20-2011, 03:20 PM
otlayi otlayi is offline
 
Join Date: Jan 2011
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NBZ4live View Post
Ok. Have solved this by my own. You can close the topic.
I HATE people who take the time to post a problem on the forums, and even post a followup asking for more help, then "I solved it, not going to bother wasting anyone's time by telling them how, solve it on your own +++++++". If you're going to waste your time writing and saying you fixed it, at least say a couple words for people who also run into the same problem.

Quote:
Originally Posted by tommythejoat View Post
I have exactly the same problem as was discussed above.

My single Signon using forms based authentication on a Windows server was working fine with vB3.8 for a year or so, but with vB4 the do_login_redirect triggers an infinite redirect.

My code transparently creates a vB account or logs the user in if their email address matches between vBulletin and my CRMS. I execute the login and my code with a button and it works fine, but if I have it fire from a hook, it gives the infinite redirect in v4.
Sounds exactly like what I've got, and was only a problem after vB4. It's do_login_redirect() that throws to a white page, logged in just fine, but redirect will never properly go through. Very, very frustrating to say the least..
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:09 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.03900 seconds
  • Memory Usage 2,219KB
  • 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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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