Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › APR short code settings and Link Expiry
- This topic has 8 replies, 4 voices, and was last updated 12 years, 10 months ago by wzp.
-
AuthorPosts
-
January 7, 2012 at 12:26 am #5207hghorbanianMember
Hi,
For some reason the Encrypted link still works after the Expiration.
I need to setup the encrypted link to be valid for 30 days AND only works up to 4 times when someone clicks on it. Also, the APR short code I am using is
[wp_eStore_APR expiry=0 status=unexpired]
“my payperview video streaming embed code”
[/wp_eStore_APR]
-Is the expiry setting work -> Either # of hour OR # of clicks?
-Should I use or change some settings in the APR short code?
Considering the fact that the link works on other users browsers if I send the email containing the link to anyone else. I have tried it and that is the case. Then it is essential to set a limitation for my payperview channel http://parastoofilm.com
Thanks
Hessam
January 7, 2012 at 2:49 am #40484PeterMemberHi,
You can set download limit and link duration here:
WP eStore->Settings->General Settings->Digital Product Delivery Settings
Also you can specify the age of the cookie of your subscriber in your shortcode as follows:
[wp_eStore_APR expiry=N status=unexpired]
//Place the content that you want to protect here.
//The content inside this shortcode tags are only visible to customers who make a payment and click on the encrypted link given to them.
[/wp_eStore_APR]
where N = number of minutes
January 7, 2012 at 5:54 am #40485hghorbanianMemberThanks Peter, I changed the number to N=1 and it works. after the expiry attempt of four time I got an ‘ugly’ looking error message page with blue background on my browser saying:
“The secure download manager ran into a problem that it couldn’t handle, and is unable to process your download request.
The problem was due to the following reason:
The download link (see browser address bar) has been used too many times. If you think this reason is in error, please contact the site administrator.”
How can I change the look and the text of this message? Ideally I would like the message text to be in a post or page of my website’s theme.
Thanks
Hessam
January 7, 2012 at 12:16 pm #40486adminKeymasterThat error is only visible to users who are trying to access your download outside of the allowed time frame. It is not something your valid customers will see on a regular basis. If you still want to customize it you can open the “download.php” file from the eStore plugin and change it.
January 7, 2012 at 11:42 pm #40487hghorbanianMemberThanks Admin,
I believe you are referring to the localization at the beginning of the file, right? Is there any other changes anywhere else i should do?
I understand that this message is not occurring often. Based on your answer, I am assuming there is NOT any setting in this file that I can change (without much coding) so it will redirect it to a specific URL i.e a page or post on my website, right?
Also, is it possible to change the file name from ‘download’ to something else without causing and problem whatsoever. I only provide video streaming to my customers, there is nothing that they would download from my website.
Thanks
Hessam
January 8, 2012 at 1:27 am #40488wzpModeratorYes, the localizations are all that is required, to change the text messages. Please do not change anything past that point, unless you are knowledgeable about PHP programming.
All of the above requests, for redirection and renaming, can be done by a competent PHP programmer.
***** HOWEVER *****
It is beyond the scope & resources of the support forum to provide the coding assistance required.
January 8, 2012 at 5:04 pm #40489hghorbanianMemberThanks WZP.
Yes, I understand it, changes in localization is good enough for me for now.
What about changing the file name ‘download.php’ to ‘payperview.php’ or something else, as I explained the reason for it above. How can this be done?
Hessam
January 8, 2012 at 6:08 pm #40490wzpModeratorI don’t have the code in front of me, but yes, it can be done. At a minimum, YOU would have to locate the section of code that creates the download link, and change it to the desired name. If you are using custom download validation script locations, then the custom script would also need to be modified. There is also one more place, in the settings menu that must be changed, to keep the plugin from giving you an erroneous error message.
If I find time this afternoon (GMT –, I will post the locations that you must edit.
January 9, 2012 at 2:53 am #40491wzpModeratorHere is what you must change in order to use a file name besides “download.php” as the name of the download script…
***** WARNING — RUNNING WITH SCISSORS AHEAD — WARNING *****
NO WARRANTIES ARE IMPLIED OR OTHERWISE OFFERED. THESE CHANGES ***HAVE NOT*** BEEN TESTED IN A PRODUCTION ENVIRONMENT. YOU MAKE THESE CHANGES SOLELY AT YOUR OWN RISK. YOU ARE ENTIRELY RESPONSIBLE FOR ENSURING THAT YOU HAVE MADE ADEQUATE BACKUP PREPERATIONS, IN THE EVENT YOU MUST FALL BACK ONTO THE ORIGINAL PRODUCT CODE. IN THE EVENT OF A CATASTROPHIC FAILURE, YOUR ONLY RECOURSE SHALL BE TO RESTORE THE PLUGIN BACK TO ITS ORIGINAL CONDITION, USING THE LATEST RELEASE VERSION. (DID WE SCARE YOU ENOUGH YET?)
***** WARNING — RUNNING WITH SCISSORS AHEAD — WARNING *****
Search for, and change the following text:
$script_location.’download.php?file=’.$download_key;
From download.php to whatever name you want, in the following files:
(1x) eStore_includes2.php
(3x) eStore_includes3.php
(7x) eStore_post_payment_processing_helper.php
The above changes affect the actual link generation.
Next, search for and change the following text:
$dl_script_file_path = $eStore_download_script.’download.php’;
From download.php to whatever name you want, in the following file:
(1x) wp_digi_cart_admin_menu.php
Then, search for and change the following text:
if(!file_exists(‘../wp-content/plugins/wp-cart-for-digital-products/download.php’)) {
From download.php to whatever name you want, in the following file:
(1x) wp_digi_cart_admin_menu.php
The above changes affect error checking in the settings menu.
Finally, if you are using the custom download validation script feature…
Search for, and change the following text:
if(@file_exists(‘download.php’) === FALSE) {
From download.php to whatever name you want, in the following file:
view/custom_download.php
Then, search for and change the following text:
require_once(‘download.php’);
From download.php to whatever name you want, in the following file:
view/custom_download.php
The above changes affect the ability of the custom download validation script to properly link to the renamed download.php file.
-
AuthorPosts
- You must be logged in to reply to this topic.