I want to modify file info for image display.
Because I want to display file info every time for displayimage.php I've removed button "Display/Hide file information". Next I need to modify file info. And here are the stairs...
Standard file info:
File information
Filename: 6.jpg
Album name: user / album name
Keywords: some keywords photo gallery (each keyword is linked to search.php?...)
File Size: 20 KB
Date added: Dec 04, 2006
Dimensions: 522 x 800 pixels
Displayed: 179 times
URL: http://www...
Favorites: Add to Favor
What I need:
File information
Album name: album name
Image title: image title
Keywords: some keywords photo gallery (plain text, without linking to search.php?...)
Date added: Dec 04, 2006
URL: http://www....
Favorites: Add to Favor
In standard each keyword is linked to search.php?... but I need simple plain text.
There's a plugin you can use to change what is displayed there, and removing the link is an easy mod to displayimage.php
if ($CURRENT_PIC_DATA['keywords'] != "") {
$info[$lang_picinfo['Keywords']] = '<span class="alblink">' . preg_replace("/(\S+)/", "<a href=\"thumbnails.php?album=search&search=\\1\">\\1</a>" , $CURRENT_PIC_DATA['keywords']) . '</span>';
}
Change to
if ($CURRENT_PIC_DATA['keywords'] != "") {
$info[$lang_picinfo['Keywords']] = '<span class="alblink">' . $CURRENT_PIC_DATA['keywords'] . '</span>';
}
This is the plugin:
http://forum.coppermine-gallery.net/index.php/topic,27407.0.html
so if you wanted to expand on this to say remvoe the url of the file would you simply comment out the following?
$path_to_pic = $CONFIG['fullpath'] . $CURRENT_PIC_DATA['filepath'] . $CURRENT_PIC_DATA['filename'];