<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } if (!CModule::IncludeModule("forum")) { return; } /******************************************************************** Input params ********************************************************************/ $arThemesMessages = array("beige" => GetMessage("F_THEME_BEIGE"), "blue" => GetMessage("F_THEME_BLUE"), "fluxbb" => GetMessage("F_THEME_FLUXBB"), "gray" => GetMessage("F_THEME_GRAY"), "green" => GetMessage("F_THEME_GREEN"), "orange" => GetMessage("F_THEME_ORANGE"), "red" => GetMessage("F_THEME_RED"), "white" => GetMessage("F_THEME_WHITE")); $arThemes = array(); $dir = trim(preg_replace("'[\\\\/]+'", "/", dirname(__FILE__) . "/themes/")); if (is_dir($dir) && ($directory = opendir($dir))) { while (($file = readdir($directory)) !== false) { if ($file != "." && $file != ".." && is_dir($dir . $file)) { $arThemes[$file] = !empty($arThemesMessages[$file]) ? $arThemesMessages[$file] : strtoupper(substr($file, 0, 1)) . strtolower(substr($file, 1)); } } closedir($directory); } $hidden = !is_set($arCurrentValues, "USE_LIGHT_VIEW") || $arCurrentValues["USE_LIGHT_VIEW"] == "Y" ? "Y" : "N"; /******************************************************************** /Input params ********************************************************************/ $arTemplateParameters = array("THEME" => array("PARENT" => "TEMPLATE_TEMPLATES_SETTINGS", "NAME" => GetMessage("F_THEMES"), "TYPE" => "LIST", "VALUES" => $arThemes, "MULTIPLE" => "N", "DEFAULT" => "blue", "ADDITIONAL_VALUES" => "Y"), "SHOW_TAGS" => array("PARENT" => "TEMPLATE_TEMPLATES_SETTINGS", "NAME" => GetMessage("F_SHOW_TAGS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "SEO_USER" => array("PARENT" => "TEMPLATE_TEMPLATES_SETTINGS", "NAME" => GetMessage("F_SEO_USER_1"), "TYPE" => "LIST", "MULTIPLE" => "N", "VALUES" => array("Y" => GetMessage("F_SEO_USER_2"), "N" => GetMessage("F_SEO_USER_3"), "TEXT" => GetMessage("F_SEO_USER_4")), "DEFAULT" => "Y", "HIDDEN" => $hidden), "SEO_USE_AN_EXTERNAL_SERVICE" => array("PARENT" => "TEMPLATE_TEMPLATES_SETTINGS", "NAME" => GetMessage("F_SEO_USE_AN_EXTERNAL_SERVICE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "HIDDEN" => $hidden), "SHOW_FORUM_USERS" => array("PARENT" => "TEMPLATE_TEMPLATES_SETTINGS", "NAME" => GetMessage("F_SHOW_FORUM_USERS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "HIDDEN" => $hidden), "SHOW_SUBSCRIBE_LINK" => array("PARENT" => "TEMPLATE_TEMPLATES_SETTINGS", "NAME" => GetMessage("F_SHOW_SUBSCRIBE_LINK"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "HIDDEN" => $hidden), "SHOW_AUTH_FORM" => array("PARENT" => "TEMPLATE_TEMPLATES_SETTINGS", "NAME" => GetMessage("F_SHOW_AUTH"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "SHOW_NAVIGATION" => array("PARENT" => "TEMPLATE_TEMPLATES_SETTINGS", "NAME" => GetMessage("F_SHOW_NAVIGATION"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "HIDDEN" => $hidden), "SHOW_LEGEND" => array("PARENT" => "TEMPLATE_TEMPLATES_SETTINGS", "NAME" => GetMessage("F_SHOW_LEGEND"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "HIDDEN" => $hidden), "SHOW_STATISTIC_BLOCK" => array("PARENT" => "TEMPLATE_TEMPLATES_SETTINGS", "NAME" => GetMessage("F_SHOW_STATISTIC_BLOCK"), "TYPE" => "LIST", "VALUES" => array("STATISTIC" => GetMessage('F_STATISTIC_BLOCK_STATISTIC'), "BIRTHDAY" => GetMessage('F_STATISTIC_BLOCK_BIRTHDAY'), "USERS_ONLINE" => GetMessage('F_STATISTIC_BLOCK_ONLINE')), "MULTIPLE" => "Y", "DEFAULT" => is_set($arCurrentValues, "SHOW_STATISTIC") && $arCurrentValues["SHOW_STATISTIC"] == "N" ? array() : array("STATISTIC", "BIRTHDAY", "USERS_ONLINE"), "HIDDEN" => $hidden), "SHOW_FORUMS" => array("PARENT" => "TEMPLATE_TEMPLATES_SETTINGS", "NAME" => GetMessage("F_SHOW_FORUMS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "HIDDEN" => $hidden), "SHOW_FIRST_POST" => array("PARENT" => "TEMPLATE_TEMPLATES_SETTINGS", "NAME" => GetMessage("F_SHOW_FIRST_POST"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "HIDDEN" => $hidden), "SHOW_AUTHOR_COLUMN" => array("PARENT" => "TEMPLATE_TEMPLATES_SETTINGS", "NAME" => GetMessage("F_SHOW_AUTHOR_COLUMN"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "HIDDEN" => $hidden), "TMPLT_SHOW_ADDITIONAL_MARKER" => array("PARENT" => "TEMPLATE_TEMPLATES_SETTINGS", "NAME" => GetMessage("F_SHOW_ADDITIONAL_MARKER"), "TYPE" => "STRING", "DEFAULT" => ""), "PAGE_NAVIGATION_TEMPLATE" => array("PARENT" => "TEMPLATE_TEMPLATES_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "forum", "HIDDEN" => $hidden), "PAGE_NAVIGATION_WINDOW" => array("PARENT" => "TEMPLATE_TEMPLATES_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_WINDOW"), "TYPE" => "STRING", "DEFAULT" => "5", "HIDDEN" => $hidden), "AJAX_POST" => array("PARENT" => "TEMPLATE_TEMPLATES_SETTINGS", "NAME" => GetMessage("F_AJAX_POST"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "HIDDEN" => $hidden), "WORD_WRAP_CUT" => CForumParameters::GetWordWrapCut(false, "TEMPLATE_TEMPLATES_SETTINGS") + array("HIDDEN" => $hidden), "WORD_LENGTH" => CForumParameters::GetWordLength(false, "TEMPLATE_TEMPLATES_SETTINGS") + array("HIDDEN" => $hidden));
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } if (!CModule::IncludeModule("forum")) { return; } $arForum = array(); $db_res = CForumNew::GetList(array(), array()); if ($db_res && ($res = $db_res->GetNext())) { do { $arForum[intVal($res["ID"])] = $res["NAME"]; } while ($res = $db_res->GetNext()); } $arComponentParameters = array("GROUPS" => array("URL_TEMPLATES" => array("NAME" => GetMessage("F_URL_TEMPLATES"))), "PARAMETERS" => array("FID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_FID"), "TYPE" => "LIST", "VALUES" => $arForum, "DEFAULT" => '0'), "TID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_TID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["TID"]}'), "MID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_MID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["MID"]}'), "SOCNET_GROUP_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_SOCNET_GROUP_ID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["SOCNET_GROUP_ID"]}'), "USER_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_USER_ID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["USER_ID"]}'), "URL_TEMPLATES_TOPIC_LIST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_LIST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "topic_list.php"), "URL_TEMPLATES_TOPIC" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_READ_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "topic.php?TID=#TID#"), "URL_TEMPLATES_TOPIC_EDIT" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_TOPIC_NEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "topic_edit.php?TID=#TID#&MID=#MID#"), "URL_TEMPLATES_MESSAGE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message.php?TID=#TID#&MID=#MID#"), "URL_TEMPLATES_PROFILE_VIEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PROFILE_VIEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "profile_view.php?UID=#UID#"), "PAGEN" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGEN"), "TYPE" => "STRING", "DEFAULT" => intVal($GLOBALS["NavNum"] + 1)), "PAGE_NAVIGATION_TEMPLATE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "PAGE_NAVIGATION_WINDOW" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_WINDOW"), "TYPE" => "STRING", "DEFAULT" => "11"), "PAGE_NAVIGATION_SHOW_ALL" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_SHOW_ALL"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "PATH_TO_SMILE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_DEFAULT_PATH_TO_SMILE"), "TYPE" => "STRING", "DEFAULT" => "/bitrix/images/forum/smile/"), "WORD_LENGTH" => CForumParameters::GetWordLength(), "IMAGE_SIZE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_IMAGE_SIZE"), "TYPE" => "STRING", "DEFAULT" => 500), "MESSAGES_PER_PAGE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_MESSAGES_PER_PAGE"), "TYPE" => "STRING", "DEFAULT" => COption::GetOptionString("forum", "MESSAGES_PER_PAGE", "10")), "DATE_FORMAT" => CForumParameters::GetDateFormat(GetMessage("F_DATE_FORMAT"), "ADDITIONAL_SETTINGS"), "DATE_TIME_FORMAT" => CForumParameters::GetDateTimeFormat(GetMessage("F_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "AJAX_TYPE" => CForumParameters::GetAjaxType(), "SET_TITLE" => array(), "CACHE_TIME" => array())); $arComponentParameters["PARAMETERS"]["SHOW_RATING"] = array("NAME" => GetMessage("SHOW_RATING"), "TYPE" => "LIST", "VALUES" => array("" => GetMessage("SHOW_RATING_CONFIG"), "Y" => GetMessage("MAIN_YES"), "N" => GetMessage("MAIN_NO")), "MULTIPLE" => "N", "DEFAULT" => "", "PARENT" => "ADDITIONAL_SETTINGS", "REFRESH" => "Y"); if ($arCurrentValues["SHOW_RATING"] != "N") { $arRatingsList = array(); $db_res = CRatings::GetList($aSort = array("ID" => "ASC"), array("ACTIVE" => "Y", "ENTITY_ID" => "USER")); while ($res = $db_res->Fetch()) { $arRatingsList[$res["ID"]] = "[ " . $res["ID"] . " ] " . $res["NAME"]; } $arComponentParameters["PARAMETERS"]["RATING_ID"] = array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_RATING_ID"), "TYPE" => "LIST", "VALUES" => $arRatingsList, "DEFAULT" => "", "REFRESH" => "N"); $arComponentParameters["PARAMETERS"]["RATING_TYPE"] = array("NAME" => GetMessage("RATING_TYPE"), "TYPE" => "LIST", "VALUES" => array("" => GetMessage("RATING_TYPE_CONFIG"), "like" => GetMessage("RATING_TYPE_LIKE_TEXT"), "like_graphic" => GetMessage("RATING_TYPE_LIKE_GRAPHIC"), "standart_text" => GetMessage("RATING_TYPE_STANDART_TEXT"), "standart" => GetMessage("RATING_TYPE_STANDART_GRAPHIC")), "MULTIPLE" => "N", "DEFAULT" => "", "PARENT" => "ADDITIONAL_SETTINGS"); }
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } if (!CModule::IncludeModule("forum")) { return; } $arComponentParameters = array("GROUPS" => array("URL_TEMPLATES" => array("NAME" => GetMessage("F_URL_TEMPLATES"))), "PARAMETERS" => array("FID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_FID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["FID"]}'), "TID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_TID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["TID"]}'), "TITLE_SEO" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_TITLE_SEO"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["TITLE_SEO"]}'), "PERIOD" => array("PARENT" => "BASE", "NAME" => GetMessage("F_PERIOD"), "TYPE" => "STRING", "DEFAULT" => "600"), "SHOW" => array("PARENT" => "BASE", "NAME" => GetMessage("F_SHOW"), "TYPE" => "LIST", "REFRESH" => "Y", "MULTIPLE" => "Y", "VALUES" => array("STATISTIC" => GetMessage("F_SHOW_STATISTIC"), "BIRTHDAY" => GetMessage("F_SHOW_BIRTHDAY"), "USERS_ONLINE" => GetMessage("F_SHOW_USERS_ONLINE")), "DEFAULT" => array("USERS_ONLINE")), "URL_TEMPLATES_PROFILE_VIEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PROFILE_VIEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "profile_view.php?UID=#UID#"), "CACHE_TIME" => array(), "CACHE_TIME_USER_STAT" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("F_CACHE_TIME_USER_STAT"), "TYPE" => "STRING", "DEFAULT" => '600'), "WORD_LENGTH" => CForumParameters::GetWordLength())); if (!empty($arCurrentValues["SHOW"])) { $arComponentParameters["PARAMETERS"]["SHOW_FORUM_ANOTHER_SITE"] = array("PARENT" => "BASE", "NAME" => GetMessage("F_SHOW_FORUM_ANOTHER_SITE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"); $arComponentParameters["PARAMETERS"]["FORUM_ID"] = CForumParameters::GetForumsMultiSelect(GetMessage("F_FORUM_ID"), "BASE"); }
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } if (!CModule::IncludeModule("forum")) { return; } $arComponentParameters = array("GROUPS" => array("URL_TEMPLATES" => array("NAME" => GetMessage("F_URL_TEMPLATES"))), "PARAMETERS" => array("FID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_FID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["FID"]}'), "TID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_TID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["TID"]}'), "MID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_MID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["MID"]}'), "URL_TEMPLATES_READ" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_READ_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "read.php?FID=#FID#&TID=#TID#"), "URL_TEMPLATES_MESSAGE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message.php?FID=#FID#&TID=#TID#&MID=#MID#"), "URL_TEMPLATES_LIST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_LIST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "list.php?FID=#FID#"), "URL_TEMPLATES_MESSAGE_MOVE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_MOVE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message_move.php?FID=#FID#&TID=#TID#&MID_ARRAY=#MID_ARRAY#"), "URL_TEMPLATES_PROFILE_VIEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PROFILE_VIEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "profile_view.php?UID=#UID#"), "URL_TEMPLATES_TOPIC_NEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_TOPIC_NEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "topic_new.php?FID=#FID#"), "URL_TEMPLATES_SUBSCR_LIST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_SUBSCR_LIST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "subscr_list.php?FID=#FID#"), "URL_TEMPLATES_TOPIC_MOVE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_TOPIC_MOVE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "topic_move.php?FID=#FID#&TID=#TID#"), "URL_TEMPLATES_INDEX" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_INDEX_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "index.php"), "URL_TEMPLATES_PM_EDIT" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PM_EDIT_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "pm_edit.php"), "URL_TEMPLATES_MESSAGE_SEND" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_SEND_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message_send.php?UID=#UID#"), "URL_TEMPLATES_RSS" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_RSS_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "rss.php?TYPE=#TYPE#&MODE=#MODE#&IID=#IID#"), "URL_TEMPLATES_USER_POST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_USER_POST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "user_post.php?UID=#UID#&mode=#mode#"), "PATH_TO_SMILE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_DEFAULT_PATH_TO_SMILE"), "TYPE" => "STRING", "DEFAULT" => "/bitrix/images/forum/smile/"), "MESSAGES_PER_PAGE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_MESSAGES_PER_PAGE"), "TYPE" => "STRING", "DEFAULT" => COption::GetOptionString("forum", "MESSAGES_PER_PAGE", "10")), "DATE_FORMAT" => CComponentUtil::GetDateFormatField(GetMessage("F_DATE_FORMAT"), "ADDITIONAL_SETTINGS"), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("F_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "PAGE_NAVIGATION_TEMPLATE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "PAGE_NAVIGATION_WINDOW" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_WINDOW"), "TYPE" => "STRING", "DEFAULT" => "11"), "PAGE_NAVIGATION_SHOW_ALL" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_SHOW_ALL"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "WORD_LENGTH" => CForumParameters::GetWordLength(), "IMAGE_SIZE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_IMAGE_SIZE"), "TYPE" => "STRING", "DEFAULT" => 500), "SHOW_FIRST_POST" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_SHOW_FIRST_POST"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "SET_NAVIGATION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_SET_NAVIGATION"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "AJAX_TYPE" => CForumParameters::GetAjaxType(), "SET_PAGE_PROPERTY" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_SET_PAGE_PROPERTY"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "SET_TITLE" => array(), "CACHE_TIME" => array())); // rating $arComponentParameters["GROUPS"]["RATING_SETTINGS"] = array("NAME" => GetMessage("F_RATING_SETTINGS")); $arComponentParameters["PARAMETERS"]["SHOW_RATING"] = array("NAME" => GetMessage("SHOW_RATING"), "TYPE" => "LIST", "VALUES" => array("" => GetMessage("SHOW_RATING_CONFIG"), "Y" => GetMessage("MAIN_YES"), "N" => GetMessage("MAIN_NO")), "MULTIPLE" => "N", "DEFAULT" => "", "PARENT" => "RATING_SETTINGS"); if ($arCurrentValues["SHOW_RATING"] != "N") { $arRatingsList = array(); $db_res = CRatings::GetList($aSort = array("ID" => "ASC"), array("ACTIVE" => "Y", "ENTITY_ID" => "USER")); while ($res = $db_res->Fetch()) { $arRatingsList[$res["ID"]] = "[ " . $res["ID"] . " ] " . $res["NAME"]; } $arComponentParameters["PARAMETERS"]["RATING_ID"] = array("PARENT" => "RATING_SETTINGS", "NAME" => GetMessage("F_RATING_ID"), "TYPE" => "LIST", "VALUES" => $arRatingsList, "DEFAULT" => "", "REFRESH" => "Y"); $arComponentParameters["PARAMETERS"]["RATING_TYPE"] = array("NAME" => GetMessage("RATING_TYPE"), "TYPE" => "LIST", "VALUES" => array("" => GetMessage("RATING_TYPE_CONFIG"), "like" => GetMessage("RATING_TYPE_LIKE_TEXT"), "like_graphic" => GetMessage("RATING_TYPE_LIKE_GRAPHIC"), "standart_text" => GetMessage("RATING_TYPE_STANDART_TEXT"), "standart" => GetMessage("RATING_TYPE_STANDART_GRAPHIC")), "MULTIPLE" => "N", "DEFAULT" => "", "PARENT" => "RATING_SETTINGS"); /* $db_res = CGroup::GetList($by, $order, Array()); while($res = $db_res->Fetch()) $arGroupId[$res['ID']] = $res['NAME']." [".$res["ID"]."]"; $arComponentParameters["PARAMETERS"]["RATING_ROLES"] = array( "PARENT" => "RATING_SETTINGS", "NAME" => GetMessage("F_RATING_ROLES"), "TYPE" => "LIST", "VALUES" => $arGroupId, "DEFAULT" => "",
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } if (!CModule::IncludeModule("forum")) { return; } $arComponentParameters = array("GROUPS" => array("URL_TEMPLATES" => array("NAME" => GetMessage("F_URL_TEMPLATES"))), "PARAMETERS" => array("FID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_FID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["FID"]}'), "TID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_TID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["TID"]}'), "MID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_MID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["MID"]}'), "URL_TEMPLATES_INDEX" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_INDEX_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "index.php"), "URL_TEMPLATES_LIST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_LIST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "list.php?FID=#FID#"), "URL_TEMPLATES_READ" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_READ_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "read.php?FID=#FID#&TID=#TID#&MID=#MID#"), "URL_TEMPLATES_PROFILE_VIEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PROFILE_VIEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "profile_view.php?UID=#UID#"), "URL_TEMPLATES_TOPIC_SEARCH" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_TOPIC_SEARCH_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "topic_search.php"), "WORD_LENGTH" => CForumParameters::GetWordLength(), "IMAGE_SIZE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_IMAGE_SIZE"), "TYPE" => "STRING", "DEFAULT" => 300), "DATE_FORMAT" => CComponentUtil::GetDateFormatField(GetMessage("F_DATE_FORMAT"), "ADDITIONAL_SETTINGS"), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("F_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "SET_NAVIGATION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_SET_NAVIGATION"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "SET_TITLE" => array(), "CACHE_TIME" => array()));
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } if (!CModule::IncludeModule("forum")) { return; } $arComponentParameters = array("GROUPS" => array("URL_TEMPLATES" => array("NAME" => GetMessage("F_URL_TEMPLATES"))), "PARAMETERS" => array("FID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_FID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["FID"]}'), "USE_DESC_PAGE" => array("PARENT" => "BASE", "NAME" => GetMessage("F_USE_DESC_PAGE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "URL_TEMPLATES_INDEX" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_INDEX_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "index.php"), "URL_TEMPLATES_FORUMS" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_FORUMS_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "forums.php?GID=#GID#"), "URL_TEMPLATES_LIST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_LIST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "list.php?FID=#FID#"), "URL_TEMPLATES_READ" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_READ_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "read.php?FID=#FID#&TID=#TID#"), "URL_TEMPLATES_MESSAGE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message.php?FID=#FID#&TID=#TID#&MID=#MID#"), "URL_TEMPLATES_PROFILE_VIEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PROFILE_VIEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "profile_view.php?UID=#UID#"), "URL_TEMPLATES_MESSAGE_APPR" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_APPR_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message_appr.php?FID=#FID#"), "URL_TEMPLATES_TOPIC_NEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_TOPIC_NEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "topic_new.php?FID=#FID#"), "URL_TEMPLATES_SUBSCR_LIST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_SUBSCRIBE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "subscr_list.php?FID=#FID#"), "URL_TEMPLATES_TOPIC_MOVE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MOVE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "topic_move.php?FID=#FID#&TID=#TID#"), "URL_TEMPLATES_RSS" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_RSS_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "rss.php?TYPE=#TYPE#&MODE=#MODE#&IID=#IID#"), "PAGEN" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGEN"), "TYPE" => "STRING", "DEFAULT" => intVal($GLOBALS["NavNum"] + 1)), "TOPICS_PER_PAGE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_TOPICS_PER_PAGE"), "TYPE" => "STRING", "DEFAULT" => intVal(COption::GetOptionString("forum", "TOPICS_PER_PAGE", "10"))), "MESSAGES_PER_PAGE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_MESSAGES_PER_PAGE"), "TYPE" => "STRING", "DEFAULT" => intVal(COption::GetOptionString("forum", "MESSAGES_PER_PAGE", "10"))), "DATE_FORMAT" => CComponentUtil::GetDateFormatField(GetMessage("F_DATE_FORMAT"), "ADDITIONAL_SETTINGS"), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("F_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "PAGE_NAVIGATION_TEMPLATE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "PAGE_NAVIGATION_WINDOW" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_WINDOW"), "TYPE" => "STRING", "DEFAULT" => "11"), "SET_NAVIGATION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_SET_NAVIGATION"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "WORD_LENGTH" => CForumParameters::GetWordLength(), "CACHE_TIME" => array(), "SET_TITLE" => array()));
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } if (!CModule::IncludeModule("forum")) { return; } $arComponentParameters = array("GROUPS" => array("URL_TEMPLATES" => array("NAME" => GetMessage("F_URL_TEMPLATES"))), "PARAMETERS" => array("FID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_FID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["FID"]}'), "URL_TEMPLATES_INDEX" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_INDEX_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "index.php"), "URL_TEMPLATES_LIST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_LIST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "list.php?FID=#FID#"), "URL_TEMPLATES_READ" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_READ_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "read.php?FID=#FID#&TID=#TID#"), "URL_TEMPLATES_MESSAGE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message.php?FID=#FID#&TID=#TID#&MID=#MID#"), "URL_TEMPLATES_PROFILE_VIEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PROFILE_VIEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "profile_view.php?UID=#UID#"), "PAGEN" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGEN"), "TYPE" => "STRING", "DEFAULT" => intVal($GLOBALS["NavNum"] + 1)), "TOPICS_PER_PAGE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_TOPICS_PER_PAGE"), "TYPE" => "STRING", "DEFAULT" => intVal(COption::GetOptionString("forum", "TOPICS_PER_PAGE", "10"))), "MESSAGES_PER_PAGE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_MESSAGES_PER_PAGE"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => intVal(COption::GetOptionString("forum", "MESSAGES_PER_PAGE", "10"))), "PAGE_NAVIGATION_TEMPLATE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "PAGE_NAVIGATION_WINDOW" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_WINDOW"), "TYPE" => "STRING", "DEFAULT" => "11"), "FID_RANGE" => CForumParameters::GetForumsMultiSelect(GetMessage("F_DEFAULT_FID"), "ADDITIONAL_SETTINGS"), "DATE_FORMAT" => CComponentUtil::GetDateFormatField(GetMessage("F_DATE_FORMAT"), "ADDITIONAL_SETTINGS"), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("F_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "WORD_LENGTH" => CForumParameters::GetWordLength(), "SET_NAVIGATION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_SET_NAVIGATION"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "DISPLAY_PANEL" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_DISPLAY_PANEL"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "CACHE_TIME" => array(), "SET_TITLE" => array()));
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } if (!CModule::IncludeModule("forum")) { return; } $arComponentParameters = array("GROUPS" => array("URL_TEMPLATES" => array("NAME" => GetMessage("F_URL_TEMPLATES")), "ADMIN_SETTINGS" => array("NAME" => GetMessage("F_ADMIN_SETTINGS"))), "PARAMETERS" => array("USE_DESC_PAGE" => array("PARENT" => "BASE", "NAME" => GetMessage("F_USE_DESC_PAGE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "URL_TEMPLATES_FORUMS" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_FORUMS_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "forums.php?GID=#GID#"), "URL_TEMPLATES_LIST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_LIST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "list.php?FID=#FID#"), "URL_TEMPLATES_READ" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_READ_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "read.php?FID=#FID#&TID=#TID#"), "URL_TEMPLATES_MESSAGE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "read.php?FID=#FID#&TID=#TID#&MID=#MID#"), "URL_TEMPLATES_PROFILE_VIEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PROFILE_VIEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "profile_view.php?UID=#UID#"), "URL_TEMPLATES_MESSAGE_APPR" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_APPR_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message_appr.php?FID=#FID#&TID=#TID#"), "URL_TEMPLATES_RSS" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_RSS_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "rss.php?TYPE=#TYPE#&MODE=#MODE#&IID=#IID#"), "GID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_GROUP_ID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["GID"]}'), "FORUMS_PER_PAGE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_FORUMS_PER_PAGE"), "TYPE" => "STRING", "DEFAULT" => intVal(COption::GetOptionString("forum", "FORUMS_PER_PAGE", "10"))), "PAGE_NAVIGATION_TEMPLATE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "PAGE_NAVIGATION_WINDOW" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_WINDOW"), "TYPE" => "STRING", "DEFAULT" => ""), "FID" => CForumParameters::GetForumsMultiSelect(GetMessage("F_DEFAULT_FID"), "ADDITIONAL_SETTINGS"), "DATE_FORMAT" => CComponentUtil::GetDateFormatField(GetMessage("F_DATE_FORMAT"), "ADDITIONAL_SETTINGS"), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("F_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "WORD_LENGTH" => CForumParameters::GetWordLength(false, "ADDITIONAL_SETTINGS"), "SHOW_FORUMS_LIST" => array("PARENT" => "ADMIN_SETTINGS", "NAME" => GetMessage("F_SHOW_FORUMS_LIST"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "SHOW_FORUM_ANOTHER_SITE" => array("PARENT" => "ADMIN_SETTINGS", "NAME" => GetMessage("F_SHOW_FORUM_ANOTHER_SITE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "SET_NAVIGATION" => CForumParameters::GetSetNavigation(GetMessage("F_SET_NAVIGATION"), "ADDITIONAL_SETTINGS"), "SET_TITLE" => array(), "CACHE_TIME" => array()));
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } if (!CModule::IncludeModule("forum")) { return; } $arComponentParameters = array("GROUPS" => array("URL_TEMPLATES" => array("NAME" => GetMessage("F_URL_TEMPLATES"))), "PARAMETERS" => array("UID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_UID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["UID"]}'), "mode" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_MODE"), "TYPE" => "LIST", "VALUES" => array("all" => GetMessage("F_MESSAGE_ALL"), "lt" => GetMessage("F_MESSAGE_LT"), "lta" => GetMessage("F_MESSAGE_LTA")), "ADDITIONAL_VALUES" => "N", "DEFAULT" => "all"), "URL_TEMPLATES_LIST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_LIST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "list.php?FID=#FID#"), "URL_TEMPLATES_READ" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_READ_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "read.php?FID=#FID#&TID=#TID#"), "URL_TEMPLATES_MESSAGE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message.php?FID=#FID#&TID=#TID#&MID=#MID#"), "URL_TEMPLATES_PROFILE_VIEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PROFILE_VIEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "profile_view.php?UID=#UID#"), "URL_TEMPLATES_USER_LIST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_USER_LIST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "user_list.php"), "FID_RANGE" => CForumParameters::GetForumsMultiSelect(GetMessage("F_DEFAULT_FID"), "ADDITIONAL_SETTINGS"), "MESSAGES_PER_PAGE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_MESSAGES_PER_PAGE"), "TYPE" => "STRING", "DEFAULT" => COption::GetOptionString("forum", "MESSAGES_PER_PAGE", "10")), "DATE_FORMAT" => CComponentUtil::GetDateFormatField(GetMessage("F_DATE_FORMAT"), "ADDITIONAL_SETTINGS"), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("F_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "NAME_TEMPLATE" => array("TYPE" => "LIST", "NAME" => GetMessage("F_NAME_TEMPLATE"), "VALUES" => CComponentUtil::GetDefaultNameTemplates(), "MULTIPLE" => "N", "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "", "PARENT" => "ADDITIONAL_SETTINGS"), "PAGE_NAVIGATION_TEMPLATE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "PAGE_NAVIGATION_WINDOW" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_WINDOW"), "TYPE" => "STRING", "DEFAULT" => "11"), "PATH_TO_SMILE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_DEFAULT_PATH_TO_SMILE"), "TYPE" => "STRING", "DEFAULT" => "/bitrix/images/forum/smile/"), "WORD_LENGTH" => CForumParameters::GetWordLength(), "SET_NAVIGATION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_SET_NAVIGATION"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "SET_TITLE" => array(), "CACHE_TIME" => array()));
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } if (!CModule::IncludeModule("forum")) { return; } $arTemplateParameters = array("TMPLT_SHOW_TOP" => array("NAME" => GetMessage("F_TMPLT_SHOW_TOP"), "TYPE" => "STRING", "ROWS" => "5", "DEFAULT" => ""), "TMPLT_SHOW_BOTTOM" => array("NAME" => GetMessage("F_TMPLT_SHOW_BOTTOM"), "TYPE" => "LIST", "VALUES" => array("SET_BE_READ" => GetMessage("F_SET_BE_READ")), "DEFAULT" => "SET_BE_READ", "ADDITIONAL_VALUES" => "Y"), "TMPLT_SHOW_MENU" => array("NAME" => GetMessage("F_TMPLT_SHOW_MENU"), "TYPE" => "LIST", "VALUES" => array("BOTH" => GetMessage("F_TMPLT_SHOW_MENU_BOTH"), "TOP" => GetMessage("F_TMPLT_SHOW_MENU_TOP"), "BOTTOM" => GetMessage("F_TMPLT_SHOW_MENU_BOTTOM"), "NONE" => GetMessage("F_TMPLT_SHOW_MENU_NONE")), "DEFAULT" => "TOP"), "TMPLT_SHOW_AUTH_FORM" => array("NAME" => GetMessage("F_TMPLT_SHOW_AUTH_FORM"), "TYPE" => "LIST", "VALUES" => array("LINK" => GetMessage("F_LINK"), "INPUT" => GetMessage("F_INPUTS")), "DEFAULT" => "INPUT"), "TMPLT_SHOW_ADDITIONAL_MARKER" => array("NAME" => GetMessage("F_TMPLT_SHOW_ADDITIONAL_MARKER"), "TYPE" => "STRING", "DEFAULT" => "(new)"), "WORD_WRAP_CUT" => CForumParameters::GetWordWrapCut(false, false), "WORD_LENGTH" => CForumParameters::GetWordLength(false, false), "SMILE_TABLE_COLS" => array("NAME" => GetMessage("F_SMILE_TABLE_COLS"), "TYPE" => "STRING", "DEFAULT" => "3"), "SHOW_TAGS" => array("NAME" => GetMessage("F_SHOW_TAGS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "PATH_TO_SMILE" => array("NAME" => GetMessage("F_DEFAULT_PATH_TO_SMILE"), "TYPE" => "STRING", "DEFAULT" => "/bitrix/images/forum/smile/"), "PATH_TO_ICON" => array("NAME" => GetMessage("F_DEFAULT_PATH_TO_ICON"), "TYPE" => "STRING", "DEFAULT" => "/bitrix/images/forum/icon/"), "PAGE_NAVIGATION_TEMPLATE" => array("NAME" => GetMessage("F_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "HIDE_USER_ACTION" => array("NAME" => GetMessage("F_HIDE_USER_ACTION"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"));
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } if (!CModule::IncludeModule("forum")) { return; } $arComponentParameters = array("GROUPS" => array("URL_TEMPLATES" => array("NAME" => GetMessage("F_URL_TEMPLATES"))), "PARAMETERS" => array("FID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_FID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["FID"]}'), "TID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_TID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["TID"]}'), "URL_TEMPLATES_INDEX" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_INDEX_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "index.php"), "URL_TEMPLATES_LIST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_LIST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "list.php?FID=#FID#"), "URL_TEMPLATES_READ" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_READ_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "read.php?FID=#FID#&TID=#TID#&MID=#MID#"), "URL_TEMPLATES_MESSAGE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message.php?FID=#FID#&TID=#TID#&MID=#MID#"), "URL_TEMPLATES_MESSAGE_APPR" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_APPR_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message_appr.php?FID=#FID#&TID=#TID#"), "URL_TEMPLATES_PROFILE_VIEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PROFILE_VIEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "profile_view.php?UID=#UID#"), "URL_TEMPLATES_PM_EDIT" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PM_EDIT_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "pm_edit.php"), "URL_TEMPLATES_MESSAGE_SEND" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_SEND_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message_send.php?UID=#UID#"), "URL_TEMPLATES_TOPIC_NEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_TOPIC_NEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "topic_new.php?FID=#FID#"), "MESSAGES_PER_PAGE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_MESSAGES_PER_PAGE"), "TYPE" => "STRING", "DEFAULT" => COption::GetOptionString("forum", "MESSAGES_PER_PAGE", "10")), "PAGE_NAVIGATION_TEMPLATE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "PAGE_NAVIGATION_WINDOW" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_WINDOW"), "TYPE" => "STRING", "DEFAULT" => "11"), "WORD_LENGTH" => CForumParameters::GetWordLength(), "IMAGE_SIZE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_IMAGE_SIZE"), "TYPE" => "STRING", "DEFAULT" => 300), "DATE_FORMAT" => CComponentUtil::GetDateFormatField(GetMessage("F_DATE_FORMAT"), "ADDITIONAL_SETTINGS"), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("F_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "SET_NAVIGATION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_SET_NAVIGATION"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "SET_TITLE" => array(), "CACHE_TIME" => array()));