forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: alainlizotte on June 19, 2013, 02:26:14 am

Title: Simple link Full size picture
Post by: alainlizotte 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 ?
Title: Re: Simple link Full size picture
Post by: Αndré 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.
Title: Re: Simple link Full size picture
Post by: alainlizotte 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.
Title: Re: Simple link Full size picture
Post by: Αndré 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.
Title: Re: Simple link Full size picture
Post by: alainlizotte 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...
Title: Re: Simple link Full size picture
Post by: Αndré 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.