Hack - Enable Custom Fields in Search

18 years 4 months ago #2692 by hfhs
Replied by hfhs on topic Re:Hack - Enable Custom Fields in Search
For those of you still using Mambo 4.5.2 (like me), this hack works for you too. You just have to change one little snippet of code to match your Mambo site.

1. Before you run your database query using:

[code:1]ALTER TABLE `jos_comprofiler_fields` ADD `search` TINYINT( 1 ) DEFAULT '0' NOT NULL AFTER `registration` ;[/code:1]

Change jos_comprofiler_fields to mos_comprofiler_fields

2. Edit the comprofiler.html.php hack file
Find: (should be on line 643)

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

Replace the jos_comprofiler_fields with mos_comprofiler_fields

Now follow the directions that are posted in the previous posts.

Please Log in to join the conversation.

18 years 4 months ago #3243 by balous
Replied by balous on topic Re:Hack - Enable Custom Fields in Search
i am getting the following error messages....can you please help.
Fatal error: Call to undefined function: showtabs() in D:\inetpub\thegreeksite\administrator\components\com_comprofiler\admin.comprofiler.php on line 754

and

Fatal error: Call to undefined function: showplugins() in D:\inetpub\thegreeksite\administrator\components\com_comprofiler\admin.comprofiler.php on line 1860

and a couple more.

Please Log in to join the conversation.

18 years 3 months ago #3270 by rg66
Replied by rg66 on topic Re:Hack - Enable Custom Fields in Search
balous,

these are all cb functions and have nothing todo with the hack.

I would suggest you upload the original files and see if it works again. If that works see what version of the cb you are working with with hack I have supplied. May be there is a version difference.

Robert

Please Log in to join the conversation.

18 years 3 months ago #3459 by AnyTime
Replied by AnyTime on topic Re:Hack - Enable Custom Fields in Search
WORKS EXCELLENT.. We had started coding some of the same and with this mod you saved us some time!!!

THANKS for the post and I hope CB will add this to perm code...

Please Log in to join the conversation.

18 years 3 months ago #4296 by TheVance
Replied by TheVance on topic Re:Hack - Enable Custom Fields in Search
Greetings,

Just wanted to say hello, I am new to Joomla and CB and really enjoy them both.

I went to try this hack and it doesn't seem to work for me. I ran the SQL query and overwrote the files but when I go to the userList item and search for a word of a custom field, no results appear. Am I missing something to implement it? Any advice would be greatly appreciated. Thanks in advance.

I am running the current version of CB.

Please Log in to join the conversation.

18 years 3 months ago #4355 by wingy
Replied by wingy on topic Re:Hack - Enable Custom Fields in Search
Yes, I'm stuck in the same boat too. The installation went fine. Now, how do I implement an advanced search for the end users?

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.417 seconds

Facebook Twitter LinkedIn