File Information changes File Information changes
 

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 Information changes

Started by soboyle, October 08, 2005, 10:51:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

soboyle

Can anyone walk me through a change to file information?
What I would like to do is change the name of favorites that is displayed in file information to LightBox and change the link from Add to Favorites to Add to LightBox.
Also would like to move that line to the top of the File Info table, and make the text a bit larger.
Are these changes relatively easy?

artistsinhawaii

Next time, please adhere to the one question per post rule of this forum.

Your lightbox question has been answered many times, please search for "lightbox" in the forum.

As far as moving the "Add to my favorites" field up.

Open displayimage.php

search for:

Quoteif (!in_array($CURRENT_PIC_DATA['pid'], $FAVPICS)) {
        $info[$lang_picinfo['addFavPhrase']] = "<a href=\"addfav.php?pid=" . $CURRENT_PIC_DATA['pid'] . "\">" . $lang_picinfo['addFav'] . '</a>';
    } else {
        $info[$lang_picinfo['addFavPhrase']] = "<a href=\"addfav.php?pid=" . $CURRENT_PIC_DATA['pid'] . "\">" . $lang_picinfo['remFav'] . '</a>';
    }

Cut that entire section out and then paste it further up in that block of code just under:

Quote    if ($CURRENT_PIC_DATA['owner_id'] && $CURRENT_PIC_DATA['owner_name']) {
        $owner_link = '<a href ="profile.php?uid=' . $CURRENT_PIC_DATA['owner_id'] . '">' . $CURRENT_PIC_DATA['owner_name'] . '</a> ';
    } else {
        $owner_link = '';
    }

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Joachim Müller

@soboyle: post a link to your site, a moderator will then move your question to the support board that corresponds to your coppermine version where you should have posted your question in the first place. Posting it on the sub-board General discussion (no support!) is not a bright idea. Respect the board rules in the future!