$arParams["URL_TEMPLATES_FORUMS"], array("GID" => $PARENT_ID)), "~GROUP" => CComponentEngine::MakePathFromTemplate( $arParams["~URL_TEMPLATES_FORUMS"], array("GID" => $PARENT_ID))); $arResult["GROUP_NAVIGATION"][] = $res; $PARENT_ID = intVal($arResult["GROUPS"][$PARENT_ID]["PARENT_ID"]); } $arResult["GROUP_NAVIGATION"] = array_reverse($arResult["GROUP_NAVIGATION"]); endif; /************** Navigation/*****************************************/ /************** For custom templates *******************************/ if ($arParams["VERSION"] < 1) { $arResult["topic_new"] = $arResult["URL"]["TOPIC_NEW"]; $arResult["list"] = $arResult["URL"]["TOPIC_LIST"]; $arResult["UserPermission"] = $arParams["PERMISSION"]; $res = ShowActiveUser(array("PERIOD" => 600, "TITLE" => "", "FORUM_ID" => $arParams["FID"], "TOPIC_ID" => $arParams["TID"])); $res["SHOW_USER"] = "******"; if ($res["NONE"] != "Y") { $arUser = array(); if (is_array($res["USER"]) && count($res["USER"]) > 0) { foreach ($res["USER"] as $r) { $r["SHOW_NAME"] = $parser->wrap_long_words($r["SHOW_NAME"]); $r["profile_view"] = CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_PROFILE_VIEW"], array("UID" => $r["UID"])); $arUser[] = $r; } if (count($arUser) > 0) { $res["SHOW_USER"] = "******";
<table width="100%" border="0"> <tr> <td align="left"> <font class="forumbodytext"> <?php echo $db_Forum->NavPrint(GetMessage("FI_FORUM")); ?> </font> </td> </tr> </table> <br> <?php // show online forum users list $UserOnLine = ShowActiveUser(array("PERIOD" => 600, "TITLE" => GetMessage("FI_USER_PROFILE"))); ?> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="forumborder"><tr><td><table border="0" cellpadding="1" cellspacing="1" width="100%"> <tr class="forumhead"><td valign="top" class="forumtitletext"><?php echo GetMessage("FI_NOW_ONLINE") . " " . $UserOnLine["HEAD"]; ?> </td></tr> <tr class="forumbody"><td valign="top" class="forumbodytext"><?php echo $UserOnLine["BODY"]; ?> </td></tr> </table></td></tr></table><?php ?> <br><?php // show list of users, who have a birthday today ?>
?> ' class='forumnewtopic_button'> </td></form> <?php } ?> </tr> </table> <br> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="forumborder"><tr><td><table border="0" cellpadding="1" cellspacing="1" width="100%"> <tr class="forumhead"><td valign="top" class="forumtitletext"><?php echo GetMessage("FR_NOW_ONLINE"); ?> </td></tr> <tr class="forumbody"><td valign="top" class="forumbodytext"><?php $UserOnLine = ShowActiveUser(array("PERIOD" => 600, "FORUM_ID" => $FID, "TOPIC_ID" => $TID)); echo $UserOnLine["BODY"]; ?> </td></tr> </table></td></tr></table><br><br><?php $arMenuParams = compact("arTopic", "FID", "TID"); $APPLICATION->IncludeFile("forum/forum_tmpl_1/menu.php", $arMenuParams); if (intVal($MID) > 0) { ?> <script type="text/javascript"> location.hash = 'message<?php echo $MID; ?> '; </script><?php }