Topic: How to add some HTML into forum?
Hello,
with punbb 1.2.x it was simple to embed HTML into the forum, I changed the index.php to a renamed php-file:
<?php
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
if ($pun_user['is_guest'] && $pun_user['g_read_board'] == '1')
message($lang_common['No permission']);
// Load the userlist.php language file
// Load the index.php language file
require PUN_ROOT.'lang/'.$pun_user['language'].'/index.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/userlist.php';
// Load the online.php language file
require PUN_ROOT.'lang/English/online.php';
$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_online['Online List'];
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
?>
<div>
MY HTML TEXT IS HERE
</div>
<?php
$footer_style = 'index';
require PUN_ROOT.'footer.php';
?>
But with punbb 1.3.x I have no idea to get the same result. My HTML-Code starts in the output always before the punbb-heading. Now it follows my implementation that looks so far:
<?php
/**
* Displays a list of the categories/forums that the current user can see, along with some statistics.
*
* @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org
* @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
* @package PunBB
*/
if (!defined('FORUM_ROOT'))
define('FORUM_ROOT', './');
require FORUM_ROOT.'include/common.php';
($hook = get_hook('in_start')) ? eval($hook) : null;
if ($forum_user['g_read_board'] == '0')
message($lang_common['No view']);
// Load the index.php language file
require FORUM_ROOT.'lang/'.$forum_user['language'].'/index.php';
// Setup main heading
$forum_page['main_title'] = forum_htmlencode($forum_config['o_board_title']);
($hook = get_hook('in_pre_header_load')) ? eval($hook) : null;
define('FORUM_ALLOW_INDEX', 1);
define('FORUM_PAGE', 'index');
require FORUM_ROOT.'header.php';
?>
<p>My HTML</p>
<?php
// END SUBST - <!-- forum_info -->
require FORUM_ROOT.'footer.php';
?>