<![CDATA[ WebLogin messes up my layout - My Forums]]> https://forums.modx.com/thread/?thread=44764 <![CDATA[Re: WebLogin messes up my layout]]> https://forums.modx.com/thread/44764/weblogin-messes-up-my-layout?page=2#dis-post-257519
I’m looking at the login form code, webLoginEnter(document.loginfrm.cmdweblogin), and i’m assuming that this has something to do with recognizing that the user is logged in, correct? Could I just from this code, take out things that have to do with the form, and have it recognize that the user is logged in or not? Or might that not be possible?
<!-- #declare:separator <hr> --> 
<!-- login form section-->
	<form method="post" id="loginfrm" action="[+action+]"> 
		<fieldset>
			<input type="hidden" value="[+rememberme+]" name="rememberme" /> 
			<p><label for="username">User: <input type="text" name="username" id="username" tabindex="1" onkeypress="return webLoginEnter(document.loginfrm.password);" value="[+username+]" /></label><!-- PASSWORD --><label for="password">Password: <input type="password" name="password" id="password" tabindex="2" onkeypress="return webLoginEnter(document.loginfrm.cmdweblogin);" value="[+password+]" /></label><label for="checkbox_1" class="checkbox">Remember me</label><input type="checkbox" id="checkbox_1" name="checkbox_1" tabindex="3" size="1" value="" [+checkbox+] onclick="webLoginCheckRemember()" /><input type="submit" value="[+logintext+]" name="cmdweblogin" class="button" /><a href="#" onclick="webLoginShowForm(2);return false;" id="forgotpsswd">Forget Your Password?</a><a href="[~17~]">New User? Click Here!</a></p>
		</fieldset>
	</form>
<hr>
<!-- log out hyperlink section -->

<p><a href="#">My Info</a></p>
<p><a href="[+action+]" class="button">Logout</a></p>

<hr>
<!-- Password reminder form section -->
<form id="loginreminder" method="post" action="[+action+]">
    <fieldset>
        <input type="hidden" name="txtpwdrem" value="0" />
        <p><label for="txtwebemail">Enter the email address: <input type="text" name="txtwebemail" id="txtwebemail" size="24" /></label></p>
        <p><label>To return to the login form, press the cancel button.</label></p>
    	<input type="submit" value="Submit" name="cmdweblogin" class="button" /> <input type="reset" value="Cancel" name="cmdcancel" onclick="webLoginShowForm(1);" class="button" style="clear:none;display:inline" />
    </fieldset>
</form>

]]>
Bones_6 Sep 11, 2009, 09:40 PM https://forums.modx.com/thread/44764/weblogin-messes-up-my-layout?page=2#dis-post-257519
<![CDATA[Re: WebLogin messes up my layout]]> https://forums.modx.com/thread/44764/weblogin-messes-up-my-layout?page=2#dis-post-257518
Glad to hear it worked for you! I can’t claim credit for the theme, that goes to Gerhard of 1234.info. I just converted the template for use with MODx.

You’re welcome to modify the template as you like, but it’s rather well coded and I guess to a degree overcoded so changing things isn’t going to be very easy, but it can be done.

I guess you could put the login in the same area as the search box with enough work, but my suggestion would be to use something like this: http://web-kreation.com/index.php/tutorials/nice-clean-sliding-login-panel-built-with-jquery/ instead of trying to put the login in the search location.

If you don’t have strong HTML/CSS skills I don’t think you will be happy with the results you get from trying to modify the template.

Hope that helps some,
AMDbuider]]>
AMDbuilder Sep 04, 2009, 10:53 PM https://forums.modx.com/thread/44764/weblogin-messes-up-my-layout?page=2#dis-post-257518
<![CDATA[Re: WebLogin messes up my layout]]> https://forums.modx.com/thread/44764/weblogin-messes-up-my-layout#dis-post-257517 Also, would it be possible to get the login where the search field is located? Like, have the search there and the Login to the left? Cause when I added text there, it pushes the search field down, to make room. Would it need to be created in a new div?]]> Bones_6 Sep 04, 2009, 07:08 PM https://forums.modx.com/thread/44764/weblogin-messes-up-my-layout#dis-post-257517 <![CDATA[Re: WebLogin messes up my layout]]> https://forums.modx.com/thread/44764/weblogin-messes-up-my-layout#dis-post-257516
Place in sidebar chunk:
<!-- Side Bar Block Start -->
<div class="corner-subcontent-top"></div>                        
        <div class="subcontent-box">
          <h1 class="login">Login</h1>                    
          <div class="loginform">
        [!WebLogin? &tpl=`FormLogin` &loginhomeid=`[(site_start)]`!]
        </div></div>  
        <div class="corner-subcontent-bottom"></div>
<!-- Side Bar Block End -->

and use this for the template (FormLogin in above example):
<!-- #declare:separator <hr> --> 
<!-- login form section-->
	<form method="post" id="loginfrm" action="[+action+]"> 
		<fieldset>
			<input type="hidden" value="[+rememberme+]" name="rememberme" /> 
			<p><label for="username">User: <input type="text" name="username" id="username" tabindex="1" onkeypress="return webLoginEnter(document.loginfrm.password);" value="[+username+]" /></label></p>
			<p><label for="password">Password: <input type="password" name="password" id="password" tabindex="2" onkeypress="return webLoginEnter(document.loginfrm.cmdweblogin);" value="" /></label></p>
			<p><label for="checkbox_1" class="checkbox">Remember me</label></p><input type="checkbox" id="checkbox_1" name="checkbox_1" tabindex="3" size="1" value="" [+checkbox+] onclick="webLoginCheckRemember()" />
			<input type="submit" value="[+logintext+]" name="cmdweblogin" class="button" />
		<p><a href="#" onclick="webLoginShowForm(2);return false;" id="forgotpsswd">Forget Your Password?</a></p>
		</fieldset>
	</form>
<hr>
<!-- log out hyperlink section -->

<p>Do you wish to <a href="[+action+]" class="button">[+logouttext+]</a>?</p>

<hr>
<!-- Password reminder form section -->
<form id="loginreminder" method="post" action="[+action+]">
    <fieldset>
        <input type="hidden" name="txtpwdrem" value="0" />
        <p><label for="txtwebemail">Enter the email address: <input type="text" name="txtwebemail" id="txtwebemail" size="24" /></label></p>
        <p><label>To return to the login form, press the cancel button.</label></p>
    	<input type="submit" value="Submit" name="cmdweblogin" class="button" /> <input type="reset" value="Cancel" name="cmdcancel" onclick="webLoginShowForm(1);" class="button" style="clear:none;display:inline" />
    </fieldset>
</form>


AMDbuilder]]>
AMDbuilder Sep 04, 2009, 03:40 PM https://forums.modx.com/thread/44764/weblogin-messes-up-my-layout#dis-post-257516
<![CDATA[Re: WebLogin messes up my layout]]> https://forums.modx.com/thread/44764/weblogin-messes-up-my-layout#dis-post-257515 Bones_6 Sep 03, 2009, 11:27 PM https://forums.modx.com/thread/44764/weblogin-messes-up-my-layout#dis-post-257515 <![CDATA[Re: WebLogin messes up my layout]]> https://forums.modx.com/thread/44764/weblogin-messes-up-my-layout#dis-post-257514
]]>
BobRay Sep 03, 2009, 10:05 PM https://forums.modx.com/thread/44764/weblogin-messes-up-my-layout#dis-post-257514
<![CDATA[Re: WebLogin messes up my layout]]> https://forums.modx.com/thread/44764/weblogin-messes-up-my-layout#dis-post-257513 http://reviewdistrict.net/modx]]> Bones_6 Sep 03, 2009, 09:52 PM https://forums.modx.com/thread/44764/weblogin-messes-up-my-layout#dis-post-257513 <![CDATA[Re: WebLogin messes up my layout]]> https://forums.modx.com/thread/44764/weblogin-messes-up-my-layout#dis-post-257512 Quote from: Bones_6 at Sep 04, 2009, 02:11 AM

I’ve got the same problem, and am trying to figure out how to fix it...
Here’s a link to how it looks, I think the OP has the same problem.
http://reviewdisrict.net/modx

Sorry, that’s a dead link for me.]]>
BobRay Sep 03, 2009, 09:33 PM https://forums.modx.com/thread/44764/weblogin-messes-up-my-layout#dis-post-257512
<![CDATA[Re: WebLogin messes up my layout]]> https://forums.modx.com/thread/44764/weblogin-messes-up-my-layout#dis-post-257511 Here’s a link to how it looks, I think the OP has the same problem.
http://reviewdistrict.net/modx]]>
Bones_6 Sep 03, 2009, 09:11 PM https://forums.modx.com/thread/44764/weblogin-messes-up-my-layout#dis-post-257511
<![CDATA[Re: WebLogin messes up my layout]]> https://forums.modx.com/thread/44764/weblogin-messes-up-my-layout#dis-post-257510 tsavage Jul 08, 2009, 02:47 AM https://forums.modx.com/thread/44764/weblogin-messes-up-my-layout#dis-post-257510