Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
User Site Design, Integration and Customization:
Thoughts on a dual-login
Conner



Joined: 03 Jan 2010
Posts: 64

Posted: 01/21/10 02:53 
I just switched to phpBB3 and used my vBulletin for a different site. But the form code still doesn't work. When I click on Login, it doesn't do anything. I just get an error in the status bar in IE. This is what I have:


Code
<form method="post" action="http://www.mysite.org/login.php" id="jm_form">
    username:<br>
    <input id="jm_user" name="jm_user" value="{$jm_user}" class="jform input" style="width: 110px;" type="text"><br>
    password:<br>
    <input id="jm_pass" name="jm_pass" value="{$jm_pass}" class="jform input" style="width: 110px;" type="password">
    <input value="login" type="button" 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();setTimeout('document.getElementById(\'jm_form\').submit()',1000);">
    </form>

    <form method="post" id="o_form" action="http://www.mysite.org/forum/ucp.php?mode=login" target="o_login">
        <input id="o_user" name="username" type="hidden" value="">
        <input id="o_pass" name="password" type="hidden" value="">
      <input name="login" value="Login" type="hidden">
    </form>

<iframe name="o_login" id="o_login" src="http://www.mysite.org/forum/ucp.php?mode=login" style="display: none;" frameborder="0"></iframe>


Back to top
Conner



Joined: 03 Jan 2010
Posts: 64

Posted: 01/21/10 05:21 
It seems it'll only let me log in if I use this:


Code
    <input type="submit" value="login" class="jform l_button" 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();setTimeout('document.getElementById('jm_form').submit()',1000);">


and not this:


Code
    <input value="login" type="button" 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();setTimeout('document.getElementById(\'jm_form\').submit()',1000);">


Using the above code caused the Login button to break. Every time I typed in my credentials and hit enter, I heard a dinging sound. When I clicked on the button, it just wouldn't work at all.

But even after fixing the button, it still doesn't automatically log me into phpBB3. I'm not sure if it's the fact that I'm using Nova or what, because it seems to be working for everyone else.

Back to top
Dazed



Joined: 22 Mar 2006
Posts: 4147

Posted: 02/03/10 07:21 
Conner I am starting to look at this as well since I just went to VBulletin Board. These are some of the things I am looking at with no success but maybe this will help Kyle. Below is the source code. On the action I was also trying to use the below url format since this followed the phpbb3 format.

http://www.sitename.com/forums/usercp.php?mode=login




Code
         <script type="text/javascript" src="clientscript/vbulletin_md5.js?v=401"></script>
         <form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
            <fieldset id="logindetails" class="logindetails">

               <div>
                  <div>
               <input type="text" class="textbox default-value" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="User Name" onfocus="if (this.value == 'User Name'){this.value=''; this.style.color='black';}" onblur="if (this.value == '') {this.value='User Name'; this.style.color='#828282';}"/>
               <input type="password" class="textbox default-value" tabindex="102" name="vb_login_password" id="navbar_password" size="10" onfocus="this.style.color='black';" />
               <input type="submit" class="loginbutton" tabindex="104" value="Log in" title="Enter your username and password in the boxes provided to login, or click the 'register' button to create a profile for yourself." accesskey="s" />
                  </div>
               </div>
            </fieldset>
            <div id="remember" class="remember">

               <label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" /> Remember Me?</label>
            </div>
         
            <input type="hidden" name="s" value="" />
            <input type="hidden" name="securitytoken" value="guest" />
            <input type="hidden" name="do" value="login" />
            <input type="hidden" name="vb_login_md5password" />
            <input type="hidden" name="vb_login_md5password_utf" />
         </form>   


Back to top
Conner



Joined: 03 Jan 2010
Posts: 64

Posted: 02/04/10 00:23 
I'm hoping someone can figure out how to get it to work with phpBB3. It seems to be working for everyone else with phpBB3, but for some reason it isn't working for me.

But judging by how long it has taken anyone to reply, I'd say this topic is abandoned.

Back to top
juyaan



Joined: 03 Oct 2007
Posts: 399

Posted: 05/22/10 11:13 
hey guys can you tell me what file you need to edit? thanks.

Back to top
Acidphantom



Joined: 01 Apr 2008
Posts: 783
Location: Germany

Posted: 03/18/12 15:23 

Bloodcrave:
I'm trying to fix the dual logout.


Code
   <a href="{$JAMROOM_URL}/{$jamroom_index}?mode=logout" 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();
   setTimeout('document.getElementById(\'jm_form\').submit()',1000);">{jr_lang id="4" default="log out"}</a>

    <form method="post" id="o_form" action="{$JAMROOM_URL}/forum/ucp.php?mode=logout" target="o_login">
        <input id="o_user" name="username" type="hidden" value="">
        <input id="o_pass" name="password" type="hidden" value="">
    </form>

<iframe name="o_login" id="o_login" src="{$JAMROOM_URL}/forum/ucp.php?mode=logout" style="display: none;" frameborder="0"></iframe>


but I'm stuck on this, anyone who can help me ?


Did you had succes with it ?... if yes you have one for me please for phpbb2? Maestro logout.


best regards,
Acidphantom

Back to top
perfectgamestudios



Joined: 27 Apr 2005
Posts: 698

Posted: 04/22/12 12:37 
cant we just reverse the login process in the bridge files if we know how the logins and sessions work ?

Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
User Site Design, Integration and Customization

< Previous123456
 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.