Hack - Enable Custom Fields in Search

18 years 2 months ago #6636 by mediaguru
Replied by mediaguru on topic Re:re. Roberts Search Componenet
So are you saying if I add a new field now it won't work or be searchable? WOuld you just have to remove the plug and reinstall it?

CB/Joomla golf site: www.thegolfspace.com
Geek/joomla site: www.tkserver.com

Check out my Joomla/CB projects:

* LIKE thumbs up system for "liking" content items
* Karma - CB user rating system
* Golf Score Tracker
* Jitter - status update system. "What's on your mind?"
* CB Author Plug - Shows CB author link and avatar in content items. J1.5 compatible and very customizable!

Found on my web site or in the Joomlapolis Directory !

Please Log in to join the conversation.

18 years 2 months ago #6640 by achintya
Replied by achintya on topic Re:re. Roberts Search Componenet
that was my experience first time around - it didn't see new fields added after installatin ... I uninstalled it, then set up all my fields, and when I reinstalled it, it saw all of them. I have had no cause to do any more fields, so it may work ok now.

It may be enough to uninstall then reinstall, but I don't know for sure.

The other thing not tested yet is whether multiple search terms aggregate themselves, ie, as if with AND between them. Last time I tried it, the search just happened on one of the fields, and not the others.

achintya


mediaguru wrote:

So are you saying if I add a new field now it won't work or be searchable? WOuld you just have to remove the plug and reinstall it?

Please Log in to join the conversation.

18 years 2 months ago #6644 by mediaguru
Replied by mediaguru on topic Re:re. Roberts Search Componenet
I'm testing it now. So far so good. Haven't had any problems or incorrect searches!

CB/Joomla golf site: www.thegolfspace.com
Geek/joomla site: www.tkserver.com

Check out my Joomla/CB projects:

* LIKE thumbs up system for "liking" content items
* Karma - CB user rating system
* Golf Score Tracker
* Jitter - status update system. "What's on your mind?"
* CB Author Plug - Shows CB author link and avatar in content items. J1.5 compatible and very customizable!

Found on my web site or in the Joomlapolis Directory !

Please Log in to join the conversation.

18 years 2 months ago #6645 by achintya
Replied by achintya on topic Re:re. Roberts Search Componenet
HI

that's great... very pleased for you that it is working. Are you able to aggregate fields? Are new fields appearing for you in the backend?

PM me your website address, I would like to see how it functions for you.


ac

mediaguru wrote:

I'm testing it now. So far so good. Haven't had any problems or incorrect searches!

Please Log in to join the conversation.

18 years 2 months ago #6648 by mediaguru
Replied by mediaguru on topic Re:re. Roberts Search Componenet
I added some new fields and NO they didn't show up in the activate search fields backend... Other than that the search seems to be working. I don't really know for sure as I only have 2 real users and 8 fake ones for now...

CB/Joomla golf site: www.thegolfspace.com
Geek/joomla site: www.tkserver.com

Check out my Joomla/CB projects:

* LIKE thumbs up system for "liking" content items
* Karma - CB user rating system
* Golf Score Tracker
* Jitter - status update system. "What's on your mind?"
* CB Author Plug - Shows CB author link and avatar in content items. J1.5 compatible and very customizable!

Found on my web site or in the Joomlapolis Directory !

Please Log in to join the conversation.

18 years 2 months ago #6662 by rg66
Replied by rg66 on topic Re:re. Roberts Search Componenet
mediaguru,

are the fields starting with cb_? Within the script their is a search criteriy which is looking for cb_ within the fields. If they do not start with cb_ then nothing will be shown.

I have decided to change this source at my next release, but I am currently hardly at home and do not have the means to work on my components nor make updates.

Another thing is that if you are using the Hack, check the script which you have had to add to the cb source. Check for this in the comprofiler.html.php hack file

[code:1]$query_search = "SELECT * FROM `jos_comprofiler_fields` WHERE name LIKE '%cb_%' AND search = 1 AND published = 1";[/code:1]

Change the jos_comprofiler_fields to #__comprofiler_fields

That might also be a reason.

Robert

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.575 seconds

Facebook Twitter LinkedIn