hi,
i have worked in drupal and i have created my own theme .Now i dont want to display login module of username and password in the front page . instead am using a link called login to be displayed and clicking on this link takes the user to a particular node where login module of username and password textboxes to be placed .Is this possible ?

please help me out !

Thank you .

Comments

barrett’s picture

If you point the link to /user, they'll get the login form if they aren't logged in. If they are, they'll get their user account page.

goldy736’s picture

hi ,

I tried as u suggest , the link takes the user to login page but in the page it displays only username and password with login button but
Create an account and Remember password

is not visible , so it can be used only by members, in case if the user is new he needs to create an account , it not possible ... please help me out

This is the second day am working on it ,At present my login module is in content block , which is visible in all pages or nodes , but my idea is to make the login module visible on the content area in a particular login node or page which i have already created , on clicking the
link LOGIN

in header...

Any help is really appreciated ,

Thank you !!

beautifulmind’s picture

There won't be any such links, but tabs.
Or you can place the login block in content area.

Regards.
🪷 Beautifulmind

goldy736’s picture

hi,

As u all suggest it not possible to have such links , i tried other way around , Now i have placed my login module in header below inset-banner above content. I made modification in CSS of following

.form-item label {
display:inline;
float:left;
font-weight:bold;
}
.form-item {
float:left;
margin-bottom:1em;
margin-top:0 !important;
width:200px;
}
#user-login-form {
text-align:left;
}
form#user-login-form ul li{
display:inline;
}
form#user-login-form ul{
width:300px;
}
form#user-login-form .item-list {
float:left;
margin-left:55px;
margin-top:-20px;
width:300px;
}
.block.block-user h2 {
background:#DAEFFA url(images/module-h3.png) repeat-x scroll 0% 0%;
border-color:#B7ECF5;
border-style:solid;
border-width:1px 3px;
color:#02576B;
float:left;
font-family:Tahoma,Helvetica,Arial Narrow;
font-size:120%;
margin:-7px 6pt 10px;
padding:5px 0pt 5px 8px;
width:100px;
}

to make a horizontal look of login but it have bad look like following below inset-banner :

username textbox password textbox loginbutton Createnewaccount Requestnewpassword

but i want to look like

Login | Createnewaccount | Requestnewpassword

is it possible ?

Thank you !!!!!!!

beautifulmind’s picture

goldy736’s picture

i checked your link its very useful , i downloaded the module and placed it in header expecting it to visible exactly like the snapshot given of the module but it did not and it is placed transparent without the blue background and also in Zig zag manner , though am not very good in css , i am trying for it, hope i get it,can you tel me why is that ? . Your link gave me some idea to start work on it .

Thank you !

beautifulmind’s picture

All you have to do is, modify the css with the help of firebug.
you need to insert a css rule float:left at few places, and that will do.

Regards.

Regards.
🪷 Beautifulmind

goldy736’s picture

thanks beautifulmind for your constant replies, Atlast i got the Login form exactly horizontal with your ideas.

Thank you !!!