You are hereBlogs / vinayras's blog / Horizontal Login Bar

Horizontal Login Bar


vinayras's picture

By vinayras - Posted on 04 April 2008

Hi All,

Recently i was exploring Drupal's login form. I wanted login form to stretch horizontally.

After much R & D i was able to get it working on one of my website (nagpurpulse.com). Please have a look at it at http://www.nagpurpulse.com

There is a great tutorial located at http://www.nicklewis.org/node/845.

Though this article was meant for drupal 4.7 - but you can use it for 5.7 too except few changes, such as
-> Use 'drupal_render' in place of 'form_render'
-> Change (if needed) modules/user/user.css for styling this horizontal login box.

Apart from this, example code worked perfectly as per my requirement.

Thanks
Vinay

Average: 3.9 (7 votes)
Tags
Anonymous's picture

Nick's plan works great until I get to what he calls "the final step" - the last bit of code added to template.php - then everything goes blank.

Of course I've changed all the form_renders to drupal_render -> that's why the second last step works. Did you make any changes to the code in the last step?

I see you example site runs Drupal 5.1 - maybe they've changed something since then?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
9 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.