Перейти к публикации

Вопрос

Тык

[[Template forums/front/topics/postContainer is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

 

{{$stats['follower'] = (int) \IPS\Db::i()->select( 'COUNT(*)', 'core_follow', array( 'follow_rel_id=?', $comment->author()->member_id ) )->first();}}
{{$TopicStarter = \IPS\Db::i()->select( "starter_id", "forums_topics", "tid = $comment->topic_id")->first();}}
{{$group = \IPS\Member::load( $comment->author()->member_id )->groups;}}
{{$now = time();}}
{{$joined = strtotime($comment->author()->joined);}}
{{$days =  floor(($now - $joined)/(60*60*24));}}
{{$days = ($days == '0' ? '1' : $days);}}
{{$stats['ago'] = $days;}}
{{$stats['ratio'] =  number_format($comment->author()->member_posts/$days,2);}}
{{$lastUsedDevice = $comment->author()->lastUsedDevice();}}
{{$clubs = \IPS\Member\Club::clubs( $comment->author(), NULL, 'name', TRUE );}}
{{$idField = $comment::$databaseColumnId;}}
{{$itemClassSafe = str_replace( '\\', '_', mb_substr( $comment::$itemClass, 4 ) );}}
{{if $comment->isIgnored()}}
	<div class='ipsComment ipsComment_ignored ipsType_light' id='elIgnoreComment_{$comment->$idField}' data-ignoreCommentID='elComment_{$comment->$idField}' data-ignoreUserID='{$comment->author()->member_id}'>
		{lang="ignoring_content" sprintf="$comment->author()->name"} <a href='#elIgnoreComment_{$comment->$idField}_menu' data-ipsMenu data-ipsMenu-menuID='elIgnoreComment_{$comment->$idField}_menu' data-ipsMenu-appendTo='#elIgnoreComment_{$comment->$idField}' data-action="ignoreOptions" title='{lang="see_post_ignore_options"}' class='ipsType_blendLinks'>{lang="options"} <i class='fa fa-caret-down'></i></a>
		<ul class='ipsMenu ipsHide' id='elIgnoreComment_{$comment->$idField}_menu'>
			<li class='ipsMenu_item ipsJS_show' data-ipsMenuValue='showPost'><a href='#'>{lang="show_this_post"}</a></li>
			<li class='ipsMenu_sep ipsJS_show'><hr></li>
			<li class='ipsMenu_item' data-ipsMenuValue='stopIgnoring'><a href='{url="app=core&module=system&controller=ignore&do=remove&id={$comment->author()->member_id}" seoTemplate="ignore"}'>{lang="stop_ignoring_posts_by" sprintf="$comment->author()->name"}</a></li>
			<li class='ipsMenu_item'><a href='{url="app=core&module=system&controller=ignore" seoTemplate="ignore"}'>{lang="change_ignore_preferences"}</a></li>
		</ul>
	</div>
{{endif}}

<a id='comment-{$comment->$idField}'></a>
<article {{if $comment->author()->hasHighlightedReplies()}}data-memberGroup="{$comment->author()->member_group_id}" {{endif}} id='elComment_{$comment->$idField}' class='cPost ipsBox {{if $otherClasses}}{$otherClasses}{{endif}} ipsComment {{if ( settings.reputation_enabled and settings.reputation_highlight and $comment->reactionCount() >= settings.reputation_highlight ) OR $comment->isFeatured()}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{if $comment->author()->hasHighlightedReplies()}}ipsComment_highlighted{{endif}}{{if $comment->isIgnored()}}ipsHide{{endif}} {{if $comment->hidden() OR $item->hidden() === -2}}ipsModerated{{endif}}'>
	{{if $item->isQuestion() and !$comment->new_topic}}
		{template="postRating" group="topics" app="forums" params="$item, $comment, $votes"}
	{{endif}}
	<aside class='ipsComment_author cAuthorPane ipsColumn ipsColumn_medium'>
	    <div class='author_info'>
			<div class="wa_pContainer" itemscope="" itemtype="http://schema.org/Person">
              <div class='textnikkk'>
                  <h3 class='ipsType_reset ipsStreamItem_title ipsTruncate ipsTruncate_line' itemprop="creator" itemscope itemtype="http://schema.org/Person">
          	   <strong itemprop="name">{$comment->author()->link( $comment->warningRef() )|raw}</strong></h3>
                  </div>
				<div class="pContainer_b1">
					{template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
				</div>
              
              		{{$coverPhoto = $comment->author()->coverPhoto();}}
				    {{if $coverPhoto->file}}
					<div class="pc_coverphoto" style="background-image: url('{$coverPhoto->file->url}') !important;">
              </div>
			          {{else}}
			          {{endif}}
              
 
 <div class='textGroprank'>
   {{if $comment->author()->rank['image'] && $comment->author()->member_id}}
				{$comment->author()->rank['image']|raw}
			{{endif}}</div>
 <!-- Плагин репутации -->
{template="reputationBadge" group="global" app="core" params="$comment->author()"}
<!-- Плагин репутации -->               
 <div class='textGrop'>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}
			{{if \IPS\Member\Group::load( $comment->author()->member_group_id )->g_icon }}
				<img src='{file="$comment->author()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'>
			{{endif}}
</div>
              
                    
<li class="uip">
<span class="leftinfo"><i class="fa fa-address-card" aria-hidden="true"></i> ID:</span>
<span class="rightinfo">{$comment->author()->member_id}</span>
</li>         
<li class="uip">
<span class="leftinfo"><i class="fa fa-star-half-o"></i> Звание:</span>
 {{if $comment->author()->member_title && $comment->author()->member_id}} 
<span class="rightinfo">{$comment->author()->member_title}</span>
 {{elseif $comment->author()->rank['title'] && $comment->author()->member_id}} 
<span class="rightinfo">{$comment->author()->rank['title']}</span>
  {{endif}}
</li>
<li class="uip">
<span class="leftinfo"><i class="fa fa-line-chart" aria-hidden="true"></i> Читателей:</span>
<span class="rightinfo">{$stats['follower']}</span>
</li>
<li class="uip">
<span class="leftinfo"><i class="fa fa-signal" aria-hidden="true"></i> Постов в день:</span>
<span class="rightinfo">{$stats['ratio']}</span>
</li>
<li class="uip">
<span class="leftinfo"><i class="fa fa-power-off"></i> Активность:</span>
<span class="rightinfo">{{if $comment->author()->isOnline()}} <strong><span style="color:green">Online</span></strong>{{else}}<span style="rightinfo">{datetime="$comment->author()->last_activity"}</span> {{endif}} </span>
<li class="uip">
 {{$date_joined = floor((strtotime("now")-strtotime("{$comment->author()->joined}"))/86400) ;}}  
<span class="leftinfo"><i class="fa fa-calendar"></i> C нами уже:</span>
<span class="rightinfo">{$date_joined} дней</span>
</li>
<li class="uip"> 
<span class="leftinfo"><i class="fa fa-info-circle"></i> Возраст:</span>
<span class="rightinfo">{$comment->author()->age()}</span>
</li>
<li class="uip"> 
<span class="leftinfo"><i class="fa fa-desktop"></i> Устройство:</span>
<span class="rightinfo">{$lastUsedDevice->userAgent()->platform}</span>
</li>
<li class="uip">
<span class="leftinfo"><i class="fa fa-trophy fa-lg" aria-hidden="true"></i> {lang="members_days_won_count"}</span>
<span class="rightinfo">{number="$comment->author()->getReputationDaysWonCount()"}</span>
</li>      
             			                         
            
            <div class="wa_pContainer_b2">
			<div class="wa_pContainer_b2_1">
			<div>
			<span class="wa_pContainer_b2_m">Тем</span>
			</div>
			<span style="font-size: 15px;">{{$where[] = "starter_id = " . $comment->author()->member_id;}}
{{$author_topics = \IPS\forums\Topic::getItemsWithPermission( $where, NULL, 0 );}}
{{$topics_count = count($author_topics);}} {$topics_count}</span>
			</div>
            <div class="wa_pContainer_b2_1">
			<div>
			<span class="wa_pContainer_b2_m">Сообщений</span>
			</div>
			<span style="font-size: 15px;">{$comment->author()->member_posts}</span>
			</div>
			</div>
			</div>
		</div>
	</aside>
	<div class='ipsColumn ipsColumn_fluid'>
		{template="post" group="topics" app="forums" params="$item, $comment, $item::$formLangPrefix . 'comment', $item::$application, $item::$module, $itemClassSafe"}
	</div>
 
</article>

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Рекомендованные сообщения

  • 0

У тебя там всего полно что подходило к 4.2 от плагинов для 4.1 соответственно не факт что будет работать в 4.3

Ты поставь чисто профиль тот что ты поставил у себя только без этого месива

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах
  • 0

Порешал, просьба удалить! @.V.I.P.

Проблема была из-за строки устройство

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах
Guest
Эта тема закрыта для публикации сообщений.

  • Сейчас на странице   0 пользователей

    Нет пользователей, просматривающих эту страницу.

×
×
  • Создать...