Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Add keywords/description for all images in an album at once  (Read 3964 times)

0 Members and 1 Guest are viewing this topic.

Garibaldi

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Wisconsin Collector Car
Add keywords/description for all images in an album at once
« on: November 19, 2006, 10:02:16 pm »

I have a very large gallery and when I create a new album for each car show I upload between 100-200 photos each time. I don't want to go through and input the keywords for each individual photo because obviously it would be a very time consuming process. Is there a modification I can make that would allow me to input keywords and description for every image in an album so that it will be indexed by google?
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Add keywords/description for all images in an album at once
« Reply #1 on: November 19, 2006, 10:04:56 pm »

You might want to search a little harder on the board.

This might be what you are looking for.

http://forum.coppermine-gallery.net/index.php?topic=37103.0

Cheers!
Hein
Logged

Garibaldi

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Wisconsin Collector Car
Re: Add keywords/description for all images in an album at once
« Reply #2 on: November 19, 2006, 10:07:48 pm »

You might want to search a little harder on the board.

This might be what you are looking for.

http://forum.coppermine-gallery.net/index.php?topic=37103.0

Cheers!
Hein
Thanks, I had looked through the plugins forum and downloaded the packages but somehow I missed this one! DOH
Logged

Garibaldi

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Wisconsin Collector Car
Re: Add keywords/description for all images in an album at once
« Reply #3 on: November 19, 2006, 10:18:38 pm »

Also what about something for updating all the descriptions in the same way?
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9096
  • aka Frantz
    • Ma galerie
Re: Add keywords/description for all images in an album at once
« Reply #4 on: November 19, 2006, 10:49:30 pm »

Quote
Also what about something for updating all the descriptions in the same way?
plugin code must be modified. Feel free to do it  ;)
It can be in the future new version of this plugin
« Last Edit: November 20, 2006, 07:23:13 am by Frantz »
Logged
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

Garibaldi

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Wisconsin Collector Car
Re: Add keywords/description for all images in an album at once
« Reply #5 on: November 20, 2006, 03:30:43 am »

I found a topic about how to edit the alt links for the images so that the alt link will contain the keywords.. but this only works for 1.3.x. What would I need to find/replace in 1.4.x? Also can this be applied to both the thumb and intermediate images?
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Add keywords/description for all images in an album at once
« Reply #6 on: November 20, 2006, 05:49:35 am »

You are free to port 1.3.x MODs to 1.4.x but don't ask how
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

Garibaldi

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Wisconsin Collector Car
Re: Add keywords/description for all images in an album at once
« Reply #8 on: November 21, 2006, 03:16:36 am »

I would be glad to write a 1.4.x version of this mod but in order to do that I need to understand how a small aspect of th 1.3.x code has been changed in the 1.4.x version. Am I permitted to ask about this? The original 1.3.x MOD changes something with the variable "$pic_html" in the displayimage.php file. However, in the 1.4.x version of this file does not contain any instances of "$pic_html". Could I ask what the current code is that generates the image information?

The code for the 1.3.x MOD was:
Quote
$pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$CURRENT_PIC_DATA['keywords']}\" /><br />";

I attempted to add the "{$CURRENT_PIC_DATA['keywords']}" in line 127 of displayimage.php for 1.4.x as such:
Quote
$info[sprintf($lang_picinfo['Rating'], $CURRENT_PIC_DATA['votes'])] = '<img src="' . $prefix . 'images/rating' . round($CURRENT_PIC_DATA['pic_rating'] / 2000) . '.gif" align="middle" alt=\"{$CURRENT_PIC_DATA['keywords']}\" />'.$detailsLink;
But then my gallery returns this error:
Quote
Parse error: syntax error, unexpected T_STRING in /xxxx/wiscollectorcar.com/coppermine/cpg132/displayimage.php on line 127

Thanks
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Add keywords/description for all images in an album at once
« Reply #9 on: November 21, 2006, 05:30:24 am »

A lot of code that used to reside in displayimage.php now resides in themes/yourtheme/theme.php. Use themes/sample/theme.php for reference. As suggested, we don't ask questions related to porting outdated mods. If you need the mod badly, look into the code. Use your desktop search, searching for *.php files that contain the string you're looking for.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.