Closed (fixed)
Project:
Sky
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Sep 2008 at 15:14 UTC
Updated:
20 Oct 2009 at 02:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
jacineComment #2
jacineIt would entail a line of PHP and some CSS.
In page.tpl.php, you would print the search box (make sure it's enabled in theme settings, and users have access to it). Then, you'd have to style it with CSS.
print $search_box;I'll see if this makes sense for the next round of features.
Comment #3
zilla commentedthanks - and would this be the same for login (like search), to toss in upper right?
Comment #4
edcazini commentedHi, here's my implementation of a one-liner login bar. I copied this somewhere from the tutorials and modified for my own use. With proper modification, this could be applied to most themes. The resulting login bar is floated right within the header background and (with proper margin-top adjustment) just above the primary navigation area.
code to add to template.php (I placed them at the bottom end of the file)
code to add to header block (in this case I placed them just before the navigation div)
lastly my css (placed at the end of appearance.css, modify to your needs)
Hope this helps.
Comment #5
prosiktuno commentedcan you show how it's look?
2 everybody:
did somebody try it?
Comment #6
edcazini commented::screenshots attached::
Comment #7
prosiktuno commentedthank you EdCazini!
I make this on my site. And it looks great.
But how I can translate words - welcome, login, register, log out?
I have many languages on my site and I want that people from many country understanding what is mean.
I use i18n module. drupal 6.10
Thanks.
Comment #8
edcazini commentedhi, glad you found it helpful.
and i'm sorry, haven't much touched on il8n yet, but i thought you just install il8n, configure correctly, make sure language translations for the words are in place, then bang ... your site is multi-language.
Comment #9
prosiktuno commentedEverything is working! Thanks!
One of possible decision for i18n support:
instead of your code for template.php, I put next:
All words are translate automatically now, except "Welcome". This can be find and translate here - /admin/build/translate/search
BTW I have found same decision - http://drupal.org/node/92657
Comment #10
jacineSorry, not adding this. Anyone needing this can hopefully refer here to an example of how to do it. Thanks for providing the code :)
Comment #11
drcheers commentedFIXED IT!!!
I mistaked you and ended up with this (attatched).
This is what it should look like in the header in \sky\templates\overrides\page.tpl.php.
Comment #12
edcazini commentedHi, with 6.x-3.1 I placed
<div id="user-bar" ... />in between the navigation & container divs. I controlled vertical placement using margin-top. Please see attached.My only issue right now with this new version is that my right sidebar has gone down to the bottom of the content. Will try to troubleshoot before creating an issue.
Comment #13
doriangray commentedThank you! I made the same mistake.
Comment #14
guitarma commentedI have followed the instructions - THANK YOU SO MUCH!! - but my login bar is hiding BEHIND my header image. How do I get it on top of the image? Step-by-step is most helpful, thank you!
Comment #15
guitarma commentedWell, somewhere along the way I fixed it! I think when I took out the header background color, and just left the header image link there, it bumped it to reside on top of the header image. Love this community!