Hi all.
I've completed the implementation of an advanced search for CB. It allows a frontend user to perform an advanced search choosing which fields have to be included and whether they are ANDed or ORed.
The changes are the following. There is a new field attribute in the backend: "Search Enabled". Say, the administrator can now select which fields are searchable. A UserList in the frontend will then show a form containing the searchable fields and will allow to filter data.
So far, the component is not localized; you will find text in Italian language. It should be quite easy to fix this.
The component has been realized by M. Esposito (mesposit@unina.it) and F. Esposito (francesco@u-link.it) in collaboration with UZED@ (
www.uzeda.com).
Any question can be sent to: mesposit@unina.it
Cheers,
Marcello.
INSTALLATION
The component can be downloaded at:
www.u-link.it/comprofiler_advancedsearch.zip
and it can be installed in the usual way.
Alternately, if you plan to mainain your already existing CB data, you can unzip the component's file (overwriting your running files) and execute the following query on the database:
alter table mos_comprofiler_fields add `searchEnabled` tinyint(1) NOT NULL default '0';
Obviously, do a backup, first, which is better.
The files which have been actually modified are the following:
/components/com_comprofiler/comprofiler.html.php
/administrator/components/com_comprofiler/admin.comprofiler.html.php
/administrator/components/com_comprofiler/admin.comprofiler.php
/administrator/components/com_comprofiler/comprofiler.class.php