diff --git a/class2.php b/class2.php index a9b59ca9c..40bbe74e8 100644 --- a/class2.php +++ b/class2.php @@ -1603,6 +1603,7 @@ function init_session() define('GUEST', true); define('USERCLASS', ''); define('USEREMAIL', ''); + define('USERSIGNATURE', ''); if($user->hasSessionError()) { @@ -1623,6 +1624,7 @@ function init_session() define('USERPHOTO', $user->get('user_sess')); define('USERJOINED', $user->get('user_join')); define('USERVISITS', $user->get('user_visits')); + define('USERSIGNATURE', $user->get('user_signature')); define('ADMIN', $user->isAdmin()); define('ADMINID', $user->getAdminId()); diff --git a/e107_plugins/forum/forum.php b/e107_plugins/forum/forum.php index 60f0fa130..63ee2403f 100644 --- a/e107_plugins/forum/forum.php +++ b/e107_plugins/forum/forum.php @@ -213,7 +213,7 @@ if (!isset($FORUM_MAIN_START)) include(e_PLUGIN.'forum/templates/forum_template.php'); -if(is_array($FORUM_TEMPLATE)) // new v2.x format. +if(is_array($FORUM_TEMPLATE) && (e_BOOTSTRAP === true)) // new v2.x format. { $FORUM_MAIN_START = $FORUM_TEMPLATE['main-start']; diff --git a/e107_plugins/forum/forum_class.php b/e107_plugins/forum/forum_class.php index 32a72c553..52ef91a5c 100644 --- a/e107_plugins/forum/forum_class.php +++ b/e107_plugins/forum/forum_class.php @@ -176,7 +176,7 @@ class e107forum $postInfo['user_name'] = USERNAME; $postInfo['user_email'] = USEREMAIL; $postInfo['user_image'] = USERIMAGE; - $postInfo['user_signature'] = USERSIG; + $postInfo['user_signature'] = USERSIGNATURE; if($_POST['insert'] == 1) { diff --git a/e107_plugins/forum/forum_post.php b/e107_plugins/forum/forum_post.php index e1686874f..9f8f3c35b 100644 --- a/e107_plugins/forum/forum_post.php +++ b/e107_plugins/forum/forum_post.php @@ -352,6 +352,9 @@ if (isset($_POST['newthread']) || isset($_POST['reply'])) require_once(e_PLUGIN."forum/templates/forum_posted_template.php"); } } + + + echo (isset($_POST['newthread']) ? $FORUMTHREADPOSTED : $FORUMREPLYPOSTED); require_once(FOOTERF); @@ -503,6 +506,11 @@ if (!vartrue($FORUMPOST)) } } +if(isset($FORUMPOST_TEMPLATE) && (e_BOOTSTRAP === true)) +{ + $FORUMPOST = $FORUMPOST_TEMPLATE['form']; + $FORUMPOST_REPLY = $FORUMPOST_TEMPLATE['form']; +} if($action == 'rp') { diff --git a/e107_plugins/forum/forum_viewforum.php b/e107_plugins/forum/forum_viewforum.php index 4b3bf960a..ca2133ea7 100644 --- a/e107_plugins/forum/forum_viewforum.php +++ b/e107_plugins/forum/forum_viewforum.php @@ -86,21 +86,21 @@ if (!vartrue($FORUM_VIEW_START)) } -if(is_array($FORUM_VIEWFORUM_TEMPLATE)) // New Template. +if(is_array($FORUM_VIEWFORUM_TEMPLATE) && (e_BOOTSTRAP === true)) // New v2.x bootstrap Template. { -$FORUM_VIEW_START_CONTAINER = $FORUM_VIEWFORUM_TEMPLATE['start']; -$FORUM_VIEW_START = $FORUM_VIEWFORUM_TEMPLATE['header']; -$FORUM_VIEW_FORUM = $FORUM_VIEWFORUM_TEMPLATE['item']; -$FORUM_VIEW_FORUM_STICKY = $FORUM_VIEWFORUM_TEMPLATE['item-sticky']; -$FORUM_VIEW_FORUM_ANNOUNCE = $FORUM_VIEWFORUM_TEMPLATE['item-announce']; -$FORUM_VIEW_END = $FORUM_VIEWFORUM_TEMPLATE['footer']; -$FORUM_VIEW_END_CONTAINER = $FORUM_VIEWFORUM_TEMPLATE['end']; -$FORUM_VIEW_SUB_START = $FORUM_VIEWFORUM_TEMPLATE['sub-header']; -$FORUM_VIEW_SUB = $FORUM_VIEWFORUM_TEMPLATE['sub-item']; -$FORUM_VIEW_SUB_END = $FORUM_VIEWFORUM_TEMPLATE['sub-footer']; -$FORUM_IMPORTANT_ROW = $FORUM_VIEWFORUM_TEMPLATE['divider-important']; -$FORUM_NORMAL_ROW = $FORUM_VIEWFORUM_TEMPLATE['divider-normal']; + $FORUM_VIEW_START_CONTAINER = $FORUM_VIEWFORUM_TEMPLATE['start']; + $FORUM_VIEW_START = $FORUM_VIEWFORUM_TEMPLATE['header']; + $FORUM_VIEW_FORUM = $FORUM_VIEWFORUM_TEMPLATE['item']; + $FORUM_VIEW_FORUM_STICKY = $FORUM_VIEWFORUM_TEMPLATE['item-sticky']; + $FORUM_VIEW_FORUM_ANNOUNCE = $FORUM_VIEWFORUM_TEMPLATE['item-announce']; + $FORUM_VIEW_END = $FORUM_VIEWFORUM_TEMPLATE['footer']; + $FORUM_VIEW_END_CONTAINER = $FORUM_VIEWFORUM_TEMPLATE['end']; + $FORUM_VIEW_SUB_START = $FORUM_VIEWFORUM_TEMPLATE['sub-header']; + $FORUM_VIEW_SUB = $FORUM_VIEWFORUM_TEMPLATE['sub-item']; + $FORUM_VIEW_SUB_END = $FORUM_VIEWFORUM_TEMPLATE['sub-footer']; + $FORUM_IMPORTANT_ROW = $FORUM_VIEWFORUM_TEMPLATE['divider-important']; + $FORUM_NORMAL_ROW = $FORUM_VIEWFORUM_TEMPLATE['divider-normal']; } @@ -185,6 +185,12 @@ if($forum->checkPerm($forumId, 'post')) $fVars->NEWTHREADBUTTONX = newthreadjump($e107->url->create('forum/thread/new', array('id' => $forumId))); // "New Thread"; } +if(e_BOOTSTRAP !== true) +{ + $fVars->NEWTHREADBUTTONX = $fVars->NEWTHREADBUTTON; +} + + if(substr($forumInfo['forum_name'], 0, 1) == '*') { $forum_info['forum_name'] = substr($forum_info['forum_name'], 1); @@ -570,6 +576,14 @@ function parse_thread($thread_info) $_TEMPLATE = "
{BACKLINK} + | {BACKLINK} | ||
{POSTTYPE} | -+ | {POSTTYPE} | +
{POSTBOX} {EMAILNOTIFY} {NOEMOTES} @@ -247,10 +248,10 @@ $FORUMPOST_TEMPLATE['form'] = " |
+ | {BUTTONS} |
".LAN_402." | -".LAN_403." | -
---|