forum.coppermine-gallery.net

Support => cpg1.5 plugins => cpg1.5.x Support => cpg1.5 plugin contributions => Topic started by: Αndré on February 04, 2011, 12:06:46 pm

Title: Keywords add plugin for cpg1.5.x
Post by: Αndré on February 04, 2011, 12:06:46 pm
This is the cpg1.5.x port of the keywords_add plugin by François Keller:
This plugin allow to add  key words for the whole pictures of an selected album in one time.
The existing keywords are not deleted
If you use Custom fields for image description, you will be able also to modify them.
For this fields, the new value replace the old if he exist. Leave blank for no change.
English and French language files are avaible. Feel free to translate in other language.
Install the plugin from the Coppermine plugin manager (on config page). A new keyword add button appears on admin menu. Click it to use the plugin.

Italian language file added (thank's Lontano)
Dutch language file added (Thank's Hein)
English language file corrected (Thank' Hein for bug report)
German language file corrected (Thank's AlexL and nointerest)
Turkish language file addes (Thank's Mywedding)


Danish lang file added to the SVN (Thanks Mimer)
Title: Re: Keywords add plugin for cpg1.5.x
Post by: Mimer on March 05, 2011, 12:30:28 am
Danish languagefile for Keywords add plugin.

I've noticed this in the English languagefile line 22:
Code: [Select]
'config_title'    => 'Configure Final Extract', // Title of the button on the gallery config menuI guess it should be:
Code: [Select]
'config_title'    => 'Configure Keywords Add', // Title of the button on the gallery config menu
Title: Re: Keywords add plugin for cpg1.5.x
Post by: François Keller on March 05, 2011, 09:17:14 am
Thanks Mimer for your translation, i'll add this in the pack and will look at the "problem" in the english lang file...
Title: Re: Keywords add plugin for cpg1.5.x
Post by: Deus on July 11, 2011, 05:00:00 pm
It's a great plugin, but it doesn't remove the old keywords, it just adds to the existing keywords.
The Title and Description however do change.

http://www.mess-hall.co.uk/gallery/thumbnails.php?album=88
Title: Re: Keywords add plugin for cpg1.5.x
Post by: François Keller on July 12, 2011, 07:23:22 am
Quote
It's a great plugin, but it doesn't remove the old keywords, it just adds to the existing keywords.

as explain in the plugin description  ;)
Quote
This plugin allow to add  key words for the whole pictures of an selected album in one time.
The existing keywords are not deleted
Title: Re: Keywords add plugin for cpg1.5.x
Post by: roaftech on March 13, 2012, 10:14:52 am
I have just installed and used this plug-in, and wanted to say how useful it has proved to be. It has saved me a lot of time - many thanks to those responsible.

Just one point - it selects an album by default, and if you don't notice this it could change a lot of info in error. Would it better not to have a default album (like the batch upload procedure), to ensure that users do select the correct one.
Title: Re: Keywords add plugin for cpg1.5.x
Post by: Αndré on March 13, 2012, 10:40:44 am
Version 1.3 attached to initial post. It doesn't select an album by default and returns an error message if no album has been selected.
Title: Re: Keywords add plugin for cpg1.5.x
Post by: roaftech on March 13, 2012, 08:23:44 pm
Thanks for the prompt response!
I have downloaded and installed the new version, and await the opportunity to try it in the next couple of days.

I did make a small change to the English language file, which you might like to consider:
  'caution'         => 'Caution: Information which is already entered into the title, description and user fields will be replaced by the new words. <br>Leave fields blank to avoid changing existing content.',

Best wishes,
Title: Re: Keywords add plugin for cpg1.5.x
Post by: Αndré on March 14, 2012, 12:00:11 pm
  'caution'         => 'Caution: Information which is already entered into the title, description and user fields will be replaced by the new words. <br>Leave fields blank to avoid changing existing content.',

This seems to be wrong, see http://forum.coppermine-gallery.net/index.php/topic,70360.msg352069.html#msg352069
Title: Re: Keywords add plugin for cpg1.5.x
Post by: alexis on December 11, 2016, 11:41:56 pm
I installed v1.3 of the plugin. It works great, but uses a space as a keyword separator and I am using semicolon.

I changed this line in the plugin_config.php file:

         $keyword = $row['keywords']." ".$superCage->post->getRaw('keyword');

to

         $keyword = $row['keywords'].";".$superCage->post->getRaw('keyword');

... and it works great.


http://www.tfahouston.com/cmtgarchivecat/
Title: Re: Keywords add plugin for cpg1.5.x
Post by: gmc on December 13, 2016, 03:37:14 am
I installed v1.3 of the plugin. It works great, but uses a space as a keyword separator and I am using semicolon.

I changed this line in the plugin_config.php file:
         $keyword = $row['keywords']." ".$superCage->post->getRaw('keyword');
to
         $keyword = $row['keywords'].";".$superCage->post->getRaw('keyword');
... and it works great.
...

I'd suggest the following which will use the config defined separator and should work for everyone...
(CPG used space as the default thru 1.4 - and maintained that for upgrades of older installs - and semicolon in 1.5 and later.)
Code: [Select]
         $keyword = $row['keywords'].$CONFIG['keyword_separator'].$superCage->post->getRaw('keyword');
Title: Re: Re: Keywords add plugin for cpg1.5.x
Post by: Αndré on June 30, 2017, 02:34:15 pm
I'd suggest the following which will use the config defined separator and should work for everyone...
(CPG used space as the default thru 1.4 - and maintained that for upgrades of older installs - and semicolon in 1.5 and later.)
Code: [Select]
         $keyword = $row['keywords'].$CONFIG['keyword_separator'].$superCage->post->getRaw('keyword');

Applied to version 1.4 (attached to initial post).