Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

нет отображения

Featured Replies

Posted

Добавил в postcont. пару новых пунктов,репутация и т.д. показывает только на 1 пользователе, меняю местом вообще не показывает.
Код который вставляю:

<li class='cSTSno ipsResponsive_hidePhone'><span class='st'><i class="fa fa-id-card-o"></i> </span><span class='rightSTS2'> Telegram:{{$niks = preg_replace('/<wbr>/', '', $comment->author()->contentProfileFields()['core_pfieldgroups_1'][28]);}}</span>
	 {{if $comment->author()->contentProfileFields()['core_pfieldgroups_1'][28]}}</span>
{$niks}</span>
              <li class='cSTSno ipsResponsive_hidePhone'><span class='st'><i class="fa fa-thumbs-up"></i> </span><span class='rightSTS2'> Репутация:{template="reputationBadge" group="global" app="core" params="$comment->author()"}</span></li>
		
        <li class='cSTSno ipsResponsive_hidePhone'><span class='st'><i class="fa fa-commenting-o"></i> </span><span class='rightSTS2'> Сообщений:{number="$comment->author()->member_posts"}</span></li>
                  <li class='cSTSno ipsResponsive_hidePhone'><span class='st'><i class="fa fa-exclamation-triangle"></i> </span><span class='rightSTS2'>Предупреждений:{number="$comment->author()->warn_level"}</span></li>
<li class='cSTSno ipsResponsive_hidePhone'><span class='st'><i class="fa fa-sort-numeric-asc"></i> </span><span class='rightSTS2'> ID Пользователя: {$comment->author()->member_id}</span></li>
{{endif}}

 

Код postcontainer:
 

{{$idField = $comment::$databaseColumnId;}}
{{$itemClassSafe = str_replace( '\\', '_', mb_substr( $comment::$itemClass, 4 ) );}}
{{if $comment->isIgnored()}}
<div class='ipsComment ipsCommefa fa-circlent_ignored ipsType_light' id='elIgnoreComment_{$comment->$idField}' data-ignoreCommentID='elComment_{$comment->$idField}' data-ignoreUserID='{$comment->author()->member_id}'>
	<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}}

	<div class='cAuthorPane cAuthorPane_mobile ipsResponsive_showPhone ipsResponsive_block'>
		<h3 class='ipsType_sectionHead cAuthorPane_author ipsResponsive_showPhone ipsResponsive_inlineBlock ipsType_break ipsType_blendLinks ipsTruncate ipsTruncate_line'>
			{template="userLink" group="global" app="core" params="$comment->author(), $comment->warningRef(), $comment->author()->group['g_id']"}
			<span class='ipsResponsive_showPhone ipsResponsive_inline'>&nbsp;&nbsp;{template="reputationBadge" group="global" app="core" params="$comment->author()"}</span>
		</h3>
		<div class='cAuthorPane_photo'>
			{template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
		</div>
	</div>
	<aside class='ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone'>
		
		
		<ul class='cAuthorPane_info ipsList_reset'>
		{{if $comment->author()->member_title && $comment->author()->member_id}}
				<li class='ipsType_break'>{$comment->author()->member_title}</li>
			{{elseif $comment->author()->rank['title'] && $comment->author()->member_id}}
				<li class='ipsType_break'>{$comment->author()->rank['title']}</li>			
			{{endif}}
			<li class='cAuthorPane_photo'>
				{template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
			</li>
          <h3 class='ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break'><strong>{$comment->author()->link( $comment->warningRef() )|raw}</strong> <span class='ipsResponsive_showPhone ipsResponsive_inline'>&nbsp;&nbsp;{template="reputationBadge" group="global" app="core" params="$comment->author()"}</span></h3>
{{if $comment->author()->member_group_id == 4}} <!-- На месте X пишем ID группы -->
<div id="layer1" style="text-align: center;">
	<span style="font-size:21px;"><strong><span style="color:#2ecc71;">Команда форума</span></strong></span>
</div>
{{endif}}
{{if $comment->author()->member_group_id == 17}} <!-- На месте X пишем ID группы -->
{{endif}} 
{{if $comment->author()->member_id == 1}} <!-- На месте X пишем ID группы -->
<p>
	<span style="font-size:18px;"><u><strong><span style="color:#ecf0f1;"><a href="http://youplay.space/buyjob/">Другие услуги</a>&nbsp;</span><span style="color:#f1c40f;">(&larr;КЛИКНИ)</span></strong></u></span>
</p>
{{endif}}       
       {{if $comment->author()->member_group_id == 20}} <!-- На месте X пишем ID группы -->
<p style="text-align: center;">
	<span style="color:#FF0000;"><b><span style="font-size:14px;"><strong>Обратите внимание! Пользователь заблокирован. Не совершайте с ним сделок</strong></span><b> </b></b></span>
</p>     
{{endif}} 
</li>
		</ul>
	</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>


Код который получается у меня в итоге
 

{{$idField = $comment::$databaseColumnId;}}
{{$itemClassSafe = str_replace( '\\', '_', mb_substr( $comment::$itemClass, 4 ) );}}
{{if $comment->isIgnored()}}
<div class='ipsComment ipsCommefa fa-circlent_ignored ipsType_light' id='elIgnoreComment_{$comment->$idField}' data-ignoreCommentID='elComment_{$comment->$idField}' data-ignoreUserID='{$comment->author()->member_id}'>
	<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}}

	<div class='cAuthorPane cAuthorPane_mobile ipsResponsive_showPhone ipsResponsive_block'>
		<h3 class='ipsType_sectionHead cAuthorPane_author ipsResponsive_showPhone ipsResponsive_inlineBlock ipsType_break ipsType_blendLinks ipsTruncate ipsTruncate_line'>
			{template="userLink" group="global" app="core" params="$comment->author(), $comment->warningRef(), $comment->author()->group['g_id']"}
			<span class='ipsResponsive_showPhone ipsResponsive_inline'>&nbsp;&nbsp;{template="reputationBadge" group="global" app="core" params="$comment->author()"}</span>
		</h3>
		<div class='cAuthorPane_photo'>
			{template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
		</div>
	</div>
	<aside class='ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone'>
		
		
		<ul class='cAuthorPane_info ipsList_reset'>
		{{if $comment->author()->member_title && $comment->author()->member_id}}
				<li class='ipsType_break'>{$comment->author()->member_title}</li>
			{{elseif $comment->author()->rank['title'] && $comment->author()->member_id}}
				<li class='ipsType_break'>{$comment->author()->rank['title']}</li>			
			{{endif}}
			<li class='cAuthorPane_photo'>
				{template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
			</li>
          <h3 class='ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break'><strong>{$comment->author()->link( $comment->warningRef() )|raw}</strong> <span class='ipsResponsive_showPhone ipsResponsive_inline'>&nbsp;&nbsp;{template="reputationBadge" group="global" app="core" params="$comment->author()"}</span></h3>
{{if $comment->author()->member_group_id == 4}} <!-- На месте X пишем ID группы -->
<div id="layer1" style="text-align: center;">
	<span style="font-size:21px;"><strong><span style="color:#2ecc71;">Команда форума</span></strong></span>
</div>
{{endif}}
<li class='cSTSno ipsResponsive_hidePhone'><span class='st'><i class="fa fa-id-card-o"></i> </span><span class='rightSTS2'> Telegram:{{$niks = preg_replace('/<wbr>/', '', $comment->author()->contentProfileFields()['core_pfieldgroups_1'][28]);}}</span>
	 {{if $comment->author()->contentProfileFields()['core_pfieldgroups_1'][28]}}</span>
{$niks}</span>
              <li class='cSTSno ipsResponsive_hidePhone'><span class='st'><i class="fa fa-thumbs-up"></i> </span><span class='rightSTS2'> Репутация:{template="reputationBadge" group="global" app="core" params="$comment->author()"}</span></li>
		
        <li class='cSTSno ipsResponsive_hidePhone'><span class='st'><i class="fa fa-commenting-o"></i> </span><span class='rightSTS2'> Сообщений:{number="$comment->author()->member_posts"}</span></li>
                  <li class='cSTSno ipsResponsive_hidePhone'><span class='st'><i class="fa fa-exclamation-triangle"></i> </span><span class='rightSTS2'>Предупреждений:{number="$comment->author()->warn_level"}</span></li>
<li class='cSTSno ipsResponsive_hidePhone'><span class='st'><i class="fa fa-sort-numeric-asc"></i> </span><span class='rightSTS2'> ID Пользователя: {$comment->author()->member_id}</span></li>         
  {{endif}} 
{{if $comment->author()->member_id == 1}} <!-- На месте X пишем ID группы -->
<p>
	<span style="font-size:18px;"><u><strong><span style="color:#ecf0f1;"><a href="http://youplay.space/buyjob/">Другие услуги</a>&nbsp;</span><span style="color:#f1c40f;">(&larr;КЛИКНИ)</span></strong></u></span>
</p>
{{endif}}       
       {{if $comment->author()->member_group_id == 20}} <!-- На месте X пишем ID группы -->
<p style="text-align: center;">
	<span style="color:#FF0000;"><b><span style="font-size:14px;"><strong>Обратите внимание! Пользователь заблокирован. Не совершайте с ним сделок</strong></span><b> </b></b></span>
</p>     
{{endif}} 
</li>
		</ul>
	</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>

Демонстрация (как должно быть у всех,а есть только у 1 юзера):
https://pp.userapi.com/c850636/v850636659/4f99d/K1jEhVDL5LM.jpg

Что имеем у других юзеров:

https://pp.userapi.com/c850732/v850732659/527a0/xQRyUKWaKIE.jpg

Скрины перезалил (1 скрин - что имеем у др. юзеров; 2 скрин - что есть только 1 юзера)

8LBhRLqJiiU.jpg

VrcV9OSsDo4.jpg

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.