Advanced search  

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]

Pages: [1]   Go Down

Author Topic: File Information changes  (Read 3720 times)

0 Members and 1 Guest are viewing this topic.

soboyle

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
File Information changes
« 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?
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: File Information changes
« Reply #1 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:

Quote
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:

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
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: File Information changes
« Reply #2 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!
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.