Хак позволяющий выводить статистику форума в "Создании новой темы":
В файле: /engine/bullet_energy/action/site/newtopic.phpНайти:
return parent::$helper->setTplMainBlock($this->_setTplAddTopic($fetchCont
ent), array(parent::$bullet_energy_lang['topic_new_3'] . parent::$cache['tree'][parent::$globalParam&
#91;'id']]['tree_title'])) ;
Заменить на:
// show forum stats by RDN Team
//return parent::$helper->setTplMainBlock($this->_setTplAddTopic($fetchCont
ent), array(parent::$bullet_energy_lang['topic_new_3'] . parent::$cache['tree'][parent::$globalParam&
#91;'id']]['tree_title'])) ;
return parent::$helper->setTplMainBlock($this->_setTplAddTopic($fetchCont
ent), array(parent::$bullet_energy_lang['topic_new_3'] . parent::$cache['tree'][parent::$globalParam&
#91;'id']]['tree_title']), array('widget' => parent::$helper->getSidebar()) ) ;
В файле: /engine/bullet_energy/helper/primary.phpНайти:
if(!in_array(parent::$action, array(
'index',
'categories',
'showtopic',
'trophies')
Заменить на:
if(!in_array(parent::$action, array(
'index',
'categories',
'showtopic',
'newtopic',
'trophies')
Влияния на производительность не оказывает. Запросы не добавляет.
Если парсер сожрет что-то добавил так же копию во вложения.