Keywords add plugin for cpg1.5.x Keywords add plugin for cpg1.5.x
 

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

Main Menu

Keywords add plugin for cpg1.5.x

Started by Αndré, February 04, 2011, 12:06:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Αndré

This is the cpg1.5.x port of the keywords_add plugin by François Keller:
Quote from: François Keller on October 08, 2006, 08:19:47 PM
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)

Mimer

Danish languagefile for Keywords add plugin.

I've noticed this in the English languagefile line 22:
'config_title'    => 'Configure Final Extract', // Title of the button on the gallery config menu
I guess it should be:
'config_title'    => 'Configure Keywords Add', // Title of the button on the gallery config menu

François Keller

Thanks Mimer for your translation, i'll add this in the pack and will look at the "problem" in the english lang file...
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Deus

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
https://daz-stuff.uk
DJ tutorials, E-Bikes, Movies and videogames.
(https://daz-stuff.uk/daz/signature.png)

François Keller

QuoteIt'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  ;)
QuoteThis plugin allow to add  key words for the whole pictures of an selected album in one time.
The existing keywords are not deleted
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

roaftech

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.
.
Steve Humphreys,
Help, Hope and Co-operation,
Asociatia Neemia, Dorohoi, Romania.
www.roaf.org/gallery

Αndré

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.

roaftech

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,
.
Steve Humphreys,
Help, Hope and Co-operation,
Asociatia Neemia, Dorohoi, Romania.
www.roaf.org/gallery

Αndré

Quote from: roaftech on March 13, 2012, 08:23:44 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

alexis

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/

gmc

Quote from: 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.
...

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.)
         $keyword = $row['keywords'].$CONFIG['keyword_separator'].$superCage->post->getRaw('keyword');
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

Αndré

Quote from: gmc on December 13, 2016, 03:37:14 AM
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.)
         $keyword = $row['keywords'].$CONFIG['keyword_separator'].$superCage->post->getRaw('keyword');

Applied to version 1.4 (attached to initial post).