Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Simple link Full size picture  (Read 8891 times)

0 Members and 1 Guest are viewing this topic.

alainlizotte

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Simple link Full size picture
« on: June 19, 2013, 02:26:14 am »

Is there a way to replace the Javascript command with a simple direct URL link for the full size picture ?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15479
Re: Simple link Full size picture
« Reply #1 on: August 21, 2013, 10:53:50 am »

I assume you're talking about the link at the intermediate-sized view (depending on your setup, it's also possible to open the full-sized picture from other pages).

Copy the function theme_html_picture from themes/sample/theme.php to your theme's theme.php file if it doesn't exist. Then, find
Code: [Select]
"<a href=\"javascript:;\" onclick=\"MM_openBrWindow('displayimage.php?pid=$pid&amp;fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=$winsizeX,height=$winsizeY')\">"and replace with
Code: [Select]
"<a href=\"{$CONFIG['fullpath']}{$CURRENT_PIC_DATA['filepath']}{$CURRENT_PIC_DATA['filename']}\">"at both positions.
Logged

alainlizotte

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Simple link Full size picture
« Reply #2 on: August 21, 2013, 12:01:53 pm »

Thank you.

That is exactly what I want. But it doesn't make any change.

I'm using the curve_red2black theme.

I added the fonction to the theme.php and replace the line that you said.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15479
Re: Simple link Full size picture
« Reply #3 on: August 21, 2013, 12:07:34 pm »

replace the line that you said.
Make sure that you replace it at both positions, not just once. Please also post a link to your gallery if it still won't work.
Logged

alainlizotte

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Simple link Full size picture
« Reply #4 on: August 21, 2013, 09:52:37 pm »

That's perfect. It's working fine now.

I didn't understand well that there were this line 2 times in the same file.

Thank you :)

http://www.lemordudurc.com/photos/index.php


I can now try to add the Fancybox effect...
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15479
Re: Simple link Full size picture
« Reply #5 on: August 21, 2013, 09:57:26 pm »

Please
tag your thread as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 21 queries.