No Support => General discussion (no support!) => Topic started by: soboyle on October 08, 2005, 10:51:19 pm

Title: File Information changes
Post by: soboyle on October 08, 2005, 10:51:19 pm
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?
Title: Re: File Information changes
Post by: artistsinhawaii on October 08, 2005, 11:38:54 pm
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:

if (!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:

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

Title: Re: File Information changes
Post by: Joachim Müller on October 10, 2005, 07:55:11 am
@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!