Simple link Full size picture Simple link Full size picture
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Simple link Full size picture

Started by alainlizotte, June 19, 2013, 02:26:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alainlizotte

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

Αndré

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&amp;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.

alainlizotte

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.

Αndré

Quote from: alainlizotte on August 21, 2013, 12:01:53 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.

alainlizotte

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...

Αndré

Please
Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
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.