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 On Intermediate Pictures  (Read 2124 times)

0 Members and 1 Guest are viewing this topic.

EGeekBMe

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Remove Link On Intermediate Pictures
« on: August 02, 2006, 12:11:35 am »

Hello All.

I would like to remove the link TO the Full Size Picture FROM the intermediate picture.  I typically batch upload all my pictures and then let the app resize them into the intermediate versions.  Then I delete the full size pictures to save the space and ultimately the bandwidth.

My host had CPG 1.2.1 and I was able to comment out the following line in displayimage.php and the link no longer appeared:

Code: [Select]
$pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1',
'" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";

I have upgraded to 1.4.8 and the code has changed so much I cannot figure out when to make the necessary change to accomplish this.

Please advise.
Thanks!
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Remove Link On Intermediate Pictures
« Reply #1 on: August 02, 2006, 07:20:49 am »

Copy theme_html_picture() function from themes/sample/theme.php to your theme (if you don't have it already) and change the $pic_html the way you want
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Remove Link On Intermediate Pictures
« Reply #2 on: August 02, 2006, 07:21:16 am »

Go to admin tools, check "Delete original size photos (1)", choose your album (you could select all albums), submit.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.