diff --git a/e107_plugins/forum/forum.php b/e107_plugins/forum/forum.php index ef7eac91e..189fc0d45 100644 --- a/e107_plugins/forum/forum.php +++ b/e107_plugins/forum/forum.php @@ -250,12 +250,13 @@ if (!$forumList) $forum_string = ''; $pVars = new e_vars; +$frm = e107::getForm(); foreach ($forumList['parents'] as $parent) { $status = parse_parent($parent); $pVars->PARENTSTATUS = $status; - $pVars->PARENTNAME = $parent['forum_name']; + $pVars->PARENTNAME = "".$parent['forum_name'].""; $forum_string .= $tp->simpleParse($FORUM_MAIN_PARENT, $pVars); if (!count($forumList['forums'][$parent['forum_id']])) { diff --git a/e107_plugins/forum/forum_class.php b/e107_plugins/forum/forum_class.php index b114df87f..f3465afaa 100644 --- a/e107_plugins/forum/forum_class.php +++ b/e107_plugins/forum/forum_class.php @@ -1564,6 +1564,8 @@ class e107forum { $e107 = e107::getInstance(); $tp = e107::getParser(); + $frm = e107::getForm(); + global $FORUM_CRUMB, $forumInfo, $threadInfo, $thread; global $BREADCRUMB,$BACKLINK; // Eventually we should deprecate BACKLINK @@ -1579,8 +1581,8 @@ class e107forum $replace = array(LAN_FORUM_0001, e107::getUrl()->create('forum/forum/main')); $FORUM_CRUMB['forums']['value'] = str_replace($search, $replace, $FORUM_CRUMB['forums']['value']); - $search = '{PARENT_TITLE}'; - $replace = $tp->toHTML($forumInfo['parent_name']); + $search = array('{PARENT_TITLE}', '{PARENT_HREF}'); + $replace = array($tp->toHTML($forumInfo['parent_name']), e107::getUrl()->create('forum/forum/main')."#".$frm->name2id($forumInfo['parent_name'])); $FORUM_CRUMB['parent']['value'] = str_replace($search, $replace, $FORUM_CRUMB['parent']['value']); if($forumInfo['forum_sub']) @@ -1794,22 +1796,22 @@ function img_path($filename) { if($ML) { - $image = (is_readable(e_PLUGIN.'forum/images/'.IMODE.'/'.e_LANGUAGE.'_'.$filename)) ? e_PLUGIN.'forum/images/'.IMODE.'/'.e_LANGUAGE.'_'.$filename : e_PLUGIN.'forum/images/'.IMODE.'/English_'.$filename; + $image = (is_readable(e_PLUGIN.'forum/images/icons/'.e_LANGUAGE.'_'.$filename)) ? e_PLUGIN.'forum/images/icons/'.e_LANGUAGE.'_'.$filename : e_PLUGIN.'forum/images/icons/English_'.$filename; } else { - $image = e_PLUGIN.'forum/images/'.IMODE.'/'.$filename; + $image = e_PLUGIN.'forum/images/icons/'.$filename; } } else { if($ML) { - $image = (is_readable(e_PLUGIN."forum/images/lite/".e_LANGUAGE.'_'.$filename)) ? e_PLUGIN.'forum/images/lite/'.e_LANGUAGE.'_'.$filename : e_PLUGIN.'forum/images/lite/English_'.$filename; + $image = (is_readable(e_PLUGIN."forum/images/lite/".e_LANGUAGE.'_'.$filename)) ? e_PLUGIN.'forum/images/icons/'.e_LANGUAGE.'_'.$filename : e_PLUGIN.'forum/images/icons/English_'.$filename; } else { - $image = e_PLUGIN.'forum/images/lite/'.$filename; + $image = e_PLUGIN.'forum/images/icons/'.$filename; } } diff --git a/e107_plugins/forum/forum_viewforum.php b/e107_plugins/forum/forum_viewforum.php index ee33437b5..c85b488e6 100644 --- a/e107_plugins/forum/forum_viewforum.php +++ b/e107_plugins/forum/forum_viewforum.php @@ -726,7 +726,7 @@ function fpages($thread_info, $replies) $text .= $text ? ' ' : ''; $urlparms['page'] = $aa; $url = e107::getUrl()->create('forum/thread/view', $urlparms); - $opts[] = "{$aa}"; //FIXME LAN_GOPAGE syntax? + $opts[] = "{$aa}"; //FIXME LAN_GOPAGE syntax? } $text .= ' ... '; for($a = $pages-3; $a <= $pages-1; $a++) @@ -735,7 +735,7 @@ function fpages($thread_info, $replies) $text .= $text ? ' ' : ''; $urlparms['page'] = $aa; $url = e107::getUrl()->create('forum/thread/view', $urlparms); - $opts[] = "{$aa}"; //FIXME LAN_GOPAGE syntax? + $opts[] = "{$aa}"; //FIXME LAN_GOPAGE syntax? } } else @@ -746,12 +746,26 @@ function fpages($thread_info, $replies) $text .= $text ? ' ' : ''; $urlparms['page'] = $aa; $url = e107::getUrl()->create('forum/thread/view', $urlparms); - $opts[] = "{$aa}"; //FIXME LAN_GOPAGE syntax? + $opts[] = "{$aa}"; //FIXME LAN_GOPAGE syntax? } } + if(deftrue('BOOTSTRAP')) + { + $text = "