forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 plugins => Topic started 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 ?
-
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
"<a href=\"javascript:;\" onclick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=$winsizeX,height=$winsizeY')\">"
and replace with
"<a href=\"{$CONFIG['fullpath']}{$CURRENT_PIC_DATA['filepath']}{$CURRENT_PIC_DATA['filename']}\">"
at both positions.
-
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.
-
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.
-
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...
-
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.