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-16-2010, 05:59 PM
bleavitt bleavitt is offline
 
Join Date: Jun 2010
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default do_login_redirect alternative

These posts are mostly for my own health and working out the problem in prose before attempting code poetry... which I'm not very good at.

If anyone's been following my threads, I've become a regular as of the last few days. I'm working on a custom login process to the vbulletin system using proprietary solution, basically attempting to side step the vbulletin validation checks but still access the system as a logged in user.

So here's today's question/situation: Is there anyway to process the login credentials without having to call the do_login_redirect() function?

So I've gotten to the point where vbulletin will recognized the logged in credentials of the user, yet it's still not letting me in the door, so to speak. If the do_login_redirect is called, I'm sent into a loop which refreshes every two or three seconds. Yet the redirect is what is needed to actually reset the page and allow the necessary variables to show up so that we can pass through the door.

I discovered this by accident. As I am creating a plugin that processes this and am able to successfully pass the correct variables now to make the process_new_login() function respond favorably, when the above mentioned function is called, the front end of the website is sent into a loop, and my admin panel is broken. Lots of fun. So I go through the whole disable plugins process, and once the plugin has been disabled. The front end stops looping and goes to the correct page and I am now logged in! So really, my issue is to figure out what's causing the looping behavior.

I suspect that there's a variable or something that is not being set globally, but I'm unsure as the function itself requires no parameters. My first thought was to disable the do_login_redirect() and come up with something else. But after looking at the code, it seems that it's doing more than just a mere redirect, and that there are other variables being set by that function in order for vBulletin to perform properly.

Any thoughts?

Thanks,
Brent

--------------- Added [DATE]1276791097[/DATE] at [TIME]1276791097[/TIME] ---------------

So, I've received no responses in regards to this forum post. Anyone care to venture what are the dangers/consequences of by-passing this same highlighted function: do_login_redirect(). I'm studying it out again this morning and am asking myself if we really need this.

The reason for suggesting it, is because I've found the function that is doing what I want in the bootstrap class: line 1117, show or not show member information. It gets called it the page is reloaded. But I need it to be set after the userID is setup.

What if I just run a simple location redirect script after I know that the UserID has been set? What are the ramification on the system for simplifying this process?

Thanks,
Brent
Reply With Quote
  #2  
Old 08-20-2011, 03:23 PM
otlayi otlayi is offline
 
Join Date: Jan 2011
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bleavitt View Post
What if I just run a simple location redirect script after I know that the UserID has been set? What are the ramification on the system for simplifying this process?

Thanks,
Brent
I'm running into a similar problem, do_login_redirect() is the only piece of the system that is broken and won't go through.. I personally opted against modifying the main source code of vB for upgrade reasons, and later forgetting what was changed, but I have as of yet to find a good solution otherwise. It's on my list for today, need to find some way to solve this and get it logged in, pretty ridiculous how much of a pain it is for such a menial task.
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:21 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.03841 seconds
  • Memory Usage 2,173KB
  • 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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)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