Previous Thread
Next Thread
Print Thread
Hop To
Joined: Feb 2005
Posts: 6
B
stranger
stranger
B Offline
Joined: Feb 2005
Posts: 6
Hi,

I found another bug (BTW there are lots of them).
This time it's in "Search". If you search anything and select option: "in body", you'll get maximum allowed posts with no searched word.
For example try to find phrase: "abcabcabc" on your board. Compulsory check "in body". You'll get 37 results, all wrong.

Problem is in "dosearch.php" file.
You have to put the following lines:

AFTER:
if ($where == "sub") {$andquery .= "$andconcat (p.POST_SUBJECT LIKE '%$word%')";}

INSERT:
if ($where == "body") {$andquery .= "$andconcat p.POST_DEFAULT_BODY LIKE '%$word%')";}


AFTER:
if ($where == "sub") {$notquery .= "$notconcat (p.POST_SUBJECT NOT LIKE '%$word%')";}

INSERT:
if ($where == "body") {$notquery .= "$notconcat (p.POST_DEFAULT_BODY NOT LIKE '%$word%')";}

AFTER:
if ($where == "sub") {$orquery .= "$orconcat (p.POST_SUBJECT LIKE '%$word%')";}

INSERT:
if ($where == "body") { $orquery .= "$orconcat (p.POST_DEFAULT_BODY LIKE '%$word%')";}



That's all. Enjoy smile


Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
yes, it applies to THIS forum as well.. i noted that in the changelog discussion thread, because i was searching for if a keyword 'mysqli' was mentioned there..

it came up with hits that had nothing to do with the keyword..

thanks for the info smile

Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
So maybe we will have a 7.5.4.3 before v8.0?
The search feature is a big item for me.
I would also like to see the advanced search window improved and get rid of the greater than or less than date field.
Build a search then have the ability to add filters.
It never seems to work correctly, I just blank them out.
Maybe the issue mentioned has been the problem all along.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Nightcrawler), 639 guests, and 217 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)