forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Garibaldi 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?
-
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 (http://forum.coppermine-gallery.net/index.php?topic=37103.0)
Cheers!
Hein
-
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 (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
-
Also what about something for updating all the descriptions in the same way?
-
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
-
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?
-
You are free to port 1.3.x MODs to 1.4.x but don't ask how
-
http://forum.coppermine-gallery.net/index.php?topic=24540.0
-
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:
$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:
$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:
Parse error: syntax error, unexpected T_STRING in /xxxx/wiscollectorcar.com/coppermine/cpg132/displayimage.php on line 127
Thanks
-
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.