MyBB Community Forums

Full Version: Square Login Problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm running the theme Square, it's latest release. I'm attempting to login through its custom dialog and when I press login, it doesn't. I've tried on the default MyBB theme, it logs me in. This is the header_welcomeblock_guest.

{$lang->welcome_guest} <span class="loginbutton"><a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="$('#quick_login').modal({ fadeDuration: 250, keepelement: true, zIndex: (typeof modal_zindex !== 'undefined' ? modal_zindex : 9999) }); return false;"><i style="font-size: 14px;" class="fa fa-sign-in fa-fw"></i> {$lang->welcome_login}</a></span> <span class="registerbutton"><a href="{$mybb->settings['bburl']}/member.php?action=register"><i style="font-size: 14px;" class="fa fa-user fa-fw"></i> {$lang->welcome_register}</a> </span> &mdash;  <a href="{$mybb->settings['bburl']}/misc.php?action=steam_login"><img border="0" src="http://steamcommunity-a.akamaihd.net/public/images/signinthroughsteam/sits_large_border.png" alt="Login through Steam" style="vertical-align:middle"></a></span>

                <div class="modal" id="quick_login" style="display: none;" 
    <form method="post" action="{$mybb->settings['bburl']}/member.php">
        <input name="action" type="hidden" value="do_login" />
        <input name="url" type="hidden" value="" />
        <input name="quick_login" type="hidden" value="1" />
          <div class="welcometitle">
              <h1>{$lang->xstyled_loginat} {$mybb->settings['homename']}</h1>
          </div>
        <div class="welcomebox">
              {$lang->xstyled_loginfirstphrase}<br /><br />
              {$lang->xstyled_loginsecondphrase}<br /><br />
              {$lang->xstyled_loginthirdphrase}
          </div>
          <div class="welcomelogin">
              <ul>
                <li><span class="log"><i class="fa fa-user fa-fw"></i></span><input name="quick_username" id="quick_login_username" type="text" value="Username" class="textlog" size="25" /></li>
                <li><span class="log"><i class="fa fa-lock fa-fw"></i></span><input name="quick_password" id="quick_login_password" type="password" value="Password" class="textlog" size="25" /></li>
            </ul>
              <br style="clear: both;"/>
              <input name="quick_remember" id="quick_login_remember" type="checkbox" value="yes" class="checkbox" checked="checked" />
            <label for="quick_login_remember" style="color: #363636;">{$lang->remember_me}</label><br />
              <a href="{$mybb->settings['bburl']}/member.php?action=lostpw" class="lost_password">{$lang->lost_password}</a>
            <br style="clear: both;"/><br />
              <input class="loginbutton" name="submit" type="submit" value="{$lang->login}" style="cursor: pointer;" />
            <span class="registerbutton"><a href="{$mybb->settings['bburl']}/member.php?action=register"><i style="font-size: 14px;" class="fa fa-user fa-fw"></i> {$lang->welcome_register}</a> &mdash; <a href="{$mybb->settings['bburl']}/misc.php?action=steam_login"><img border="0" src="http://steamcommunity-a.akamaihd.net/public/images/signinthroughsteam/sits_large_border.png" alt="Login through Steam" style="vertical-align:middle"></a></span>
          </div>
    </form>
</div>

<script type="text/javascript">
    $("#quick_login input[name='url']").val($(location).attr('href'));
</script> 
posted at Square theme release topic & got response.

this topic is closed.