Id like to add a login function in sidebar. I use this addon:
http://xenforo.com/community/resources/quick-login-in-side-bar.609/update?update=1056
with the code
But i have to modify this code. Id like to
1) keep only a login function with account name and password input. So i want to remove the register option/funtion.
2) remove the default xenforo login function on the top of the template.
http://xenforo.com/community/resources/quick-login-in-side-bar.609/update?update=1056
with the 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>
But i have to modify this code. Id like to
1) keep only a login function with account name and password input. So i want to remove the register option/funtion.
2) remove the default xenforo login function on the top of the template.