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

Whiskey’s picture

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

larskhansen’s picture

That actually works! :o)

Now I just have to fine tune it.

Thanks.

Iumentum’s picture

you can add:

function themename_theme() {
  return array(
    'user_login_block' => array(
      'arguments' => array('form' => NULL),
      'template' => 'block-front-login',
    ),
  );
}

To the template.php file then user_login_block will use block-front-login.tpl.php

larskhansen’s picture

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?

Iumentum’s picture

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.