Maian Script World on Facebook Maian Script World on Twitter Maian Script World - Latest News Maian Script World on YouTube Maian Script World on LinkedIn


Please Read

You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.

IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.

You are not logged in.

#1 15-01-2010 18:16:06

SunSpire
Members
Registered: 15-01-2010
Posts: 2

Download Link Expiry Problem

Hello!

I'm new to Maian Music but I really like what I see so far, you're one excellent coder David!

I've got it installed and running, took me some hours to get the paypal payment processing right but now it's all good!
Well, almost. I got one tiny problem ... On the download page each song link works only once, when I click it again it tells me the link has expired even when the limit is set to 3 or any other number in the admin panel. I thought that's a bit strange. When I hit "refresh" in the browser it changes the button graphic to "expired". The number for how many more times I can view the download page decreases by one, which is correct (I set it to 10) So the only thing not working is the download button expiry.

I've not found any other issues with the script, any ideas what might be the reason for this? I tried deleting cookies and changing expiry settings and different browsers and just kept re-buying the songs in sandbox mode, yet the error persists.

Thanks in advance for your help smile

"SunSpire"

Offline

#2 16-01-2010 07:31:09

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,126

Re: Download Link Expiry Problem

Hi there,

Thanks for your kind words. smile

Now this *might* be a bug, so you`ll probably have to wait until I revise the script. Thats about the best I can offer at the moment. Thanks for letting me know anyway.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#3 05-02-2010 14:14:52

SunSpire
Members
Registered: 15-01-2010
Posts: 2

Re: Download Link Expiry Problem

You're welcome! I got some spare time this weekend and will attempt a fresh install on my server and do some more testing. If the error happens again then I'll happily wait for your script revision. My album isn't finished yet so am not in a hurry to sell it tongue

"SunSpire"

Offline

#4 06-02-2010 06:31:47

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,126

Re: Download Link Expiry Problem

Ok, excellent. Well, I`m sure its an error, but let me know anyway.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#5 09-11-2010 21:05:50

davet
Members
Registered: 09-09-2010
Posts: 35

Re: Download Link Expiry Problem

Yep deffo a bug!

Any ideas how to fix this David? About 1 in 3 customers is getting "expired" messages no matter how high I set the page & file download limits.

Can the amount be hardcoded into the relevant script (index.php - I'm guessing) instead of relying on the settings panel? Maybe that's the problem?

Cheers,

D wink

Offline

#6 10-11-2010 13:05:08

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,126

Re: Download Link Expiry Problem

Hmm, wonder what that might be? Clearly some dodgy coding. lol.

Line 1209 in the main index file of the original installation has this:

if ($SETTINGS->page_expiry>0 && ($cartPurchase->visits>=$cartPurchase->download_times)) {
    include(PATH.'control/header.php');
    $tpl_error = new Savant2();
    $tpl_error->assign('ERROR_TEXT',$msg_checkout12);
    $tpl_error->assign('ERROR_MESSAGE',str_replace('{store}',cleanData($SETTINGS->website_name),$msg_checkout13));
    $tpl_error->display('templates/checkout/error.tpl.php');
    include(PATH.'control/footer.php');
    exit;
  }

Whip out that block and the check is removed.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#7 10-11-2010 17:11:52

davet
Members
Registered: 09-09-2010
Posts: 35

Re: Download Link Expiry Problem

Haha, so what happens if I do that then? Where do I set the default download limits?

Also, I take it that this doesn't affect the page visit's at all right?

Last edited by davet (10-11-2010 17:18:16)

Offline

#8 10-11-2010 17:28:48

davet
Members
Registered: 09-09-2010
Posts: 35

Re: Download Link Expiry Problem

Right just tried this out...

1) Removed the offending code as above wink

2) Bought something from the store

3) Page said I had 15 downloads & 15 visits left

4) The Page visits count went down after refreshing the page but after downloading the file for the first time the remaining download count didn't change.

5) Downloaded the file another 2 times

6) On the fourth attempt to download I got the expired error message (even though the count was still saying 15)

Offline

#9 12-11-2010 09:18:36

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,126

Re: Download Link Expiry Problem

Looks like there is some bug in there that needs sorting. I`ll take a look when I can.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#10 29-06-2011 17:17:39

hifly
Members
Registered: 09-10-2010
Posts: 8

Re: Download Link Expiry Problem

This is a big problem on my site. I have taken away the page expiry part from the code like suggested above and that's fine but the download count doesn't change and always allows only 3 downloads which is not enough to many of my customers since they might have problems with their connection and such. Is there any way to increase the allowed download count? Thanks.

Offline

#11 01-07-2011 09:59:22

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,126

Re: Download Link Expiry Problem

hifly wrote:

This is a big problem on my site. I have taken away the page expiry part from the code like suggested above and that's fine but the download count doesn't change and always allows only 3 downloads which is not enough to many of my customers since they might have problems with their connection and such. Is there any way to increase the allowed download count? Thanks.

Isn`t it in the settings?


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#12 22-07-2011 13:19:46

hifly
Members
Registered: 09-10-2010
Posts: 8

Re: Download Link Expiry Problem

msworld wrote:
hifly wrote:

This is a big problem on my site. I have taken away the page expiry part from the code like suggested above and that's fine but the download count doesn't change and always allows only 3 downloads which is not enough to many of my customers since they might have problems with their connection and such. Is there any way to increase the allowed download count? Thanks.

Isn`t it in the settings?

Sure it is but that does not work as described above by others as well.

Offline

#13 22-07-2011 21:31:27

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,126

Re: Download Link Expiry Problem

Sorry, not had chance to check this yet.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#14 28-10-2011 08:58:42

jiril
Members
Registered: 28-10-2011
Posts: 1

Re: Download Link Expiry Problem

Please resolve this issues as almost 1/2 of all my customers are unable to download their purchases due to downloads expiring. Any solution would be fine. Even a temporary one.

Last edited by jiril (28-10-2011 09:01:56)

Offline

#15 29-10-2011 07:20:03

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,126

Re: Download Link Expiry Problem

I tested it on my offline setup and couldn`t see any issues. Its still on my list of things to do.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

Board footer

2Checkout.com is an authorized reseller of goods and services provided by Maian Script World.© 2003-2013 David Ian Bennett. All Rights Reserved | Forum: FluxBB

Privacy Policy | Refund Policy