marcelg Posted June 24, 2008 Share Posted June 24, 2008 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 0 Quote Link to comment Share on other sites More sharing options...
Redundant Posted July 16, 2008 Share Posted July 16, 2008 Hello, Hoping this gets changed too. Anyone know a work around in the meantime? Thanks 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted July 16, 2008 Share Posted July 16, 2008 I'm no coder but can't you do it by adding {else} {fetch file='noaccess.tpl or noaccess.html'} {/if} Create the above file first with whateva content you wanna show. 0 Quote Link to comment Share on other sites More sharing options...
Redundant Posted July 16, 2008 Share Posted July 16, 2008 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. 0 Quote Link to comment Share on other sites More sharing options...
magga Posted July 17, 2008 Share Posted July 17, 2008 I think this should be changed too, it looks pretty bad on the blank page. 0 Quote Link to comment Share on other sites More sharing options...
Redundant Posted July 8, 2009 Share Posted July 8, 2009 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. 0 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.