OpenSearch plugin OpenSearch plugin
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

OpenSearch plugin

Started by Nibbler, February 11, 2007, 01:27:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nibbler

An OpenSearch plugin for Coppermine. This lets your users use their browser's search box to search your gallery. Works with FF2 (tested) and IE7 (in theory).

It is recommended to use the plugin manager to install this to avoid file permissions issues.

If there is positive feedback I can try adding more features to the plugin.

For more info: http://www.opensearch.org/

rubenix

nice job!! Tested and works with FF and IE7! works fine in my site! but... (theres always a but)

How to store an icon besides de Gallery name as google and others do?? Searched with no luck...

I just tried to edit the xml file and injected an image code like:

<Image height="16" width="16" type="image/x-icon">favicon.ico</Image>
as suggested here:

http://www.opensearch.org/Specifications/OpenSearch/1.1#The_.22Image.22_element

tried also with the full path URL to the favicon.ico file but that didn't make the trick to make it working...

Any help would be really appreciated!!

Davide Renda

Tried and tested on my gallery and works as a charme with Firefox 2 (no idea about IE, as I don't use win). Great work!

Joachim Müller

When porting this plugin to cpg1.5.x I noticed that there is an issue if you uninstall this plugin and then try to re-install: the placeholder tokens in the xml file get overwritten during initial install - this is not being undone when uninstalling. Subsequently, re-installing won't do anything, as the xml file will no longer be changed (because the placeholder tokens are missing).

Here are the code changes I suggest implementing: add an uninstall function that allows to restore the xml file. I have attached my modified file.

Suggestion for the future: the field "Gallery url (must be correct)" should be dropped and the config setting used instead.