I apologize for chiming in in the other thread, this seemed closely related to the topics I saw being discussed there.
Here is my issue:
I need to force the download of the original high res image. I have already installed and configured NextGen 2.0, and have tried several approaches to creating a download link.
So far, the closest I’ve come to making this work the way I’d like is by using a force-download.php in the root, and editing the nextgen_pro_thumbnail_grid.php file manually. This is a poor solution in two ways: it will be destroyed if I upgrade the plugin, and it exposes the force-download.php script to malicious users.
Since NextGen 2.0 doesn’t come equipped to handle templates for pro features, I’m having trouble implementing this in an updatable way.
I tried several other plugins as well including Force Download Shortcode and Force Images Download. Neither worked correctly out of the box with my situation.
So, I found your plugin, and like what it’s potential, but I can not implement it because NextGen doesn’t handle templates for the pro albums and galleries.
Is there a way to work around this? can I call the forced download from the php in nextgen_pro_thumbnail_grid.php? I realize this is only half a solution since I won’t be able to update the plugin, but I’m under the gun and need a solution as soon as possible to keep my client sane.
The two pieces of code I had tried out in the php were:
<a href="<?php echo esc_attr($storage->get_image_url($image))?>" class="forceDownload">Download</a>(called the forced download, but resulted in the homepage instead of the file)
<a href=" <?php home_url(); ?> /force-download.php?file=<?php echo esc_attr($storage->get_image_url($image))?> ">Download</a>(called the exposed php file, but the php didn’t expect a full image url with http: so it failed.. could be fixed easily, but still poses a security risk)
It would be great to be able to do something similar, until nextgen includes template capability for pro albums, or until there is a better solution.
- The topic ‘Linking to high res images using NextGen 2.0 pro albums’ is closed to new replies.