Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11809
Latest: Rheingauner
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 41640
Total Topics: 7280
Most Online Today: 92
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 32
Total: 32

Author Topic: Gallery Is Not Keyword Searchable Via Forum Search  (Read 3624 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: 15765
    • 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: 15765
    • 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: 15765
    • 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: 15765
    • 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
3827 Views
Last post March 03, 2008, 07:11:28 am
by SMFHacks
2 Replies
4313 Views
Last post December 13, 2008, 12:59:40 pm
by SMFHacks
2 Replies
3927 Views
Last post November 22, 2008, 10:49:35 am
by gibbs
6 Replies
6210 Views
Last post December 10, 2009, 08:12:34 am
by SMFHacks
5 Replies
383 Views
Last post July 28, 2021, 11:46:05 am
by Anmer

+- Recent Topics

Logo and Category? by tank_fv101
January 10, 2022, 08:03:11 am

Questions about SMF Gallery Pro Folders and Gallery URL by scso1502
January 05, 2022, 03:48:27 pm

$subcats_linktree by mickjav
January 05, 2022, 03:08:29 pm

New Photos Won't Upload - Gallery Pro 8.0 or 9.0b - Old Photos Still Visible by scso1502
January 05, 2022, 02:23:16 pm

Additional Recommendations for SMF Store by SMFHacks
January 03, 2022, 02:37:10 pm

Seasons Greetings by SMFHacks
December 24, 2021, 10:02:42 pm

Problems with the contact mod by SMFHacks
December 22, 2021, 09:16:24 am

Gallery Pro v8.0 and PHP 7.4 by SMFHacks
December 16, 2021, 01:34:03 pm

Thanks mod SMF 2.1 by Monocero
November 27, 2021, 01:13:01 pm

How to change the font on a photo in SMF Gallery Pro? by SMFHacks
November 18, 2021, 09:28:11 am

Powered by EzPortal