Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: OpenSearch plugin  (Read 28260 times)

0 Members and 1 Guest are viewing this topic.

Nibbler

  • Guest
OpenSearch plugin
« on: February 11, 2007, 01:27:48 am »

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/
Logged

rubenix

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 43
    • Rubrenix Gallery
Re: OpenSearch plugin
« Reply #1 on: July 13, 2007, 12:45:13 pm »

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:

Code: [Select]
<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!!
Logged

Davide Renda

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1427
  • aka "Lontano"
    • www.daviderenda.eu
Re: OpenSearch plugin
« Reply #2 on: July 15, 2007, 11:03:46 pm »

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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: OpenSearch plugin
« Reply #3 on: February 11, 2008, 08:26:29 am »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.