mandym Posted May 20, 2009 Share Posted May 20, 2009 I would like to restrict access to the contact form page only to users who are authenticated or logged in. Is this possible? Link to comment Share on other sites More sharing options...
Entcee Posted October 16, 2009 Share Posted October 16, 2009 I would be interested in this as well. Link to comment Share on other sites More sharing options...
KIH999 Posted October 17, 2009 Share Posted October 17, 2009 Are you sure you really want that?There are some cases existing customers can't log in, and want to contact you for help.Also questions BEFORE they want to register with real name and address. Link to comment Share on other sites More sharing options...
rocky Posted October 17, 2009 Share Posted October 17, 2009 I agree that it isn't a good idea, but if you insist on doing this, you can do it by modifying contact-form.tpl in your theme directory and adding the following to the top of the file: {if $logged} and something like the following to the bottom of the file: {else} You must log in before you can contact us. {/if} Link to comment Share on other sites More sharing options...
Entcee Posted October 17, 2009 Share Posted October 17, 2009 Thanks! For me, I will not be using it on the contact us page (I agree that it may not be a good idea).I am going to use this to make certain CMS pages viewable by registered users only. Link to comment Share on other sites More sharing options...
Recommended Posts