Jump to content

[NOT A BUG] Downloads Page


Recommended Posts

A user who is not logged in and tries to download a file that requires login will be brought to a page that only displays the text:

 

Access Denied - You must be logged in to download this file

 

This should not bring the user to a blank page with the above text by itself. It essentially re-directs the user away from my web site (from the user's perspective).

 

The "Access Denied" message should be displayed within the WHMCS template so it does not look like the user has left the site. It also looks unprofessional.

 

I know it's a little thing, but still, I hope this one gets fixed in the next update :)

 

Marcel

Link to comment
Share on other sites

  • 4 weeks later...

Not sure on the Non-Logged in issue. A similar issue occurs when a Client has Paid, and their invoice is marked paid, but the transaction is in Pending Status in the WHMCS Admin. Client will get a "Access Denied - You must first pay for this file before downloading" or something to that effect. Error is displayed in the same fashion the OP describes for the logged in Access Denied message. For this issue, it happens after clicking the hyperlink created by the {$download.link} which is in clientareaproductdetails.tpl. So not sure how to trap that one with your suggestion.

Link to comment
Share on other sites

  • 11 months later...

Hey there

 

you can change the .tpl to something like (not sure of actual variable name):

 

{if $service.status = "Active"}

{* Put Button Here *}

{else}

{* disabled button *}

{/if}

 

Also, since version 4, WHMCS folks added an Auto-Release Module which can be used with your downloads. With credit card payments, this essentially eliminates this problem unless a C/C payment doesn't pass validation. In which case, the above work-around would disable the View Details button.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated