Custom Login
5 posts by 3 authors in: Forums > CMS Builder
Last Post: March 7, 2011 (RSS)
By kdub718 - March 4, 2011
Right now when I click the sign in button it just takes me to the stock login page... basically I wanna bypass that stock page and just go straight to the admin... Can anyone help? Thanks
<!-- Top reveal (slides open, add class "topReveal" to links for open/close toggle ) -->
<div id="ContentPanel">
<!-- close button -->
<a href="#" class="topReveal closeBtn">Close</a>
<div class="contentArea">
<!-- Alternate Login -->
<div>
<form class="loginForm" method="post" action="admin?" style="height:auto;">
<input type="hidden" name="action" value="loginSubmit" />
<div id="loginBg"><img src="images/blank.gif" width="148" height="110" alt="" /></div>
<h2 style="margin-top: 50px;"></h2>
<fieldset>
<legend>Account Login</legend>
<p class="left" style="margin: 0 8px 0 0;">
<label for="RevealUsername" class="overlabel">Username</label>
<input id="RevealUsername" name="username" type="username" class="loginInput textInput rounded" value="<?php echo htmlspecialchars(@$_REQUEST['username']) ?>" tabindex="1" />
</p>
<script type="text/javascript">document.getElementById('username').focus();</script>
<p class="left" style="margin: 0 5px 0 0;">
<label for="RevealPassword" class="overlabel">Password</label>
<input id="RevealPassword" name="RevealPassword" type="password" class="loginInput textInput rounded" value="<?php echo htmlspecialchars(@$_REQUEST['password']) ?>" tabindex="2" />
</p>
<p class="left" style="margin: -7px 0 0;">
<button type="submit" class="btn" value="<?php et('Login') ?>" style="margin:0;"><span>Sign in</span></button>
</p>
</fieldset>
<p class="left noMargin">
<a href="admin/admin.php?menu=forgotPassword"><?php et('Forgot your password?'); ?></a>
</p>
</form>
</div>
<!-- End of Content -->
<div class="clear"></div>
</div>
</div>
Re: [kdub718] Custom Login
By Jason - March 7, 2011
I've taken a look at your code and I'm a little confused as to what you're trying to accomplish. When you say you want to go to the admin section. Are you referring to the CMS Builder login? Are you using the website membership plugin?
If you could give me a little more background on what's happening I can see if I can make a suggestion.
Thanks
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Jason] Custom Login
By kdub718 - March 7, 2011
Not its not a membership plugin its just to login thru the admin.
example: http://web-kreation.com/demos/login_form_mootools_1.2/
Its not that exactly but the concept is what I'm doing.
Re: [kdub718] Custom Login
By Jason - March 7, 2011
I haven't tried this outside of using the website membership plugin, so I'm not sure how well this will work. One thing I noticed is that you're not directing your form to the admin page. Try this:
<form class="loginForm" method="post" action="admin/admin.php" style="height:auto;">
Hope this helps
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [kdub718] Custom Login
By Toledoh - March 7, 2011
http://www.toledoh.com.au/nutsnbolts/
Tim (toledoh.com.au)