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(); ?> Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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 :-\ Quote Link to comment 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? Quote Link to comment 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.