File info File info
 

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]

Main Menu

File info

Started by marecki, October 22, 2008, 03:04:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

marecki

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.


Nibbler

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>';
    }

Farnsi

Regards,
Farnsi

markp17

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'];