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

 
Advanced search

22719 Posts in 6694 Topics- by 17594 Members - Latest Member: permsk

26-04-2019 00:48:00
JOOM::GALLERY::FORUMJoomGallery 3.x JUXFrontendJoomSearch
Pages: [1]
Print
Author Topic: JoomSearch  (Read 345 times)
0 Members and 1 Guest are viewing this topic.
doopz
Jr. Member
**
Offline Offline

Posts: 65



View Profile WWW
« on: 16-11-2018 07:11:36 »

Set Joomsearch search mode to images, description and author selected for search and no results.
Logged
MrMusic
Administrator
Hero Member
*****
Offline Offline

Posts: 1073



View Profile
« Reply #1 on: 16-11-2018 14:20:32 »

Hi,

is the search plugin 'JoomSearch' installed and activated?
It is needed for the search module. See here and here.
Logged

Regards
MrMusic
Is your Problem solved? Please mark it as solved
Demo-Shop for JoomGallery Images
doopz
Jr. Member
**
Offline Offline

Posts: 65



View Profile WWW
« Reply #2 on: 24-03-2019 03:18:05 »

Is there any way to expand the default search to search authors/owners?

Although Joomsearch is a cool plugin, it is not working very well with my site. I like the search results much better with the default search bar, I just need it to be able to search Authors/Owners. Is this possible?
Logged
MrMusic
Administrator
Hero Member
*****
Offline Offline

Posts: 1073



View Profile
« Reply #3 on: 25-03-2019 12:46:45 »

...I like the search results much better with the default search bar, I just need it to be able to search Authors/Owners. Is this possible?
In JoomSearch plugin in the second tab you can define exactly what to use for:
Descriptions / comments / authors / owners.
What do you mean with "default search bar"? The Standard Joomla Search module?
Then the JoomSearch plugin is the solution for this.
Logged

Regards
MrMusic
Is your Problem solved? Please mark it as solved
Demo-Shop for JoomGallery Images
doopz
Jr. Member
**
Offline Offline

Posts: 65



View Profile WWW
« Reply #4 on: 25-03-2019 20:50:03 »

I'm unsure what search bar it is, but the one we currently use can be set it up through the Joomgallery configuration and set up it's results outcome and column and even displays the thumbnails; which is required for my site.

With the Joomsearch plugin, the ajax popup isn't ideal.
Even after disabling the popup, the results display on the main page (which I do not want, I'd rather it appear on a new page) and it disrupts the entire design of the website. The results page design is quite bare, and does not seem to be very configurable within the settings. Sure, it could search various areas (author, owner etc.) but the results look much worse in my opinion.

I just thought maybe there would be an "easy" way to allow the search I'm using to search through authors and owners.
Logged
MrMusic
Administrator
Hero Member
*****
Offline Offline

Posts: 1073



View Profile
« Reply #5 on: 26-03-2019 13:20:45 »

I'm unsure what search bar it is, but the one we currently use can be set it up through the Joomgallery configuration...
Ok, so you are using the search in the JoomGallery component. This is different than the search with the plugin JoomSearch or module.

The search in the component is currently searching in title, description and owner.
If you want to stay with this search you would have to modify the code to search for the "author".
By changing lines 78-80 in the file components/com_joomgallery/models/search.php
you could change the search accordingly.
Logged

Regards
MrMusic
Is your Problem solved? Please mark it as solved
Demo-Shop for JoomGallery Images
doopz
Jr. Member
**
Offline Offline

Posts: 65



View Profile WWW
« Reply #6 on: 26-03-2019 14:12:51 »

Okay, so would I just add a line and just add "author"??

ie:

OR author       LIKE '.$this->_db->q('%'.$searchstring.'%')

???
Logged
MrMusic
Administrator
Hero Member
*****
Offline Offline

Posts: 1073



View Profile
« Reply #7 on: 26-03-2019 14:23:59 »

You must use the database column name:
Code:
OR a.imgauthor      LIKE '.$this->_db->q('%'.$searchstring.'%').'
Logged

Regards
MrMusic
Is your Problem solved? Please mark it as solved
Demo-Shop for JoomGallery Images
doopz
Jr. Member
**
Offline Offline

Posts: 65



View Profile WWW
« Reply #8 on: 28-03-2019 01:29:37 »

Oh!
That worked perfectly!! Thank you so much!!!
Logged
doopz
Jr. Member
**
Offline Offline

Posts: 65



View Profile WWW
« Reply #9 on: 01-04-2019 05:24:58 »

One last thing, is there a line I could add to also search categories?
Logged
MrMusic
Administrator
Hero Member
*****
Offline Offline

Posts: 1073



View Profile
« Reply #10 on: 02-04-2019 11:46:00 »

Yes, for search the category title you can add this:
Code:
OR ca.name          LIKE '.$this->_db->q('%'.$searchstring.'%').'
Logged

Regards
MrMusic
Is your Problem solved? Please mark it as solved
Demo-Shop for JoomGallery Images
doopz
Jr. Member
**
Offline Offline

Posts: 65



View Profile WWW
« Reply #11 on: 09-04-2019 22:36:42 »

Thank You!!

What I don't understand is; why it comes up without results if I search for an image name and a category for instance.

It seems you have to be VERY specific otherwise it's turns up with no results.

And is there a way to enable it to search just within a category that I'm in as opposed to it searching the entire site?
Logged
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 2937 access attempts in the last 7 days.