Support Forum Project Downloads FAQ Documentation About Demo Tutorials Blog Plugins
November 21, 2009, 01:49:11 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Maintenance release cpg1.4.25 - upgrade recommended
The Coppermine development team is releasing an update for Coppermine in order to fix an issue with http uploads that could occur in particular versions of PHP.The fix is not security-critical, so if your gallery is running fine with cpg1.4.23 or cpg1.4.24 you don't need to upgrade. If you are running an older version than cpg1.4.23, you must update to this latest version as soon as possible because of the security impact (the past few maintenance releases before cpg1.4.24 all were security-related).
[more]
   Home   Help Search Board rules Login Register  
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: OpenSearch plugin  (Read 5512 times)
0 Members and 1 Guest are viewing this topic.
Nibbler Topic starter
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19445



WWW
« on: February 11, 2007, 12: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/

* opensearch.zip (2.39 KB - downloaded 444 times.)
Logged

I don't care about what they say, I won't live or die that way.
rubenix
Coppermine novice
*
Gender: Male
Posts: 40


WWW
« Reply #1 on: July 13, 2007, 11:45:13 am »

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:
<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
****
Gender: Male
France France

Posts: 1319


aka "Lontano"


WWW
« Reply #2 on: July 15, 2007, 10: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!
Logged

Joachim Müller
Administrator
*****
Gender: Male
Germany Germany

Posts: 45051


aka "GauGau"


WWW
« Reply #3 on: February 11, 2008, 07: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.

* cpg1.4.x_plugin_opensearch_v1.1.zip (2.65 KB - downloaded 228 times.)
Logged
Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
Page created in 0.051 seconds with 17 queries.