[SOLVED] customize mod_login_logoutform

12 years 9 months ago - 12 years 9 months ago #169891 by fkang
Hi,

I am facing some problem with that form.
You know the one with greeting and logout button.

First of all, I would like to disable the logout button. Indeed, it is useless since I create an logout menu item. Is it possible without to use the display:none css trick ?

Then no matter what I do, that form is always under the user menu (which is horizontal).

Here is a sample of my CSS file
/*------------CB Login-------------*/
#mod_loginformLW.cbLoginForm
{
width:400px;
height:45px;
padding-top:5px;
border:1px solid #ffffff;

}

#mod_login_usernametextLW label, #mod_login_passwordtextLW {display:none;}

.mod_loginLW
{
font-size:10px;
padding-left:10px;
}

.cbLoginForm a
{
color : #ffffff;
text-decoration: none;
}

.cbLoginForm a:hover {color: #fbc004;}

#mod_login_logoutformLW
{
float:right;
}


/*--------------------Menu Horizontal----------------------*/
.mainlevelLWhornav
{
padding : 50px 5px 5px 5px;
margin-left:5px;
margin-right:5px;
}


#topmenu table
{
height:34px;
width:50%;

}

#topmenu a.mainlevelLWhornav:hover
{
background-color:black;
}

Sample of my main template
	<body> 
		<div id="container"> 
			<!­­ début du header ­­> 
			<div id="header"> 
				<div id="logo">
                                     <a href=""><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/images/linkywine.gif"/></a>
                                </div>
				<div id="topmenu"><jdoc:include type="modules" name="left" /></div> 
			</div> 
			<!­­ fin du header­­> 
		
			<!­­début du body­­> 

			<div id="body"> 
				<div id="topBody"></div>
				<!­­ on affiche le corps du site ­­> 
				<div id="bodymiddle">
                                   <div id="message"><jdoc:include type="message" /></div> 
				   <div id="component"><jdoc:include type="component" style="xhtml"/></div>
                                </div>
				<div id="modright">DROITE</div> 
			</div> 

			<!­­début du footer­­> 
			<div id="modfooter">Tout droits réservés Copyright 2011</div> 
				<!­­fin du footer­­>

			<!­­fin du body­­>
		</div> 
	</body> 
	<!­­ fin du body ­­> 	<body> 
		<div id="container"> 
			<!­­ début du header ­­> 
			<div id="header"> 
				<div id="logo">
                                     <a href=""><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/images/linkywine.gif"/></a>
                                </div>
				<div id="topmenu"><jdoc:include type="modules" name="left" /></div> 
			</div> 
			<!­­ fin du header­­> 
		
			<!­­début du body­­> 

			<div id="body"> 
				<div id="topBody"></div>
				<!­­ on affiche le corps du site ­­> 
				<div id="bodymiddle">
                                   <div id="message"><jdoc:include type="message" /></div> 
				   <div id="component"><jdoc:include type="component" style="xhtml"/></div>
                                </div>
				<div id="modright">DROITE</div> 
			</div> 

			<!­­début du footer­­> 
			<div id="modfooter">Tout droits réservés Copyright 2011</div> 
				<!­­fin du footer­­>

			<!­­fin du body­­>
		</div> 
	</body> 
	<!­­ fin du body ­­>

Take a look at the file attached to see what it looks like.




If someonehas an idea, that would be great.

Thanks !
Attachments:

Please Log in to join the conversation.

12 years 9 months ago #169994 by krileon
Replied by krileon on topic Re: customize mod_login_logoutform

First of all, I would like to disable the logout button. Indeed, it is useless since I create an logout menu item. Is it possible without to use the display:none css trick ?

You can hide the logout button with the below CSS avoiding core edits to the module.
form[id*="mod_login_logoutform"] input[type=submit] {
	display: none;
}

Then no matter what I do, that form is always under the user menu (which is horizontal).

Can't advise anything without a direct link to the issue. CSS issues must be investigated in real time. You're welcome to PM me the URL if you don't want it displayed publicly.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

12 years 9 months ago #170062 by fkang
Replied by fkang on topic Re: customize mod_login_logoutform
Thanks,that help a lot ;)
About the other problem, after several days and several hours, I fixed it.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.222 seconds

Facebook Twitter LinkedIn