coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: marecki on October 22, 2008, 03:04:24 PM

Title: File info
Post by: marecki on October 22, 2008, 03:04:24 PM
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.

Title: Re: File info
Post by: Nibbler on October 22, 2008, 03:33:48 PM
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&amp;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>';
    }
Title: Re: File info
Post by: Farnsi on October 22, 2008, 08:54:28 PM
This is the plugin:
http://forum.coppermine-gallery.net/index.php/topic,27407.0.html
Title: Re: File info
Post by: markp17 on February 12, 2009, 03:31:35 PM
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'];