ofi Posted January 1, 2009 Share Posted January 1, 2009 Hya How can i add this include <?php include("file.php"); ?> inside this code <?php define('IN_PHPBB', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './phpbb3_demo/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); // Start session management $user->session_begin(); $auth->acl($user->data); $user->setup(); page_header('Um mig'); $template->set_filenames(array( 'body' => 'aboutus_body.html', )); page_footer(); ?> Link to comment https://forums.phpfreaks.com/topic/139123-include/ Share on other sites More sharing options...
DarkerAngel Posted January 1, 2009 Share Posted January 1, 2009 I suppose you can enter the code anywhere but you would want it to be after anything that the code needs to be set is set and before anything the code has that is needed is called. Link to comment https://forums.phpfreaks.com/topic/139123-include/#findComment-727631 Share on other sites More sharing options...
opalelement Posted January 1, 2009 Share Posted January 1, 2009 You would really need to post it on the phpBB forums, I used to be a phpBB3 mod maker and I know that you have to call files differently than the regular include. Link to comment https://forums.phpfreaks.com/topic/139123-include/#findComment-727637 Share on other sites More sharing options...
ofi Posted January 1, 2009 Author Share Posted January 1, 2009 Hi I have post this on the phpbb forum, i have made custom page from the forum and i am trying to include cutenews into the custom page, i just cant find out to get this in. Link to comment https://forums.phpfreaks.com/topic/139123-include/#findComment-727640 Share on other sites More sharing options...
DarkerAngel Posted January 1, 2009 Share Posted January 1, 2009 Interesting I have made custom mods to phpBB2 and 3 I just have the include_once in a function and use it as needed. I never really had an issue. I can't really tell you though because its been almost a year since I have made anything custom for PHPBB and yeah I'm a lil rusty in it now. Link to comment https://forums.phpfreaks.com/topic/139123-include/#findComment-727644 Share on other sites More sharing options...
ofi Posted January 1, 2009 Author Share Posted January 1, 2009 Hi I follow this tutorial http://www.phpbb.com/kb/article/add-a-new-custom-page-to-phpbb/ everything works fine. just stuck on the include :-\ Link to comment https://forums.phpfreaks.com/topic/139123-include/#findComment-727655 Share on other sites More sharing options...
DarkerAngel Posted January 2, 2009 Share Posted January 2, 2009 Hi I follow this tutorial http://www.phpbb.com/kb/article/add-a-new-custom-page-to-phpbb/ everything works fine. just stuck on the include :-\ how about this what is the included page for is it to add some kind of functionality to the php script? or is it just the page you want displayed? Link to comment https://forums.phpfreaks.com/topic/139123-include/#findComment-727711 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.