By figaro on
I want a public search box at the top right hand corner of my site, for which the template-files have been modified. Site-wide keyword searching is enabled through the administer | modules section. Currently it is enabled for registered users, but how is it publicly made visible?
Comments
If you want your search box
If you want your search box in the header for more than one theme, head to:
http://example.com/admin/themes/settings
If you're using just one theme:
http://example.com/admin/themes/settings/(folder name of your theme)
- Make sure the search box option is checked.
- Make sure you're using a theme with a search box in the header.
- Most bundled themes have one - check the page.tpl.php to be sure.
If you want the search box on the top right of the sidebar, go to:
http://example.com/admin/block
- Check the boxes to enable the search block, and place it on the right.
- Make sure "weight" is a lower number than anything else on that sidebar.
(Of course, if you have drupal in a sudirectory, those URL's will be:
http://example.com/drupal/admin/etc./etc.)
D.
I had already followed the
I had already followed the instructions in your response. But how do I make the search box publicly visible?
Where did you enable it?
Where did you enable it? In admin/themes/settings, or in admin/block?
Thanks for getting back It
Thanks for getting back
It is enabled in admin/themes/settings
It is enabled in menus
It is disabled in blocks.
Hope this helps
>Thanks for getting back No
>Thanks for getting back
No problem, I've been haunting this place for two months, and I know how frustrating it is to feel invisible.
>It is enabled in admin/themes/settings
>It is enabled in menus
>It is disabled in blocks.
So far so good. Using FTP or CPanel, look in the folder for your default theme; find a file called page.tpl.php.
Do you see some variation of this code somewhere near the top? It would probably be just after the logo, site name, and slogan are mentioned.
What is your default theme, btw?
Cheers,
D.
I've put search box into
I've put search box into block which visible on every page and this approach works fine for me.
-------------------------
My blog powered by Drupal
Your guide to watches
Thanks again for your
Thanks again for your response. There is the line
<?php print $search_box ?>in page.tpl.php, but there is no other occurence of $search_box. When made visible the HTML reads:The search function is operational.
Theme is bluemarine on top of engine phptemplate. Hope this helps.
Did you actually open
Did you actually open page.tpl.php from your theme folder? You can't see it by viewing the source code of the page it generates. In Windows you can right click on the file name --> send to --> Notepad.
In the bluemarine page.tpl.php, right under the body tag, you should see this table (below). If it's not there, you might try pasting it in:
To find out what else might be missing, you should probably compare your files with those at http://drupal.org/project/bluemarine.
Good luck,
D. Lynn
Access control
Make sure that Anonymous users have permission to see it.
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
Still struggling with this
@Steven's response: how is the search for anonymous users enabled?
I currently have on Drupal 4.7.2 the following for the search function:
- modules: enabled
- blocks: disabled, because the bar should be in the header as opposed to the sidebars
- menus: disabled, because it should not be a menu item
- admin >> themes: enabled
Thanks in advance
In administration menu
Administer > access control > search module: check search content
Checkbox gray
In my admin/themes/settings I cannot enable the options User pictures in posts, User pictures in comments nor the Search box. They are gray. Why is that? Another option elsewhere blocking it?
Edit: Right! I had to enable the module for it. :)