
Originally Posted by
StoreOwner
Alright so I started messing with it again and It doesn't seem to work right, just displays the code in the categories
at the top of tpl_index_categories.php I add this
<div class="searchListing" id="indexCategories">
require($template->get_template_dir('tpl_search_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_search_header.php');
}
If this is the EXACT code you added, then of course it's not working - you need to wrap the php code inside php tags... Something like this:
Code:
<div id="categorySearch">
<?php require($template->get_template_dir('tpl_search_header.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_search_header.php'); ?>
</div>
Keep in mind this WON'T work unless you modify the tpl_search_header.php file as well and echo the content, but if you do that in the same file, you'll mess it up for the header... The best solution would be to create a clone of the header search box and then use that for listing pages, but you could always use the hillbilly method like this:
Code:
<div id="categorySearch">
<?php require($template->get_template_dir('tpl_search_header.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_search_header.php');
echo $content; ?>
</div>
Just don't tell anyone you heard this from me... 
Regards,
L.