Maian Script World on Facebook Maian Script World on Twitter Maian Script World - Latest News Maian Script World on YouTube Maian Script World on LinkedIn


Please Read

You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.

IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.

You are not logged in.

#1 03-08-2011 14:40:23

gunter
Members
Registered: 03-08-2011
Posts: 2

At least 2 characters in the search

Hi

What kind of change should be done in the code


      // For keywords less than 3 characters, bypass fulltext..
      if (strlen($thisSearchTerm)<0) {
        $sCount   = rowCount('pages',' WHERE title LIKE \'%'.safeImport($thisSearchTerm).'%\' OR description LIKE \'%'.safeImport($thisSearchTerm).'%\' OR keywords LIKE \'%'.safeImport($thisSearchTerm).'%\'');.........................


in the 75-76-77. lines of search.php file to search with at least 2 characters in the search and get a result?

Thanks

Offline

#2 03-08-2011 19:09:51

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,062

Re: At least 2 characters in the search

It should already work with 2 chars? No?


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#3 03-08-2011 21:29:48

gunter
Members
Registered: 03-08-2011
Posts: 2

Re: At least 2 characters in the search

Hi

Thanks for your answer.

No!

For example, the keyword "abc-xyz", though, it all needs to be written. However, one "-" is between, 3 character will not dial (Result 0).

Or can you tell me please, in which file excluded  characters to find? This can also solve our problem.

Thanks

Offline

#4 04-08-2011 06:42:35

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,062

Re: At least 2 characters in the search

Hyphens are known to be an issue, so nothing I can do I`m afraid.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

Board footer

2Checkout.com is an authorized reseller of goods and services provided by Maian Script World.© 2003-2013 David Ian Bennett. All Rights Reserved | Forum: FluxBB

Privacy Policy | Refund Policy