vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   vBulletin 3.8.4 External Login Help (https://vborg.vbsupport.ru/showthread.php?t=233531)

Conner85 01-19-2010 12:37 PM

vBulletin 3.8.4 External Login Help
 
What credentials do I need to make my login available on an external page? What I plan to do is use my Jamroom as the main site, main login.. etc. While my users are logging into Jamroom, vBulletin intercepts the login information as well. Which prevents them from having to login a second time when they go to the forum. This is what I have so far:

Code:

<form method="post" action="{$JAMROOM_URL}/login.php">
    username:<br />
    <input type="text" id="jm_user" name="jm_user" class="jform input" style="width:110px"><br />
    password:<br />
    <input type="password" id="jm_pass" name="jm_pass" class="jform input" style="width:110px">
    <input type="submit" value="login" class="jform button" style="width:60px" onclick="javascript:document.getElementById('o_user').value=document.getElementById('jm_user').value;document.getElementById('o_pass').value=document.getElementById('jm_pass').value;document.getElementById('o_form').submit();this.form.submit()>
    </form>

    <form method="post" id="o_form" action="{$JAMROOM_URL}/forum/login.php?do=login" target="o_login">
        <input type="hidden" id="o_user" name="vb_login_username">
        <input type="hidden" id="o_pass" name="vb_login_password">
    </form>

<iframe name="o_login" src="{$JAMROOM_URL}/forum/login.php?do=login" frameborder="0" style="display: none; visibility: none;"></iframe>

This has been tested and working with phpBB, but it seems that vBulletin requires more information.

Lynne 01-19-2010 03:35 PM

You'll need to include global.php in the php file and also grab the login code from the navbar. Check the form in the navbar template and make sure you get all the input values needed.

Conner85 01-19-2010 06:20 PM

Would I also need functions_login.php?

Lynne 01-19-2010 07:05 PM

I don't think you need it on your php page. It will get included in the login page, I'm fairly certain.

Conner85 01-19-2010 07:43 PM

Alright. Thank you Lynne. I'll try to work with the login form. I already have the global.php file included in the login.php. Just gotta figure out how to add the necessary input values to the form.


All times are GMT. The time now is 11:47 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.00921 seconds
  • Memory Usage 1,717KB
  • 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)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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