The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|