Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
stas_dancer

Помогите вывести статистику в ip.Content

Recommended Posts

Проблема такая, что значение переменных, которые используются на форуме, не передаются на content. помогите исправить. Точнее помогите вывести статистику форума на странице контента

<if test="showTotals:|:$this->settings['show_totals']">
<div id="board_stats"><!--SV Skins Hooks-->		
	<ul class="ipsType_small ipsList_inline">
		<li class="clear">
			{$this->lang->words['total_posts']}
						<span class="value">{$stats['info']['total_posts']}</span>				
		</li>
		<li class="clear">
					   {$this->lang->words['total_members']}
			<span class="value">{$stats['info']['mem_count']}</span>
		</li>
		<li class="clear">
							{$this->lang->words['newest_member']}
			{IPSMember::makeProfileLink( $stats['info']['last_mem_name'], $stats['info']['last_mem_id'], $stats['info']['last_mem_seo'], 'value' )}				
		</li>
		<li class="clear" data-tooltip="{$stats['info']['most_time']}">
							{$this->lang->words['online_at_once']}
			<span class="value">{$stats['info']['most_online']}</span>				
		</li>
	</ul>
</div>
</if>

post-57112-0-57727100-1410788949_thumb.png

Edited by stas_dancer

Share this post


Link to post
Share on other sites

$stats['info']

заменить на

 

$this->caches['stats']

Share this post


Link to post
Share on other sites

$stats['info']

заменить на

 

$this->caches['stats']

 

 

<if test="showTotals:|:$this->settings['show_totals']">
<div id="board_stats"><!--SV Skins Hooks-->		
	<ul class="ipsType_small ipsList_inline">
		<li class="clear">
			{$this->lang->words['total_posts']}
						<span class="value">{$this->caches['stats']['total_posts']}</span>				
		</li>
		<li class="clear">
					   {$this->lang->words['total_members']}
			<span class="value">{$this->caches['stats']['mem_count']}</span>
		</li>
		<li class="clear">
							{$this->lang->words['newest_member']}
			{IPSMember::makeProfileLink( $this->caches['stats']['last_mem_name'], $this->caches['stats']['last_mem_id'], $this->caches['stats']['last_mem_seo'], 'value' )}				
		</li>
		<li class="clear" data-tooltip="{$stats['info']['most_time']}">
							{$this->lang->words['online_at_once']}
			<span class="value">{$this->caches['stats']['most_online']}</span>				
		</li>
	</ul>
</div>
</if>

 

поменял, но не все вывелось

post-57112-0-28059200-1410792897_thumb.png

Share this post


Link to post
Share on other sites

Спасибо за помощь, нашел в чем проблема. В кэше в разделе stats взял другие ключи.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...