aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-03-25 12:07:13 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-03-25 12:07:13 +0000
commit5de37a5c0a9665ef7170c247a842d9cd38e9e1d3 (patch)
tree86fe422f5cf40ae9a669c8dca309e0e36ed214e7 /phpBB/posting.php
parent529aabd46d63b48041bde5d33fdb45bec63807cd (diff)
downloadforums-5de37a5c0a9665ef7170c247a842d9cd38e9e1d3.tar
forums-5de37a5c0a9665ef7170c247a842d9cd38e9e1d3.tar.gz
forums-5de37a5c0a9665ef7170c247a842d9cd38e9e1d3.tar.bz2
forums-5de37a5c0a9665ef7170c247a842d9cd38e9e1d3.tar.xz
forums-5de37a5c0a9665ef7170c247a842d9cd38e9e1d3.zip
- extended session_page and user_lastpage to hold a maximum of 200 chars (instead of 100) - session_page gets truncated to 200 chars
- streamlined the process of generating text with bbcode/smilies/urls (forum rules, forum descriptions, group descriptions at the moment) - a bunch of schema changes for the bbcode-enabled text and the session page change (sorry for this) - if decode_message is used there is no need to include functions_posting.php anymore (should fix the search.php bug too) git-svn-id: file:///svn/phpbb/trunk@5709 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php29
1 files changed, 15 insertions, 14 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 371ce55e29..d6ab653763 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -1042,19 +1042,20 @@ switch ($mode)
}
$forum_data = array(
- 'parent_id' => $parent_id,
- 'left_id' => $left_id,
- 'right_id' => $right_id,
- 'forum_parents' => $forum_parents,
- 'forum_name' => $forum_name,
- 'forum_id' => $forum_id,
- 'forum_type' => $forum_type,
- 'forum_desc' => $forum_desc,
- 'forum_rules' => $forum_rules,
- 'forum_rules_flags' => $forum_rules_flags,
- 'forum_rules_bbcode_uid' => $forum_rules_bbcode_uid,
- 'forum_rules_bbcode_bitfield' => $forum_rules_bbcode_bitfield,
- 'forum_rules_link' => $forum_rules_link
+ 'parent_id' => $parent_id,
+ 'left_id' => $left_id,
+ 'right_id' => $right_id,
+ 'forum_parents' => $forum_parents,
+ 'forum_name' => $forum_name,
+ 'forum_id' => $forum_id,
+ 'forum_type' => $forum_type,
+ 'forum_desc' => $forum_desc,
+ 'forum_desc_uid' => $forum_desc_uid,
+ 'forum_desc_bitfield' => $forum_desc_bitfield,
+ 'forum_rules' => $forum_rules,
+ 'forum_rules_uid' => $forum_rules_uid,
+ 'forum_rules_bitfield' => $forum_rules_bitfield,
+ 'forum_rules_link' => $forum_rules_link
);
// Build Navigation Links
@@ -1076,7 +1077,7 @@ $template->assign_vars(array(
'L_MESSAGE_BODY_EXPLAIN'=> (intval($config['max_post_chars'])) ? sprintf($user->lang['MESSAGE_BODY_EXPLAIN'], intval($config['max_post_chars'])) : '',
'FORUM_NAME' => $forum_name,
- 'FORUM_DESC' => ($forum_desc) ? strip_tags($forum_desc) : '',
+ 'FORUM_DESC' => ($forum_desc) ? generate_text_for_display($forum_desc, $forum_desc_uid, $forum_desc_bitfield) : '',
'TOPIC_TITLE' => $topic_title,
'MODERATORS' => (sizeof($moderators)) ? implode(', ', $moderators[$forum_id]) : '',
'USERNAME' => ((!$preview && $mode != 'quote') || $preview) ? stripslashes($username) : '',