My guess is that I am doing something incredibly dumb but I am stomped and hope someone can point out my mistake.
I am adapting a template to Drupal. I created a new search-box.tpl.php:
<div><div id="search" class="container-inline"><div class="form-item">
<input type="text" maxlength="128" class="my_form-text" name="edit[keys]" id="edit-keys" size="15" value="Search" onClick="value=''" onBlur="value='Search'" alt="Enter the terms you wish to search for." />
</div>
<input type="submit" class="my_form-submit" name="op" value="GO" />
<input type="hidden" name="edit[form_id]" value="search_box" />
</div>
</div></form>
Added:
function phptemplate_search_theme_form($form) {
return _phptemplate_callback('search-box', array('form' => $form));
}
to the template.php file.
Added $search_box to page.tpl.php as follows:
<div id="main_content_area">
<?php if ($sidebar_left) { ?><div id="left_side">
<?php print $search_box ?>
<?php print $sidebar_left ?>
</div><?php } ?>
<?php if ($sidebar_right) { ?><div id="right_side">
<?php print $search_box ?>
<?php print $sidebar_right ?>
</div><?php } ?>
<div id="content">
<?php print $search_box ?>
<?php print $content; ?>
</div>
</div> <!-- END MAIN CONTENT -->
I inserted the $search_box variable in each section of the template to see if I get a search box. My search box appears in all the sections except for the right sidebar where I get nothing. What next?