if ( $rating < 1 ) { $rating_img = forum_displayImage($xforumImage['blank']); }else{ $rating_img = forum_displayImage($xforumImage['rate'.$rating]); } $xoopsTpl->assign('rating_img',$rating_img); $xoopsTpl->assign('rate1',forum_displayImage($xforumImage['rate1'],_MD_RATE1)); $xoopsTpl->assign('rate2',forum_displayImage($xforumImage['rate2'],_MD_RATE2)); $xoopsTpl->assign('rate3',forum_displayImage($xforumImage['rate3'],_MD_RATE3)); $xoopsTpl->assign('rate4',forum_displayImage($xforumImage['rate4'],_MD_RATE4)); $xoopsTpl->assign('rate5',forum_displayImage($xforumImage['rate5'],_MD_RATE5)); } // create jump box if(!empty($xoopsModuleConfig['show_jump'])){ $xoopsTpl->assign('forum_jumpbox', forum_make_jumpbox($forum_id)); } $xoopsTpl->assign(array('lang_forum_index' => sprintf(_MD_FORUMINDEX,htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES)), 'lang_from' => _MD_FROM, 'lang_joined' => _MD_JOINED, 'lang_posts' => _MD_POSTS, 'lang_poster' => _MD_POSTER, 'lang_thread' => _MD_THREAD, 'lang_edit' => _EDIT, 'lang_delete' => _DELETE, 'lang_reply' => _REPLY, 'lang_postedon' => _MD_POSTEDON,'lang_groups' => _MD_GROUPS)); $viewmode_options = array(); if($viewmode=="thread"){ $viewmode_options[]= array("link"=>$xforumUrl['root']."/viewtopic.php?viewmode=flat&topic_id=".$topic_id."&forum=".$forum_id, "title"=>_FLAT); $viewmode_options[]= array("link"=>$xforumUrl['root']."/viewtopic.php?viewmode=compact&topic_id=".$topic_id."&forum=".$forum_id, "title"=>_MD_COMPACT); }elseif($viewmode=="compact"){ $viewmode_options[]= array("link"=>$xforumUrl['root']."/viewtopic.php?viewmode=thread&topic_id=".$topic_id."&forum=".$forum_id,"title"=>_THREADED); $viewmode_options[]= array("link"=>$xforumUrl['root']."/viewtopic.php?viewmode=flat&order=".$order_current."&topic_id=".$topic_id."&forum=".$forum_id, "title"=>_FLAT); if ($order == 'DESC') { $viewmode_options[]= array("link"=>$xforumUrl['root']."/viewtopic.php?viewmode=compact&order=ASC&topic_id=".$topic_id."&forum=".$forum_id,"title"=>_OLDESTFIRST); } else { $viewmode_options[]= array("link"=>$xforumUrl['root']."/viewtopic.php?viewmode=compact&order=DESC&topic_id=".$topic_id."&forum=".$forum_id,"title"=>_NEWESTFIRST); }
$current_type = ''; break; } $xoopsTpl->assign('forum_topictype', $current_type); $all_topics = $forum_handler->getTopicCount($forum_obj,$startdate,$type); if ( $all_topics > $xoopsModuleConfig['topics_per_page']) { include XOOPS_ROOT_PATH.'/class/pagenav.php'; $nav = new XoopsPageNav($all_topics, $xoopsModuleConfig['topics_per_page'], $start, "start", 'forum='.$forum_obj->getVar('forum_id').'&sortname='.$sortname.'&sortorder='.$sortorder.'&since='.$since."&type=$type&mode=".$mode); $xoopsTpl->assign('forum_pagenav', $nav->renderNav(4)); } else { $xoopsTpl->assign('forum_pagenav', ''); } if(!empty($xoopsModuleConfig['show_jump'])){ $xoopsTpl->assign('forum_jumpbox', forum_make_jumpbox($forum_obj->getVar('forum_id'))); } $xoopsTpl->assign('down',forum_displayImage($xforumImage['doubledown'])); $xoopsTpl->assign('menumode',$menumode); $xoopsTpl->assign('menumode_other',$menumode_other); if($xoopsModuleConfig['show_permissiontable']){ $permission_table = & $getpermission->permission_table($permission_set,$forum_obj->getVar('forum_id'), false, $isadmin); $xoopsTpl->assign_by_ref('permission_table', $permission_table); unset($permission_table); } if ($xoopsModuleConfig['rss_enable'] == 1) { $xoopsTpl->assign("rss_button","<div align='right'><a href='".XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/rss.php?f=".$forum_obj->getVar('forum_id')."' title='RSS feed' target='_blank'>".forum_displayImage($xforumImage['rss'], 'RSS feed')."</a></div>"); }