Custom Login

5 posts by 3 authors in: Forums > CMS Builder
Last Post: March 7, 2011   (RSS)

By kdub718 - March 4, 2011

So I'm playing with using like a top reveal for a login to the admin area. Basically it just slides down when activated from a login link or button. This is how I have the form setup but I know I probably need to <php? include> some other things maybe even view functions or something??

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

Hi,

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

Yes I'm referring to the CMSB Login. I just want to basically by pass the admin login page and build that in a drop down box directly within my main website. I already have everything built with the inputs from the cmsb login within cmsb...

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 Toledoh - March 7, 2011

On my demo site, I use a similar thing, but instead of re-directing, once logged in I add an "Admin" button to the navigation.

http://www.toledoh.com.au/nutsnbolts/
Cheers,

Tim (toledoh.com.au)