Forum Replies Created
-
AuthorPosts
-
October 24, 2012 at 3:14 pm in reply to: Why Configure Every Product Separately When Used with NextGen Gallery #18637btriversMember
Yes, I believe I uploaded the images separately to a different folder.
(Just received an personal email query regarding this – my response is below.)
In fact this solution is no longer in use for my client and I have to admit my memory is fuzzy, but I believe that I uploaded the high-res / purchasable version of the images to a protected directory that I was able to specify in the plugin settings. Then I uploaded a watermarked/smaller version of the images with the same names for use with the gallery thumbnails. So the watermarked/small version is used for the gallery where anyone can download it, but a purchaser is able to download the full high-res version they paid for. So that works nicely.
October 18, 2011 at 3:48 pm in reply to: Why Configure Every Product Separately When Used with NextGen Gallery #18635btriversMemberGreat plugin! I’m using [nggallery id=1 template=wp-eStore-auto-addtocart] but I wanted to keep the purchased version of my photos secure, but still use the NextGen gallery “auto” method of selling the photos. Of course this wasn’t the case because as you state at the beginning of this thread the photo that is viewed in the NextGen gallery when the thumbnail is clicked, is the same that is made downloadable by eStore.
So I searched through the code and made the following changes so that the Digital Product URL specified in the Product ID used as the template is prepended to the NextGen filename and this becomes the full product download url.
a) eStore_post_payment_processing_helper.php – Copied the eStore_get_ngg_image_url function and created a new function called eStore_get_ngg_image_url2($pictureID,$item_name,$product_download_url) that builds the image url using:
$imageUrl = $product_download_url . $image->filename;
b) paypal.php – Changed to use new function:
$download_link = eStore_get_ngg_image_url2($pictureID,$cart_item_data_name,$retrieved_product->product_download_url);
I hope this helps out. Would be great to have this option built in to the plugin.
Thanks again,
Brad
-
AuthorPosts