I copy / pasted login form code from login.tpl, but this code doesn't redirect BACKTO downloads.php page. Might you have any advice to share?
I'm using six theme, and I read over this post: https://forum.whmcs.com/showthread.php?7738-Required-login-to-access-Downloads
It helped, so far, but maybe there is cleaner approach? A thing I noticed is that this only prevents downloads.php but not the specific category pages or anything... https://domain.com/downloads.php/1/XYZ?action=displaycat&catid=1
I open up the downloads.php file but that is encoded. Normally, I would just edit the .php file at root, and uncomment the code after $ca->initPage();
//$ca->requireLogin(); // Uncomment this line to require a login to access this page
Thanks for your time and good luck,
source #1 http://stackoverflow.com/questions/3303675/how-to-make-an-input-type-button-act-like-a-hyperlink-and-redirect-using-a-get-r