Skip to Content Skip to Menu

New plugin: Advanced Search

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 2 months ago #45028 by mikko
New plugin: Advanced Search was created by mikko
Hello

Please find attached the first attempt to port CB Advanced Search component as CB userlist component.

This plugins requires the following bug fix to be applied before using.

In admin.comprofiler.controller.php,

Change this
[code:1]
case 'pluginmenu':
[/code:1]

to this:

[code:1]
break;
case 'pluginmenu':
global $database,$mosConfig_absolute_path;
$database->setQuery("SELECT element, folder, type FROM #__comprofiler_plugin WHERE id=".(int)mosGetParam($_GET,'cid',-1));
$result=null;
$database->loadObject($result);
if($result!=null){
if(file_exists("$mosConfig_absolute_path/components/com_comprofiler/plugin/$result->type/$result->folder/toolbar.$result->element.php"«»)){
include_once("$mosConfig_absolute_path/components/com_comprofiler/plugin/$result->type/$result->folder/toolbar.$result->element.php"«»);
}
}
break;
[/code:1]

It probably contains a lot of bugs still, but should be somewhat usable.

-Mikko

Attachment plug_cbadvancedsearch.zip not found

Attachments:

Please Log in or Create an account to join the conversation.

  • baucis
  • baucis
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
17 years 2 months ago #45621 by baucis
Replied by baucis on topic Re:New plugin: Advanced Search
Hi Mikko,

thanks for your great work with the advanced help plugin. I fyou use CB, you need this plugin.

Discovered a little bug inside advancedsearch.php, on line 503 /CB Advanced Search Component// has to be //CB Advanced Search Component//

two // instead of one.

I have one question, because of the use of patTemplate in your code, I get an error when using it in a Joomla 1.5 installation. Is there a workaround?

Many thanks,

Post edited by: baucis, at: 2007/09/11 21:44

Please Log in or Create an account to join the conversation.

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 2 months ago #45654 by mikko
Replied by mikko on topic Re:New plugin: Advanced Search
Thanks for testing. This component was ported following quick and dirty approach. I do not think that patTemplate should be used at all in the long run.

For now, you can copy patTemplate to your webdirectory and add an include statement to load it at the start of this plugin.

-Mikko

Please Log in or Create an account to join the conversation.

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 2 months ago #45676 by mikko
Replied by mikko on topic Re:New plugin: Advanced Search
A new version with some bug fixes.

-Mikko

Attachment plug_advancedsearch.zip not found

Attachments:

Please Log in or Create an account to join the conversation.

17 years 2 months ago #45695 by cactusjuice3
Replied by cactusjuice3 on topic Re:New plugin: Advanced Search
When i try in "User defined Fields" allow fields catch an error message:

[code:1]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 2 SQL=UPDATE jos_cb_search_fields SET search=1
WHERE id IN ()[/code:1]

and

[code:1]Warning: implode() [function.implode]: Bad arguments. in /web/xxx/components/com_comprofiler/plugin/user/plug_cbadvancedsearch/admin.advancedsearch.php on line 408[/code:1]

:(

Joomla 1.0.12, CB 1.1

Please Log in or Create an account to join the conversation.

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 2 months ago #45696 by mikko
Replied by mikko on topic Re:New plugin: Advanced Search
Can you give a bit more information how you got this error?

-Mikko

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum