Search box always in left bar

Rob T - January 23, 2007 - 00:20
Project:Aberdeen
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:ishmaelsanchez
Status:fixed
Description

When Search module is enabled, it always appears at the top of the left column. If I edit the Search block to appear in the header or right column (for instance), it places an additional search box in that desired place. Hence, I end up having 2 search boxes on my site instead of just one.

#1

johnnybegood - January 23, 2007 - 11:23
Status:active» postponed (maintainer needs more info)

Do you have the same problem with Garland?

#2

lggarrison - February 21, 2007 - 21:15

I am having this problem in garland and minnelli.

#3

Pixelstyle - March 19, 2007 - 17:14

Got the same problem here, but if it's a thing across multiple themes it won't be an Aberdeen bug I think.

#4

joejoe04 - March 28, 2007 - 14:07

I'm having same problem in Garland too and I just installed Drupal 5.1 and have not made any drastic changes to the code. Did any of you ever figure out what the problem is with this?

#5

joejoe04 - March 28, 2007 - 14:29

I just found out how to stop this from happening...go to page.tpl.php and delete the following line:

<?php
if ($search_box):
?>
<?php
print $search_box
?>
<?php
endif;
?>

#6

Sugar Face - August 15, 2007 - 23:07

To turn off the search box in the top of the left column, I went to Administer >> Site Builder >> Themes >> and turned it off in there. This will not affect the search module that you turn on under Administer >> Site Builder >> Blocks >>

You can turn it off for all of the themes at once or one theme at a time.

To turn it off for all themes then click configure at the top of the page. On the global configuration page, under Toggle Display uncheck Search box then click Save configuration

To turn it off for a specific theme, then use the configure link next to the theme you want to edit. On the resulting page, under Toggle Display uncheck Search box then click Save configuration

#7

raffuk - February 2, 2009 - 23:22

That doesnt work for me. I've turned off in the theme settings and the box is still appearing at the top left corner.
Cache clear too.

Please help!

Thanks

#8

ishmaelsanchez - November 26, 2009 - 23:39
Assigned to:Anonymous» ishmaelsanchez
Status:postponed (maintainer needs more info)» needs work

Ok, I see the issue. I just did a vanilla install of Drupal 5 and I was able to fix this. First update the page.tpl.php around line 25 from <?php print $search_box; ?> to

<?php if ($search_box): ?>
<?php print $search_box; ?>
<?php endif; ?>

Second, clear the cache and navigate to admin/build/themes/settings/aberdeen and uncheck "Search box" under the Toggle display settings. This should resolve your issue with the duplicate search box. I'll include this fix in a future release.

#9

ishmaelsanchez - November 27, 2009 - 09:10
Status:needs work» fixed
 
 

Drupal is a registered trademark of Dries Buytaert.