MrTheme Posted October 16, 2007 Share Posted October 16, 2007 (edited) OOPS! Wrong Forum. Sorry Mods. Alright so I am having a hell of a time trying to get a digital shop set up with limited contribs installed. All I want is a template shop. So secure downloads, fast checkout, Paypal IPN, and STS thats really all I need... I cant seem to get the downloads to go secure. I have attempted every DL contrib out there, no dice. Most of my issues (I thought) were centered around the mktime{} bug So I made an oh so sloppy fix for it... ____ This is a really sloppy fix for the mktime{} issue. It will work properly on a 7 day time scale. open includes/modules/downloads.php and admin/include/modules/downloads.php Find: $download_timestamp = mktime(23, 59, 59, $dt_month, $dt_day + $downloads['download_maxdays'], $dt_year); Replace with: $download_timestamp = mktime(23, 59, 59, $dt_month - 2, $dt_day + 16 + $downloads['download_maxdays'], $dt_year + 8); If you need to change your days you will have to adjust the line manually Heres the base (which will give you todays date) $download_timestamp = mktime(23, 59, 59, $dt_month - 2, $dt_day + 9 + $downloads['download_maxdays'], $dt_year + 8); Now lets say you want to give users 2 days to download the file. $dt_day + 11 + $downloads['download_maxdays'], Now if someone can just prevent users from going to checkout_success and downloading files we will be doing something. For now, this will at least give you the ability to allow downloads. ____ I am not sure of the security risks of doing this this way, but as it stands any buyer can just initiate an order, and go /checkout_success.php and, anctually be able to download this. Anyone actually have a pre-compiled osc bundle with these contribs already installed? ... and actually working? TIA, and hope the little workaround helps. Edited October 16, 2007 by MrTheme Quote Link to comment Share on other sites More sharing options...
azer Posted October 16, 2007 Share Posted October 16, 2007 thanks for your advice! i tried also many dowmnaload contribution and cant make a conclusion on wich one to use my shop would be software to download could you give us on your testing conlusions ? :rolleyes: Quote MS2 Link to comment Share on other sites More sharing options...
MrTheme Posted October 16, 2007 Author Share Posted October 16, 2007 I would be happy to do so. I am now going to do a test with the following oscommerce-2.2ms2-060817 (core) osCommerce PayPal IPN Module v1.0 For 2.2MS2 (AlexStudio) Super Download Shop v1.1 (AlexStudio) I will skip STS atm, just so I can focus on the contribs by AlexStudio. This way we can be sure there will be no conflicts. I should also mention that my previous attempts were on 2.2RC1, this was my mistake. The install will occur in this exact order and instructions will be followed to the T. Quote Link to comment Share on other sites More sharing options...
MrTheme Posted October 16, 2007 Author Share Posted October 16, 2007 Yeah, that was great. Simple to do when you are using the correct versioning. TY AlexStudio for your fine work! :-D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.