diff --git a/e107_plugins/forum/forum_post.php b/e107_plugins/forum/forum_post.php index ea7433646..b6eab2f29 100644 --- a/e107_plugins/forum/forum_post.php +++ b/e107_plugins/forum/forum_post.php @@ -865,6 +865,11 @@ class forum_post_handler $sc = e107::getScBatch('post', 'forum')->setScVar('forum', $this->forumObj)->setScVar('threadInfo', vartrue($data))->setVars($data); $text = e107::getParser()->parseTemplate($template['form'], true, $sc); + if(!empty($template['caption'])) + { + $this->forumObj->prefs->set('title', e107::getParser()->parseTemplate($template['caption'], true, $sc)); + } + $this->render($text); if(empty($data)) diff --git a/e107_plugins/forum/templates/forum_post_template.php b/e107_plugins/forum/templates/forum_post_template.php index f5e4838a5..b74f6b10f 100644 --- a/e107_plugins/forum/templates/forum_post_template.php +++ b/e107_plugins/forum/templates/forum_post_template.php @@ -12,6 +12,7 @@ if (!defined('e107_INIT')) { exit; } // New in v2.x - requires a bootstrap theme be loaded. +//$FORUM_POST_TEMPLATE['caption'] = "Custom caption"; $FORUM_POST_TEMPLATE['form'] = " {FORUM_POST_FORM_START}