+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: search block

  1. #1

    search block

    Hello

    I have found that the search that I make from the block at the top is incorrect. Is there any way to set the exact match search? I send pictures

    busqueda.jpgbusqueda1.jpg

    Regards

  2. #2
    Hello,

    Open file: ftp://templates>>your_template>>tpl>>header.tpl find div: <div class="container"> code</div>
    and add new code below:

    Code:
    Only registered members can view the code.
    save and check again. But may be you needs to set some css styles for better view on page.
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #3
    Hi Viktor,
    I just tested it out when I saw this thread and the same thing happened with flatty. Can I also apply this code for boats flatty?
    'I thought it related to search.tpl or keyword_search.tpl but it looks like not the case.

    I look up in my header.tpl and couldnt find that <div class="container">

    Last edited by Wei Hong; May 25, 2015 at 06:56 AM.

  4. #4
    Hello Wei Hong,

    If you want you can send ftp access to my PM and I will try to add this code on your site.

    >>Can I also apply this code for boats flatty?
    Why not of course you can,
    Viktor,
    Flynax technical department,
    Best wishes.

  5. #5
    Message sent.
    Thanks Viktor

  6. #6
    Hello Wei Hong,

    For your template my code should be after line:

    Code:
    Only registered members can view the code.
    in header.tpl file. I have implemented the code for your site and add some styles in css for better view Please check.
    Viktor,
    Flynax technical department,
    Best wishes.

  7. #7
    THanks Viktor,

    But I'm currently only need to set the default for the search block on top to be exact match, key value '1' so it will be default search "all words in any order"

  8. #8
    Hello Wei Hong,

    Please find in my code condition:

    Code:
    Only registered members can view the code.
    and change 2 to 1 save and check
    Viktor,
    Flynax technical department,
    Best wishes.

  9. #9
    Quote Originally Posted by Viktor View Post
    Hello Wei Hong,

    Please find in my code condition:

    Code:
    Only registered members can view the code.
    and change 2 to 1 save and check
    Hi Viktor, what if I want to remove the drop down option with 3 options, everything goes back to normal, but still keep the default for that search block as "all words in any orders" key "1"? I have tried to edit 3 tpl file in block folder but they only work in search pages and field search, but not that search block on top. May be I need to add something in header.tpl
    Last edited by Wei Hong; May 26, 2015 at 04:17 PM.

  10. #10
    Hello Wei Hong,

    You can make it by another way if you want use first variant always:
    1. remove these radio buttons from anywhere
    2. open file /includes/classes/rlSearch.class.php
    3. find keywordSearch() function (~571 row):

    PHP Code:
    Only registered members can view the code
    4. and set as default $mode = 1, like this:

    PHP Code:
    Only registered members can view the code
    Thank you, Curtis.
    @Flynax Company

+ Reply to Thread