Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 177
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 186
Total: 187

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

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal