Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.


  • Content count

  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
  1. vinstones

    [Contribution] STS v4

    Thanks Bill Kellum, The actual form method you suggested works like a charm : ) ... I never thought it could work just like that. I use the code you've provided in a mini_search.html <form name="advanced_search" action="http://yourdomain.com/catalog/advanced_search_result.php" method="get"> <table width="100%" cellpadding="0" cellspacing="0"><tr><td align="center"><input type="hidden" name="search_in_description" value="1"><input type="hidden" name="inc_subcat" value="1"><input type="text" name="keywords" size="10" maxlength="30" class="searchForm" width="95px" id="keywords"></td><td align="left"> <input type="image" src="http://yourdomain.com/catalog/includes/languages/english/images/buttons/button_quick_find.gif" border="0" alt="Search" title=" Search "></td></tr></table> </form> and added this code to the sts_user_code.php: $sts->start_capture(); require(DIR_WS_BOXES . 'mini_search.html'); $sts->restart_capture('minisearchbox'); and got the result I wanted.. A mini searchbox without the additional text below and without being wrapped in sts infobox style borders and background that I can call using placeholder in a sts template and place anywhere I want! :rolleyes: Do you think the catalog/includes/boxes/manufacturers.php could also use the direct form methods? I opened up manufacturers.php and this time, it is not a simple form as it query the database to form a list of manufacturer and their respective urls before drawing it up as a form.. I'm beginning to see the power of STS for designers like me who cannot do php to save our lives.. :) Thanks for the wonderful contribute and support!
  2. vinstones

    [Contribution] STS v4

    Hi Bill Kellum, Thanks for the prompt respond.. Yes indeed it was a broken mini_search.php that caused the page not showing. What I did was to reduplicate from search.php to make a new mini_search.php.. then I remove a line of code at a time and tested the template (until I got what I wanted, the search box with just the seach field and search icon-- no infobox header or advance search text) <!-- mini_search //--> <?php // $info_box_contents = array(); // $info_box_contents[] = array('text' => BOX_HEADING_SEARCH); // new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'), 'align' => 'center', 'text' => tep_draw_input_field('keywords', '', 'size="8" maxlength="40" style="width: ' . (BOX_WIDTH-40) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH)); new infoBox($info_box_contents); ?> <!-- mini_search_eof //--> both sts_user_code.php and sts_column_left.php works fine for custom placeholder : ) I've managed to get the mini_search.php to show in the template now : ) --> However, even when I remove all the codes from mini_search.php it still shows a info box styled box with background colour and border which dont fit into the template. Question: How can I make mini_search.php appear without the usual infobox style? (editing .infoBox and .infoBoxContents in stylesheet.css cause changes to all infoboxes, but I only want to effect the style change on mini_search.php) many thanks :)
  3. vinstones

    [Contribution] STS v4

    Hi Bill Kellum, I've installed STS 4.5.8 on the latest osc ms2_RC2a... Everything works fine with index.php.html template.. but when I add a new placeholder as detailed in the manual in to : sts_user_code.php using this method $sts->start_capture(); require(DIR_WS_BOXES . 'mini_search.php'); $sts->stop_capture('minisearchbox', 'box'); the site would just refuse to display.. I have copied and modified the default osc search.php into mini_search.php removing everything except the form input field... the mini_search.php has been tested to work without sts.. the problem seems to be in the sts_user_code.php as I am unable to create any additional placeholder eg like $minisearchbox... the page would just go blank.. removing the user created code (the 3 lines as mentioned above) brings back my site with no problem.. what could possibly be the cause? Out of desperation, I also tried using this method: $sts->template['minisearchbox']='mini_search.php; this did not break the template but simply display the text mini_search.php in the template when viewed in browser... Thanks for your wonderful help in advance.