imagematernal
Welcome, Guest. Please login or register.
Did you miss your activation email?

 
Advanced search

22745 Posts in 6703 Topics- by 17593 Members - Latest Member: permsk

18-11-2019 08:37:49
JOOM::GALLERY::FORUMJoomGallery 3.0 JUX - ExtensionsPluginsJoomSearch searches additional Image Fields
Pages: [1]
Print
Author Topic: JoomSearch searches additional Image Fields  (Read 1252 times)
0 Members and 1 Guest are viewing this topic.
JohannP
Newbie
*
Offline Offline

Posts: 5


View Profile
« on: 15-02-2018 11:26:57 »

Hi,

Joomla Search finds some unwanted results so I think Joomsearch seems to search in additional Image fields too - can this be?
After receiving some strange search results I tried to find the "error" and searched for "http" since my additional Image fields include URLs. All Images with an URL within the additional Image fields where found.

I tried to find a solution but have not found one in the joomgallery search plugin (joomgallery.php).

You may try yourself: https://www.free-photo.cc/galleries/advanced-search?searchword=http&areas=joomgallery

Thanks for any help,
Johann
Logged
MrMusic
Administrator
Hero Member
*****
Offline Offline

Posts: 1084



View Profile
« Reply #1 on: 16-02-2018 12:53:31 »

Hi,

yes, the additional fields information are searched by default. Normally the user expects that the additional information about the search can be found.
If you want to prevent the search in the additional fields, you have to delete this code at about line 303 in the file plugins/joomgallery/joomadditionalimagefields.php:
Code:
return array ('images.where.or' => 'LOWER (additionalimage.details_value) LIKE \'% '. $ searchstring.'% \ '',
      'images.leftjoin' => _JOOM_TABLE_IMAGE_DETAILS. ' AS additionalimage ON additionalimage.id = '. $ Aliases [' images']. '. Id AND dditionalimage.details_key LIKE \' additional.% \ '');
Maybe there will be the option in a future version.
Logged

From now on there is the support for the JoomGallery here: forum.en.joomgalleryfriends.net
Pages: [1]
Print
Jump to:  

HOSTED BY SCHWARZKÜNSTLER ®

PROTECTED BY  ZB BLOCK  AND Project Honey Pot
Theme orange-lt created by panic

Bad Behavior has blocked 5049 access attempts in the last 7 days.