My client wants the subscriber to click on a "I agree" button every time they login in. I've done this by removing the "refresh" meta tag in the header of the redirect.html file and added a dummy-button that links to {$url}. So far, this seems to work, though I hope there's a more elegant solution that actually utilizes PHP. However, I am now stuck with the subscriber having to click that same "I agree" button to exit the site after logging out. How do I redirect subscribers to seperate login/logout pages with different functions? Thanks.
1. Please keep original redirect.html back. 2. Edit file amember/templates/login.html add "i_agree" checkbox with value=1 into the login form. Then edit file amember/plugins/protect/php_include/check.inc.php and replace function _amember_check_access(){ to function _amember_check_access(){ if (!$_REQUEST['i_agree']) return "You must check 'I Agree' checkbox";
Thank you for the code. However, the subscriber can log in from either the /amember/templates/login.html page or the site's index.shtml page. How can I have the "I agree" button appear in the /amember/templates/redirect.html page? Secondly, how can I redirect the subscriber to an alternate /amember/templates/redirect.html page when they log out? Ex: login > display redirect_01 (w/"i agree" button) > protected folder logout > display redirect_02 ("thank you" message) > site's home page
redirect.html is used for many different goals, so it is bad idea to change it just for login. you may make changes to amember/plugins/protect/php_include/check.inc.php to accompilish your goals, but it requires some programming knowledge.
Thank you for the input. Unfortunately, programming is not my strength. I'll give it the ol' college try however if you point me in the right direction. Any specific resources you recommend?