Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Duration of downloads … and … limit # of downloads :)
- This topic has 11 replies, 4 voices, and was last updated 14 years, 6 months ago by amin007.
-
AuthorPosts
-
June 1, 2010 at 5:19 pm #1293okgoodMember
Hello,
I have read in these forums that the latest version of this plugin does not limit the # of downloads, but that you are working on it. Any chance of giving us an ETA?
My REAL question is regarding the duration that one can set (in hours) for the download link to stay “active”. Is it possible to use a decimal, such as 0.5 to have the download link work for only 30 minutes?
Thanks …
June 2, 2010 at 12:05 am #21145IvyMemberHi. The feature to limit downloads by number of downloads has already been added to the eStore. As for limiting the link expiration to 1/2 hour (.5)using a decimal this will not work. You need to use whole hour values (e.g. 1 hour, 2 hours and so on). If you would like an update with the new feature please see the following post on how updates are handled: https://support.tipsandtricks-hq.com/forums/topic/how-and-when-do-you-get-an-update
Cheers,
Ivy
June 2, 2010 at 9:20 pm #21146okgoodMemberGreat. I have submitted my request for the update using the provided form. Thanks for all the support. I will change the duration back to 1 until I receive the update.
June 3, 2010 at 11:11 pm #21147okgoodMemberThe update installed OK and I set the # of download limit to 1, but it doesn’t seem to work. Is it dependent on my IP address or does it “simply” count the # of downloads. If the latter, then something is wrong because I was able to download the product from both my thank you page and the email I received (as the mock buyer). I also forwarded the email to another address I use and I could download it from there too (exactly what I want to avoid). Please help …
June 4, 2010 at 12:41 am #21148wpCommerceModeratorIt doesn’t depend on the IP address, It only counts the number of downloads that you specified on your “General settings” of the WP eStore plugin. There must have been something wrong.
June 4, 2010 at 12:59 am #21149amin007ParticipantFirst, test this out by generating a link from the “Admin Functions” menu and make sure the download limit works for each link.
So, create a link when the download limit is set to 1 or 2 then try to use the link more than the specified time and let me know what you see.
June 4, 2010 at 8:26 am #21150okgoodMemberTested link generated from Admin Functions, but link is able to be downloaded more than once. My settings are 1 hour and 1 time download.
I checked my settings again and I realized that I have moved the Download Validation Script Location to a new folder. I checked the UPDATE download.php and saw that is now calls an extra file (eStore_db_access.php) so I have moved this file to my new folder as well. So now I have 3 files in my new folder (download.php, eStore_classes.php and eStore_db_access.php). This folder is the folder that is set in my settings as the Download Validation Script Location. I have also changed the line in the download.php file to make sure it’s calling my wp_load.php from the right location (per instructions I saw elsewhere).
I think the TIME limit works (because I tested this yesterday). I have it set to 1 hour (which I understand is the minimum), but the # of downloads limit does NOT seem to be working.
Perhaps my settings are wrong since I have moved some files around??? The only other thing I have done is delete the htaccess files since my server won’t allow the download at all if I have these in the folder.
June 4, 2010 at 8:36 am #21151okgoodMemberI changed the Download Validation Script Location back to the original one and re-tested, but it also allows more than 1 download.
So, I don’t think it’s my settings, but of course I have been known to be wrong (from time to time).
June 4, 2010 at 10:48 am #21152amin007ParticipantI cannot troubleshoot an issue when you have modified the code.
I will make sure that this option works for you but you have to load a fresh copy of the WP eStore plugin and let me know how that goes. If it still doesn’t work then let me know and I will jump on your server and check it out.
June 4, 2010 at 3:07 pm #21153okgoodMemberUnderstood …
I have re-uploaded the UPGRADE overwriting whatever was there, de-activated and then activated the plugin, deleted the htaccess files (because my server won’t allow the download with these two files in the download folder) … AND the # of downloads still is more than just 1.
What’s the next step?
June 4, 2010 at 4:31 pm #21154IvyMemberHi, I will send you an email with the site access request. This way we can have a look at your server.
Cheers,
Ivy
June 5, 2010 at 2:35 am #21155amin007ParticipantI tested this on your server and seems to work fine.
When you tested it out.. did you download the full file or did you just start the download and cancel it and then tried again?
Remember, a full download is counted if you have downloaded the file successfully. This is to prevent people from being locked out because they mistakenly canceled the download or there was an unexpected error.
-
AuthorPosts
- You must be logged in to reply to this topic.