Report#54: Welcome Box: use BBcode

This commit is contained in:
Kevin
2008-02-23 12:29:15 +00:00
parent ef25c10e98
commit 3502a326a2
4 changed files with 50 additions and 6 deletions

View File

@@ -0,0 +1,47 @@
<?php
/**
*
* @package - Board3portal
* @version $Id$
* @copyright (c) kevin / saint ( http://www.board3.de/ ), (c) Ice, (c) nickvergessen ( http://www.flying-bits.org/ ), (c) redbull254 ( http://www.digitalfotografie-foren.de )
* @based on: phpBB3 Portal by Sevdin Filiz, www.phpbb3portal.com
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (!defined('IN_PORTAL'))
{
exit;
}
$allow_bbcode = 1;
$allow_urls = 1;
$allow_smilies = 1;
$text = $portal_config['portal_welcome_intro'];
$message_parser = new parse_message($text);
$message_parser->parse($allow_bbcode, $allow_urls, $allow_smilies);
$text = $message_parser->message;
$bbcode_uid = $message_parser->bbcode_uid;
$bbcode_bitfield = $message_parser->bbcode_bitfield;
$bbcode = new bbcode(base64_encode($bbcode_bitfield));
$text = censor_text($text);
$bbcode->bbcode_second_pass($text, $bbcode_uid, $bbcode_bitfield);
$text = bbcode_nl2br($text);
$text = smiley_text($text);
$template->assign_vars(array(
'S_DISPLAY_WELCOME' => true,
'PORTAL_WELCOME_INTRO' => $text,
));
?>