martyn4000 Posted February 7, 2007 Share Posted February 7, 2007 hi i need a contribution to make it so when someone comes to my site thay have to ogin or create an account before they can enter i also need it that when they create an account i have to verify before they can sign in Link to comment Share on other sites More sharing options...
Guest Posted February 7, 2007 Share Posted February 7, 2007 I think that wasnt even a contribution because it's a very simple mod in the application_top.php There was a thread somewhere I think it was the tips and tricks forum but basically you check if the customer_id session is on and if not you redirect them to the login page. This should work regardless of page. In other words in your application_top.php after the sessions are initialized you do. if(!tep_session_is_registered('customer_id') && basename($PHP_SELF) != FILENAME_LOGIN) { tep_redirect(tep_href_link(FILENAME_LOGIN)); } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.