Список подфорумов через запятую
Будет как-то так.
Редактируем файл engine\bullet_energy\actions\site\index.php
найдем:
private function _getChildTree($id = 0, $childTree = '')
{
..
}
заменить на:
private function _getChildTree($id = 0, $childTree = array())
{
foreach ($this->_fetchContent as $child) {
if($child['tree_parent_id'] != $id) {
continue ;
//:TODO: проверить со старым вариантом возможен откат цикла без результата ?
}
if(in_array($child['tree_id'], parent::$cache['access_read_topic_tree']['array'])) {
if($child['read'] and $child['tree_type'] != 2 and parent::$is_logged) {
$child['childMarkers'] = 'Unread' ;
$child['childMarkersTitle'] = parent::$bullet_energy_lang['tree_6'] ;
}
if(!$child['read'] and $child['tree_type'] != 2 and parent::$is_logged) {
$child['childMarkers'] = 'Read' ;
$child['childMarkersTitle'] = parent::$bullet_energy_lang['tree_7'] ;
}
if(!parent::$is_logged) {
$child['childMarkers'] = 'Unread' ;
$child['childMarkersTitle'] = parent::$bullet_energy_lang['tree_6'] ;
}
if(!$child['read'] and $child['tree_type'] == 2) {
$child['childMarkers'] = 'Linck' ;
$child['childMarkersTitle'] = parent::$bullet_energy_lang['tree_8'] ;
}
$child['refererChild'] = $child['tree_type'] == 2 ? '<a title="' . htmlspecialchars(parent::$cache['tree'][$child['tree_id']]['constant_information']['description']) . '" href="' . parent::$cache['tree'][$child['tree_id']]['constant_information']['additional_data'] . '">' : parent::$cache['tree'][$child['tree_id']]['link'] ;
$childTree[] = $child['refererChild'] . parent::$cache['tree'][$child['tree_id']]['tree_title'] . '</a>' ;
}
//$childTree[] = $this->_getChildTree($child['tree_id'], $childTree) ;
}
//$childTree = implode(', ', $childTree);
return implode(', ', $childTree) ;
}