The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Login from flash main site
Hello,
I'm not a php expert, but I know it. What would I like to do is that the user can login and stay logged from my flash main site, and later if he go to the forum enter already logged. I already do that in phpbb, and now I bought vBulletin but I see that the code in login.php is a bit different. Anyone can give me a light about the parameters to send and return. Or if anyone already do that would be great! Thanks in advance // ------------------------------------------------ Ok, I'm so close to finish the login process from flash But I have a little problem and my mind is so tired, I have all day in this and I think with this last thing all would run fine. After verify_authentication in login.php this make a redirect, at the line 130 exactly: 130: do_login_redirect(); Well, if I comment this line the login don't happens, but if I uncomment the login is ok but the username don't return to flash because the code finish in another deep point. I comment the line 314 in functions_login.php 314: eval(print_standard_redirect('redirect_login', true, true)); And I can't get it to work. From here the code is so deep for me at this moment and I only want set the session and return the username to flash. So the question is how avoid the redirect but making the login succefully? thanks in advance // ------------------------------------------------ I found a simple solution. After make the login I call another service to see if the user exist: if ($vbulletin->userinfo['userid']!=0) { $user = $vbulletin->userinfo['username']; echo "result=$user"; } Now, I would like keep the session alive from my flash site, any idea? Is there a value in the userinfo to do that? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|