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: Remove link in the picture information.  (Read 3890 times)

0 Members and 1 Guest are viewing this topic.

Jaap

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Remove link in the picture information.
« on: January 01, 2004, 07:06:50 pm »

How can remove link in the picture information.

I have now....

Filename:
Album name:
File Size:
Dimensions:
Displayed:
URL:    I will remove this
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Remove link in the picture information.
« Reply #1 on: January 01, 2004, 07:39:06 pm »

In displayimage.php, look for this code (about line 275);
Code: [Select]
// Create the absolute URL for display in info
    $info['URL'] = '<a href=' . $CONFIG["ecards_more_pic_target"] . '/' . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . ' >' . $CONFIG["ecards_more_pic_target"] . '/' . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '</a>';


and comment it out with '//' like this;
Code: [Select]
// Create the absolute URL for display in info
   // $info['URL'] = '<a href=' . $CONFIG["ecards_more_pic_target"] . '/' . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . ' >' . $CONFIG["ecards_more_pic_target"] . '/' . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '</a>';
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 14 queries.