Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11845
Latest: SamoanOnion
New This Month: 6
New This Week: 0
New Today: 0
Stats
Total Posts: 42473
Total Topics: 7406
Most Online Today: 80
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 51
Total: 51

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

+- Recent Topics

"Custom title" badge by Hatshepsut
September 27, 2022, 10:11:27 pm

Category Selection by Anmer
September 18, 2022, 02:40:06 am

Setting a single free download. by Zaphod
September 12, 2022, 10:18:45 pm

Error message "Data too long for column 'ipaddress' at row 1" by SMFHacks
September 12, 2022, 08:49:02 am

SMF to SMF bridge via WP by SMFHacks
September 11, 2022, 09:44:30 am

Video player included by SMFHacks
September 06, 2022, 10:26:27 pm

Upload hangs / doesn't complete by SMFHacks
August 28, 2022, 08:36:21 am

[Feature Request] Admin Sales Alert by Shades
August 25, 2022, 06:41:00 pm

Portal Block by SMFHacks
August 23, 2022, 12:42:22 pm

Question about undoing a rating by SMFHacks
August 22, 2022, 04:31:50 pm

Powered by EzPortal