test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • ruditrip Friend
    #184891

    Hi there

    i currently get the following message in the ja k2 filter module when i search a keyword of more than 20 characters:

    “Search term must be a minimum of 3 characters and a maximum of 20 characters”

    i would like to increase the number of allowed search characters to 50 or 100 characters. can anyone please tell me how? thanks in advance..

    MoonSailor Friend
    #483501

    Hi ruditrip ,

    <blockquote>
    i would like to increase the number of allowed search characters to 50 or 100 characters. can anyone please tell me how? thanks in advance..
    </blockquote>

    Please open file “components/com_jak2filter/models/itemlist.php”, go to line 806
    [PHP]
    if(strlen($jakeyword) >=3 && strlen($jakeyword) <= 20){
    $jakeyword = ‘%’.$jakeyword.’%’;
    $where[] = “(i.title LIKE “.$db->quote($jakeyword).” OR i.introtext LIKE “.$db->quote($jakeyword).” OR i.fulltext LIKE “.$db->quote($jakeyword).”)”;
    } else {
    JError::raise(E_WARNING, 100, JText::_(‘Search term must be a minimum of 3 characters and a maximum of 20 characters.’));
    }
    [/PHP]

    You can change it here

    ruditrip Friend
    #483707

    Thank you so much MoonSailor! All sorted 🙂 site i built and now you had a hand in fixing http://www.cenfri.org

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  ruditrip 11 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum