tim_ver Posted August 8, 2006 Share Posted August 8, 2006 Right now I do not have any search the site on my main page and want add it. I have the search.php in the includes/boxes folder. What do I need to add to have it display on the main index.php page? What files to edit with what code? Thanks much :) Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 8, 2006 Share Posted August 8, 2006 Add this code to one of the column files: require(DIR_WS_BOXES . 'search.php'); Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
tim_ver Posted August 8, 2006 Author Share Posted August 8, 2006 In my column_left.php now I have: if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } require(DIR_WS_BOXES . 'whats_new.php'); require(DIR_WS_BOXES . 'search.php'); require(DIR_WS_BOXES . 'information.php'); ?> And the only thing that shows up is categories. Which the heading is Our Stuff. Why is it now displaying the what's new and search? Thanks Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 9, 2006 Share Posted August 9, 2006 It sounds like you are using a template system that doesn't use the column_left.php file. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
tim_ver Posted August 10, 2006 Author Share Posted August 10, 2006 It is a template file driven site. I have a column_right.php and a column_left.php. Can I incorporate this into the site now with some lines of code so control is easier? Thanks Much Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 11, 2006 Share Posted August 11, 2006 If the template isn't set up to use them, you can't usually add them since the appearanc will be all wrong. You may be able to add the individaul lines to include a box though. You will just need to find where the template makers have added the code in the column. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.