Resource icon

Unmaintained Quick Login in Side Bar 1.1

No permission to download
Thanks to TeLepaTriX.

https://www.fixmystuff.in/FMS_Forum/threads/quick-login-in-side-bar-1-1.94/

Step 1: Upload the contents of upload directory.

Step 2: Goto Admin CP >> Appearance >> Styles >> Default Style >> Templates >> sidebar_visitor_panel

Find code:
Code:
<div class="section loginButton">
    <div class="secondaryContent">
        for="LoginControl" <label id="SignupButton"> <a href="{xen:link login}" class="inner"> {xen: if $ xenOptions.registrationSetup.enabled, {xen: sign_up_now phrase}, { xen: log_in phrase}} </ a> </ label>
    </ Div>
</ Div>

Add Code below above code:
Code:
<div class="section">
    <div class="secondaryContent">
        <h3>Quick Login</h3>
        <form id="pageLogin" method="post" action="login/login">
        <dl class="ctrlUnit">
        <dd>
            <label for="ctrl_pageLogin_login">Username or E-mail:</label>
        </dd>
        <dd>
            <input id="ctrl_pageLogin_login" class="textCtrl" type="text" value="" name="login">
        </dd>
        </dl>
        <dl class="ctrlUnit">
        <dd>
            <label for="ctrl_pageLogin_password">Already a member?</label>
        </dd>
        <dd>
        <ul>
            <li>
                <label for="ctrl_pageLogin_not_registered">
                    <input id="ctrl_pageLogin_not_registered" type="radio" value="1" name="register">
                    No, now I want to be a member.
                </label>
            </li>
            <li>
                <label for="ctrl_pageLogin_registered">
                    <input id="ctrl_pageLogin_registered" class="Disabler" type="radio" checked="checked" value="0" name="register">
                Yes, my password is:
                </label>
            </li>
            <li id="ctrl_pageLogin_registered_Disabler">
                <input id="ctrl_pageLogin_password" class="textCtrl" type="password" name="password">
                    <div>
                        <label class="rememberPassword" for="ctrl_pageLogin_remember">
                            <input id="ctrl_pageLogin_remember" type="checkbox" value="1" name="remember">
                            Remember me
                        </label>
                    </div>
            </li>
        </ul>
        </dd>
        </dl>
        <dl class="ctrlUnit submitUnit">
        <dd>
            <input class="button primary" type="submit" data-signupphrase="Sign Up" data-loginphrase="Login" value="Login">
            <br>
            <a class="OverlayTrigger OverlayCloser" href="lost-password/"> Forgot your password?</a>
        </dd>
        </dl>
        <input type="hidden" value="1" name="cookie_check">
        <input type="hidden" value="/" name="redirect">
        <input type="hidden" value="" name="_xfToken">
</form>
 
<script>
$(function()
{
var $button = $('#pageLogin input.button.primary');
$('#pageLogin input[name="register"]').click(function()
{
$button.val(
$('#pageLogin input[name="register"]:checked').val() == '1'
? $button.data('signupPhrase')
: $button.data('loginPhrase')
);
});
});
</script>
</div>
 
<xen:if hascontent="true">
    <ul id="eAuthUnit">
        <xen:contentcheck>
            <xen:hook name="login_bar_eauth_items">
            <xen:if is="{$xenOptions.facebookAppId}">
            <li><a href="{xen:link register/facebook, '', 'reg=1'}" style="text-decoration:none;display: inline-block;">
            <img src="https://www.fixmystuff.in/FMS_Forum/styles/default/xenforo/Facebook_logo.png" alt="Sign up with Facebook"}" style="margin:0 14px;"/>
            </a></li>
            </xen:if>
            </xen:hook>
        </xen:contentcheck>
    </ul>
</xen:if>
 
 
<xen:if hascontent="true">
    <ul id="eAuthUnit">
        <xen:contentcheck>
            <xen:hook name="login_bar_eauth_items">
            <xen:if is="{$xenOptions.twitterConsumerKey}">
            <li><a href="{xen:link register/twitter, '', 'reg=1'}" style="text-decoration:none;display: inline-block;">
            <img src="https://www.fixmystuff.in/FMS_Forum/styles/default/xenforo/Twitter_logo.png" alt="Sign up with Twitter"}" style="margin:0 14px;"/>
            </a></li>
            </xen:if>
            </xen:hook>
        </xen:contentcheck>
    </ul>
</xen:if>
 
 
 
 
<xen:if hascontent="true">
    <ul id="eAuthUnit">
        <xen:contentcheck>
            <xen:hook name="login_bar_eauth_items">
            <xen:if is="{$xenOptions.googleAppId}">
            <li><a href="{xen:link register/google, '', 'reg=1'}" style="text-decoration:none;display: inline-block;">
            <img src="https://www.fixmystuff.in/FMS_Forum/styles/default/xenforo/Google_logo.png" alt="Sign up with Google"}" style="margin:0 14px;"/>
            </a></li>
            </xen:if>
            </xen:hook>
        </xen:contentcheck>
    </ul>
</xen:if>
</div>

Attachments

  • Screen Capture.png
    Screen Capture.png
    18.3 KB · Views: 486
Top