The Pimped Papaya said:1. In <?php ?> brackets, do include("./styles/STYLENAME/template/overall_header.html")
2. Enclose everything in <center> </center> tags
It don't rely show how I can add the header thoughZPromotion said:
<!-- INCLUDE overall_header.html -->
<!-- INCLUDE overall_header.html -->
<style type="text/css">
<!--
body,td,th {
color: #FFFFFF;
}
body {
background-image: url("http://www.macwallpapers.eu/bulkupload/Fun//Funny/Crazy%20Animals%20Funny%20Mac%20Background.jpg");
}
-->
</style><br>
<br>
<br>
<center>Test page</center>
2008paul said:Just did and did not work :S
Here is what I have.
Code:<!-- INCLUDE overall_header.html --> <style type="text/css"> <!-- body,td,th { color: #FFFFFF; } body { background-image: url("http://www.macwallpapers.eu/bulkupload/Fun//Funny/Crazy%20Animals%20Funny%20Mac%20Background.jpg"); } --> </style><br> <br> <br> <center>Test page</center>
<?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('Info');
$template->set_filenames(array(
'body' => 'info.html',
));
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
page_footer();
?>
<!-- INCLUDE overall_header.html -->
<h2>Info</h2>
<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>
<div class="content">
CONTENT GOES HERE!
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- INCLUDE jumpbox.html -->
<!-- INCLUDE overall_footer.html -->
lol you got it form here: http://www.phpbb.com/kb/article/add-a-n ... -to-phpbb/The Pimped Papaya said:Tutorial made easier:
Info.php:
Code:<?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('Info'); $template->set_filenames(array( 'body' => 'info.html', )); make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx")); page_footer(); ?>
info.html (found in current themes template folder)
Code:<!-- INCLUDE overall_header.html --> <h2>Info</h2> <div class="panel"> <div class="inner"><span class="corners-top"><span></span></span> <div class="content"> CONTENT GOES HERE! </div> <span class="corners-bottom"><span></span></span></div> </div> <!-- INCLUDE jumpbox.html --> <!-- INCLUDE overall_footer.html -->
And just put content in the content div
The Pimped Papaya said:Tutorial made easier:
Info.php:
Code:<?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('Info'); $template->set_filenames(array( 'body' => 'info.html', )); make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx")); page_footer(); ?>
info.html (found in current themes template folder)
Code:<!-- INCLUDE overall_header.html --> <h2>Info</h2> <div class="panel"> <div class="inner"><span class="corners-top"><span></span></span> <div class="content"> CONTENT GOES HERE! </div> <span class="corners-bottom"><span></span></span></div> </div> <!-- INCLUDE jumpbox.html --> <!-- INCLUDE overall_footer.html -->
And just put content in the content div
'body' => 'info.html',
'body' => 'info_body.html',
Nathan said:Did you refresh your style?
Try renaming "info.html" to "info_body.html" then find:
Code:'body' => 'info.html',
And replace with:
Code:'body' => 'info_body.html',
I dunno if it'll make a difference but phpBB uses _body for the templates.
Since 2007, Forum Promotion has specialized in providing advertising solutions to webmasters looking to promote their communities. We pride ourselves in being the bridge that connects forum administrators, bloggers, and more.
We use essential cookies to make this site work, and optional cookies to enhance your experience.