+0.76
Рейтинг
0.98
Сила

Андрей Владимирович

{count($aUsersFriend)} — кол-во друзей
{count($aBlogsOwner)} — кол-во созданных блогов
{count($aBlogAdministrators)} — кол-во администрируемых блогов
{count($aBlogModerators)} — кол-во модерируемых блогов
{count($aBlogUsers)} — кол-во читаемых блогов
  • avatar a1ter
  • 1
1. Файл templates/language/russian.php
2. Особенности шаблонов Livestreet для новичков — это ссылка можно нажать
3. Это платный плагин
4. В шапке ЭТОГО сайта, есть большая ЗЕЛЕНАЯ стрелочка, нужно нажать туда, там есть много виджетов аля ворпресс
5. templates\skin\new\notify
Пишу полностью что и как.
Открываем файл /classes/hooks/HookStatisticsPerformance.class.php
После
class HookStatisticsPerformance extends Hook {
	public function RegisterHook() {
		$this->AddHook('template_body_end','Statistics',__CLASS__,-1000);


Добавляем
$this->AddHook('topic_show','TopicShow');


Далее, после
public function Statistics() {
		$oEngine=Engine::getInstance();
		
		$iTimeInit=$oEngine->GetTimeInit();
		$iTimeFull=round(microtime(true)-$iTimeInit,3);
		$this->Viewer_Assign('iTimeFullPerformance',$iTimeFull);
		
		$aStats=$oEngine->getStats();
		$aStats['cache']['time']=round($aStats['cache']['time'],5);
		$this->Viewer_Assign('aStatsPerformance',$aStats);
		
		$this->Viewer_Assign('bIsShowStatsPerformance',Router::GetIsShowStats());
		return $this->Viewer_Fetch('statistics_performance.tpl');
	}


Добавляем
public function TopicShow($aParams) {
        $oTopic=$aParams['oTopic'];
        $oTopic->setCountRead($oTopic->getCountRead()+1);
        $this->Topic_UpdateTopic($oTopic);
    }


В шаблоне добавляем в topic.tpl или в topic_list.tpl
{$oTopic->getCountRead()}