Unholy Prayer Posted April 11, 2007 Share Posted April 11, 2007 i've seen on alot of forums, such as PHPbb2, that in their template files, they use lines such as <!-- BEGIN switch_user_logged_out --> I was wondering if you use functions to do that and if so, how? Quote Link to comment https://forums.phpfreaks.com/topic/46524-functions/ Share on other sites More sharing options...
utexas_pjm Posted April 11, 2007 Share Posted April 11, 2007 Those are html comments. Quote Link to comment https://forums.phpfreaks.com/topic/46524-functions/#findComment-226444 Share on other sites More sharing options...
Unholy Prayer Posted April 11, 2007 Author Share Posted April 11, 2007 yeah but how do they switch from the user is logged in to the user is logged out without a php code? that's the only thing i see. Quote Link to comment https://forums.phpfreaks.com/topic/46524-functions/#findComment-226446 Share on other sites More sharing options...
utexas_pjm Posted April 11, 2007 Share Posted April 11, 2007 I'm assuming the PHP generates the comments at some point. Quote Link to comment https://forums.phpfreaks.com/topic/46524-functions/#findComment-226448 Share on other sites More sharing options...
wildteen88 Posted April 11, 2007 Share Posted April 11, 2007 Its phpBB's template engine. Creating a Template engine can be quite hard to do if you are stating out. If you want to do what phpBB does then look into Smarty Smarty is an advance template engine you can integrate into your site. Its does exactly what phpBB template engine does but better. Quote Link to comment https://forums.phpfreaks.com/topic/46524-functions/#findComment-226686 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.