Jump to content

include


ofi

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.