vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Login from flash main site (https://vborg.vbsupport.ru/showthread.php?t=153998)

rafa3l 08-01-2007 02:17 PM

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?


All times are GMT. The time now is 08: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.01031 seconds
  • Memory Usage 1,705KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete