mark27uk3 Posted June 18, 2004 Share Posted June 18, 2004 Hi Guys, I have installed the simple template system but now I would like to add the code below into the header, I tried pasting it into the header where I wanted it to appear but nothing shows. I presume it has something to do with sts but I dont know what, can anyone point me in the right direction. <tr class="header"> <td valign="middle" align="right"> Search: <?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'). tep_draw_input_field('keywords','','size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES))))?> </td> <td valign="middle" width="30" align="center"> <input type="image" src="images/index/go_off.gif" border="0" alt="Quick Find" title=" Quick Find "> </form> </td> </tr> Thanx Mark Lifes a bitch, then you marry one, then you die! Link to comment Share on other sites More sharing options...
ozcsys Posted June 18, 2004 Share Posted June 18, 2004 Hi Guys, I have installed the simple template system but now I would like to add the code below into the header, I tried pasting it into the header where I wanted it to appear but nothing shows. I presume it has something to do with sts but I dont know what, can anyone point me in the right direction. <tr class="header"> <td valign="middle" align="right"> Search: <?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'). tep_draw_input_field('keywords','','size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES))))?> </td> <td valign="middle" width="30" align="center"> <input type="image" src="images/index/go_off.gif" border="0" alt="Quick Find" title=" Quick Find "> </form> </td> </tr> Thanx Mark STS pulls the placement info from the sts_template.html file so you need to make sure that is where you are making your changes. If you are using sts you cannot add php code to the template. You should try using the $tags instead. To put the search box where you want it to be all you need to do is place the $search tag where you want it to appear. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right?? Link to comment Share on other sites More sharing options...
nutman Posted June 18, 2004 Share Posted June 18, 2004 I've did this and it works great... I'll post my code shortly for you... or you can email me directly... KB Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.