Having some problems with the php code, it works fine, but I'm trying to incorporate my forums look onto the mainpage.php page, and I'm having trouble combining the two.
The code I use to add more pages to my forum, which look the same consists of:
- Code: Select all
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$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('Adopt A LuveTree Island Creature');
$template->set_filenames(array(
'body' => 'Adopt_body.html',
));
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
page_footer();
?>
The code for the php adopt system is in the phpbb3 folder (named 'forum') and this works with the aid of this:
- Code: Select all
<!-- INCLUDE overall_header.html -->
<h2>Adopt a pet!</h2>
<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>
<div class="content">
<p> Here you can adopt some LuveTree Island creatures! Currently there are none available, check back soon.
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- INCLUDE jumpbox.html -->
<!-- INCLUDE overall_footer.html -->
Now these two link together and create a new page that mathces the layout of the forum and i can add text and other things to it.
I was wondering how i get the adoptable boxes, found on 'mainpage.php.' incorporated into this code, so my page has the adopt boxes AND has the forum template?