Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11839
Latest: BugginIn
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 42415
Total Topics: 7393
Most Online Today: 52
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 69
Total: 70

Author Topic: Gallery Is Not Keyword Searchable Via Forum Search  (Read 3977 times)

0 Members and 1 Guest are viewing this topic.

Offline marcbkk

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Gallery Is Not Keyword Searchable Via Forum Search
« on: June 06, 2011, 09:42:59 am »
The gallery can't be keyword searched.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16084
    • View Profile
Re: Gallery Is Not Keyword Searchable Via Forum Search
« Reply #1 on: June 06, 2011, 11:21:48 am »
The forum search is not integrated with the gallery keywords/picture results.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline marcbkk

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Re: Gallery Is Not Keyword Searchable Via Forum Search
« Reply #2 on: June 06, 2011, 11:44:42 am »
Understand. How can I search the Gallery though by only whole keywords? For example, a search for the word "King" also yields results which contain the word "Making". Not very effective.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16084
    • View Profile
Re: Gallery Is Not Keyword Searchable Via Forum Search
« Reply #3 on: June 06, 2011, 12:41:49 pm »
Open Sources/Gallery.php
Find
Code: [Select]
$searchquery .= "p.keywords LIKE '%$searchfor%'";
Replace with
Code: [Select]
$searchquery .= "p.keywords = '$searchfor' OR p.keywords LIKE '%$searchfor,%' OR p.keywords LIKE '%,$searchfor,%' OR p.keywords LIKE '%,$searchfor%' ";
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline marcbkk

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Re: Gallery Is Not Keyword Searchable Via Forum Search
« Reply #4 on: June 06, 2011, 11:17:41 pm »
Thanks. Did that and did a new search for the word "King". Still got results like Sticking, Making, Linking, Looking, etc.

So no change as far as I can see.

I think what needs to be added is a box which says "Search Whole Words Only".

Offline marcbkk

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Re: Gallery Is Not Keyword Searchable Via Forum Search
« Reply #5 on: June 08, 2011, 09:00:17 pm »
So how can I do a keyword search on the Gallery for whole words only?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16084
    • View Profile
Re: Gallery Is Not Keyword Searchable Via Forum Search
« Reply #6 on: June 08, 2011, 09:05:25 pm »
I have to make a major change to search function to fix it to do the tag could might do it for next update.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16084
    • View Profile
Re: Gallery Is Not Keyword Searchable Via Forum Search
« Reply #7 on: June 08, 2011, 09:23:27 pm »
Took little more time more complicated that I thought looks like I would need to add a fulltext search in order to get it to work probably will be for SMF Gallery 4.0.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
3960 Views
Last post March 03, 2008, 07:11:28 am
by SMFHacks
2 Replies
4374 Views
Last post December 13, 2008, 12:59:40 pm
by SMFHacks
2 Replies
4011 Views
Last post November 22, 2008, 10:49:35 am
by gibbs
6 Replies
6293 Views
Last post December 10, 2009, 08:12:34 am
by SMFHacks
5 Replies
544 Views
Last post July 28, 2021, 11:46:05 am
by Anmer

+- Recent Topics

Quick moderation checkboxes in search result? by SMFHacks
August 08, 2022, 10:37:03 am

Setting a single free download. by Zaphod
August 07, 2022, 10:39:26 am

Contact Page Mod Not Working by SMFHacks
August 05, 2022, 12:19:43 pm

Issues with new Newsletter Pro installation by SMFHacks
August 05, 2022, 07:15:18 am

SMFBlog Mod by Nicole
August 03, 2022, 09:46:22 pm

Contact Page by Nicole
August 03, 2022, 09:45:42 pm

trader + classifieds by Nicole
August 03, 2022, 05:05:17 pm

Category Permissions List by SMFHacks
July 30, 2022, 07:53:24 am

Some questions by mickjav
July 30, 2022, 03:31:07 am

prettyurls - TroubleShooting.wiki by SMFHacks
July 29, 2022, 12:27:28 pm

Powered by EzPortal