diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index 0f36a93e6..762d5fd89 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -2897,7 +2897,7 @@ class e_parser $title = (ADMIN) ? $image : $tp->toAttribute($userData['user_name']); - $text = ""; + $text = ""; // return $img; return $text; diff --git a/e107_plugins/forum/forum.css b/e107_plugins/forum/forum.css new file mode 100644 index 000000000..a803f7605 --- /dev/null +++ b/e107_plugins/forum/forum.css @@ -0,0 +1 @@ +.forum-viewforum-pagination { margin:0px } \ No newline at end of file diff --git a/e107_plugins/forum/forum.php b/e107_plugins/forum/forum.php index e94fb5871..4247ae977 100644 --- a/e107_plugins/forum/forum.php +++ b/e107_plugins/forum/forum.php @@ -114,7 +114,7 @@ if(!defined('e_TRACKING_DISABLED')) } $fVars->STATLINK = "".LAN_FORUM_0017."\n"; $fVars->ICONKEY = " -\n +
\n diff --git a/e107_plugins/forum/forum_class.php b/e107_plugins/forum/forum_class.php index ef613ada7..0071117e6 100644 --- a/e107_plugins/forum/forum_class.php +++ b/e107_plugins/forum/forum_class.php @@ -114,27 +114,30 @@ $(document).ready(function() EON; e107::js('inline',$jscode,'jquery'); +e107::css('forum','forum.css'); + e107::lan('forum','English_front'); // include_lan(e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_forum.php'); - -if (file_exists(THEME.'templates/forum/forum_icons_template.php')) // Preferred v2.x location. +if(!defined('IMAGE_new') && !defined('IMAGE_e')) { - require_once(THEME.'templates/forum/forum_icons_template.php'); + if (file_exists(THEME.'templates/forum/forum_icons_template.php')) // Preferred v2.x location. + { + require_once(THEME.'templates/forum/forum_icons_template.php'); + } + elseif (file_exists(THEME.'forum/forum_icons_template.php')) + { + require_once(THEME.'forum/forum_icons_template.php'); + } + elseif (file_exists(THEME.'forum_icons_template.php')) + { + require_once(THEME.'forum_icons_template.php'); + } + else + { + require_once(e_PLUGIN.'forum/templates/forum_icons_template.php'); + } } -elseif (file_exists(THEME.'forum/forum_icons_template.php')) -{ - require_once(THEME.'forum/forum_icons_template.php'); -} -elseif (file_exists(THEME.'forum_icons_template.php')) -{ - require_once(THEME.'forum_icons_template.php'); -} -else -{ - require_once(e_PLUGIN.'forum/templates/forum_icons_template.php'); -} - class e107forum { diff --git a/e107_plugins/forum/forum_viewforum.php b/e107_plugins/forum/forum_viewforum.php index c27d53048..b20045552 100644 --- a/e107_plugins/forum/forum_viewforum.php +++ b/e107_plugins/forum/forum_viewforum.php @@ -224,8 +224,15 @@ if(varset($pref['track_online'])) } -$fVars->ICONKEY = " -
".IMAGE_new_small." ".LAN_FORUM_0039." ".IMAGE_nonew_small."
+ +if(defset('BOOTSTRAP')==3 && !empty($FORUM_VIEWFORUM_TEMPLATE['iconkey'])) // v2.x +{ + $fVars->ICONKEY = $tp->parseTemplate($FORUM_VIEWFORUM_TEMPLATE['iconkey'],true); +} +else // v1.x +{ + $fVars->ICONKEY = " +
@@ -248,6 +255,10 @@ $fVars->ICONKEY = "
".IMAGE_new_small." ".LAN_FORUM_0039."
"; +} + + + $fVars->SEARCH = "

@@ -765,12 +776,11 @@ function fpages($thread_info, $replies) if(deftrue('BOOTSTRAP')) { - $text = "

"; - $text .= ""; + $text .= ""; } else { diff --git a/e107_plugins/forum/forum_viewtopic.php b/e107_plugins/forum/forum_viewtopic.php index 29356dfd5..3eed2c2e6 100644 --- a/e107_plugins/forum/forum_viewtopic.php +++ b/e107_plugins/forum/forum_viewtopic.php @@ -200,9 +200,9 @@ $forum->set_crumb(true, '', $tVars); // Set $BREADCRUMB (and BACKLINK) //$tVars->BACKLINK = $tVars->BREADCRUMB; //$tVars->FORUM_CRUMB = $crumbs['forum_crumb']; $tVars->THREADNAME = $tp->toHTML($thread->threadInfo['thread_name'], true, 'no_hook, emotes_off'); -$tVars->NEXTPREV = " $thread->threadId)) . "'>« " . LAN_FORUM_2001 . ""; +$tVars->NEXTPREV = " $thread->threadId)) . "'>« " . LAN_FORUM_2001 . ""; $tVars->NEXTPREV .= ' | '; // enabled to make it look better on v1 templates -$tVars->NEXTPREV .= " $thread->threadId)) . "'>" . LAN_FORUM_2002 . " »"; +$tVars->NEXTPREV .= " $thread->threadId)) . "'>" . LAN_FORUM_2002 . " »"; if ($forum->prefs->get('track') && USER) { @@ -210,7 +210,7 @@ if ($forum->prefs->get('track') && USER) $url = $e107->url->create('forum/thread/view', array('id' => $thread->threadId), 'encode=0'); // encoding could break AJAX call $tVars->TRACK .= " - {$img} + {$img}