Results 1 to 9 of 9

Thread: search function

  1. #1
    silverchair
    Guest


    Default search function

    Hi, i am wanting a big search function at the centre of my index page, almost google style, any ideas on how i would go about doing this,

    Thanx

  2. #2
    jpf
    Guest


    Default Re: search function

    Take the code in search.php and insert that into your page where you want it..

  3. #3
    silverchair
    Guest


    Default Re: search function

    oh dear, is it really that simple! :/

    I tried it and it didn't work just showed the code

    I'll try harder this time

  4. #4
    jpf
    Guest


    Default Re: search function

    Like showed the PHP code?

    Which file are you inserting it in and are you properly coding the PHP... ie the code in within a <?php .... ?> block....

  5. #5
    silverchair
    Guest


    Default Re: search function

    cheers for your help bruv, i'll check it now, hopefully it just was the tags

  6. #6
    silverchair
    Guest


    Default Re: search function

    <!-- search //-->
    <tr>
    <td>
    <?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="10" maxlength="30" style="width: ' . (BOX_WIDTH-400) . 'px"') . '&nbsp;' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>');

    new infoBox($info_box_contents);
    ?>
    </td>
    </tr>
    <!-- search_eof //-->

    is this the correct code?

    or this?

    < form name="quick_find" method="get"
    action="http://www.yoururl.com/advanced_search_result.php">
    < input type="text" name="keywords" size="10" maxlength="30" value="" style="width:
    95px">&nbsp;<input type="submit" value="go"><br>
    < a href="http://www.yoururl.com/advanced_search.php"><b style="fontsize:
    8pt;">Advanced Search</b></a>
    < /form>

    neither one was workin
    Last edited by silverchair; 03-09-2009 at 01:38 PM.

  7. #7
    jpf
    Guest


    Default Re: search function

    Second one will never work.

    WHERE and WHICH file are you adding this too?

  8. #8
    silverchair
    Guest


    Default Re: search function

    i am trying to add it to my index page, but there's so many of em, any ideas?

  9. #9
    jpf
    Guest


    Default Re: search function

    Seaming a shopping cart is nothing like google....where would you like it?

    Our cart is broken up to 5 main parts. Header, footer, left menu column, right column and the body (the center part) - where most of the cart is changed.

    Seamin how SEARCH already can be easy swich from left and right column - so Header, footer or body....???

Similar Threads

  1. Search Function Problem
    By FlipC in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 03-04-2008, 12:47 PM
  2. limitations on search function
    By aaanativearts in forum General Topics & Chit Chat
    Replies: 1
    Last Post: 06-16-2007, 12:22 AM
  3. customer search function NEVER worked properly
    By ogilirca in forum osCommerce 2.2 Discussion
    Replies: 0
    Last Post: 11-22-2006, 05:30 AM
  4. Search function does not work.
    By datazen in forum osCmax v2 Installation issues
    Replies: 9
    Last Post: 08-15-2005, 11:00 PM
  5. How to remove search function
    By Plastic in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 05-06-2004, 06:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •