By larskhansen on
Hi there,
I'm working on my own theme starting with the ZEN Starterkit.
I would like to change the login part from vertically to horizontal.
The idea is to have a section at the far top and to the left of the screen with a login "section".
I can't find any pages where they describe which files I need to create or change...
Comments
HowTo: Create a custom user login bar
I came across this page last week: http://drupal.org/node/92657
Haven't done anything with it yet, but it seems to address your question. Could be useful, even though it has been written for 5.x
This seems also quite easy...
That actually works! :o)
Now I just have to fine tune it.
Thanks.
you can add: <?phpfunction
you can add:
To the template.php file then user_login_block will use block-front-login.tpl.php
<form>
Hey,
That sounds quite easy - but what about the
on the "block-front-login.tpl.php"? Where do I need to point "action" to?
Did I forget to tell you that I'm a noob at Drupal?
If you create
If you create block-front-login.tpl.php and within put
print drupal_render($form);It will make the form itself with the right action, you can write each form element you want before you render the form by using:
print drupal_render($form['element_id']);but always remember to render the whole form in the end.But using this method you can style the whole block as you like and even render the elements where you want them.