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

Всем привет)
Дело в том,что город вылезает за приделы самого postContainer
Вот скрин:
Снимок.PNG

Я бы хотел чтоб он выглядел как и другие поля.
Вот сам postContainer
 

{{$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=members&controller=ignore" seoTemplate="ignore"}'>{lang="change_ignore_preferences"}</a></li>
		</ul>
	</div>
{{endif}}

<a id='comment-{$comment->$idField}'></a>
<article itemscope {{if $item->isQuestion() && !$comment->new_topic}}itemprop="suggestedAnswer {{if $comment->post_bwoptions['best_answer']}}acceptedAnswer{{endif}}" itemtype="http://schema.org/Answer"{{else}}itemtype="http://schema.org/Comment"{{endif}} id='elComment_{$comment->$idField}' class='cPost ipsBox {{if $otherClasses}}{$otherClasses}{{endif}} ipsComment {{if settings.reputation_highlight and $comment->reputation() >= settings.reputation_highlight}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{if $comment->isIgnored()}}ipsHide{{endif}} {{if $comment->hidden()}}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'>
		<h3 class='ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break' itemprop="creator" itemscope itemtype="http://schema.org/Person"><strong itemprop="name">{$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>
		<ul class='cAuthorPane_info ipsList_reset'>
          
			
          
          <li class='cAuthorPane_photo'>
				{template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
			</li>
          
			{{if $comment->author()->member_id}}
				<li class='ipsType_light play-arena-topic-listItem'><span class='st'><i class="fa fa-user"></i> Группа:</span><span class='dr'>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}</span></li>
          		<li class='ipsType_light play-arena-topic-listItem'><span class='st'><i class="fa fa-plus-circle"></i> Репутация:</span><span class='dr'>{number="$comment->author()->pp_reputation_points"}</span></li>
				<li class='ipsType_light play-arena-topic-listItem'><span class='st'><i class="fa fa-comments"></i> Постов:</span><span class='dr'>{number="$comment->author()->member_posts"}</span></li>
          		<li class='ipsType_light play-arena-topic-listItem'><span class='st'><i class="fa fa-exclamation-triangle"></i> Предупреждения:</span><span class='dr'>{number="$comment->author()->warn_level"}</span></li>
                
         
          		
          		{{if $comment->author()->reputationImage()}}
					<li class='ipsPad_half ipsResponsive_hidePhone'>
						<img src='{file="$comment->author()->reputationImage()" extension="core_Theme"}' title='{{if $comment->author()->reputation()}}{$comment->author()->reputation()}{{endif}}' alt=''>
					</li>
				{{endif}}
				{template="customFieldsDisplay" group="global" app="core" params="$comment->author()"}
			{{endif}}
		</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>


Всю голову уже сломал как так сделать :( 

  • Author
2 минуты назад, wasder12 сказал:

MaZaHaKa, в формат отображения вставь.


<li class='ipsType_light play-arena-topic-listItem'><span class='st'><i class="fa fa-user"></i> Город:</span><span class='dr'>{content}</span></li>

 

Помогло) Спасибо)

4 часа назад, MaZaHaKa сказал:

Всем привет)
Дело в том,что город вылезает за приделы самого postContainer
Вот скрин:
Снимок.PNG

Я бы хотел чтоб он выглядел как и другие поля.
Вот сам postContainer
 


{{$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=members&controller=ignore" seoTemplate="ignore"}'>{lang="change_ignore_preferences"}</a></li>
		</ul>
	</div>
{{endif}}

<a id='comment-{$comment->$idField}'></a>
<article itemscope {{if $item->isQuestion() && !$comment->new_topic}}itemprop="suggestedAnswer {{if $comment->post_bwoptions['best_answer']}}acceptedAnswer{{endif}}" itemtype="http://schema.org/Answer"{{else}}itemtype="http://schema.org/Comment"{{endif}} id='elComment_{$comment->$idField}' class='cPost ipsBox {{if $otherClasses}}{$otherClasses}{{endif}} ipsComment {{if settings.reputation_highlight and $comment->reputation() >= settings.reputation_highlight}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{if $comment->isIgnored()}}ipsHide{{endif}} {{if $comment->hidden()}}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'>
		<h3 class='ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break' itemprop="creator" itemscope itemtype="http://schema.org/Person"><strong itemprop="name">{$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>
		<ul class='cAuthorPane_info ipsList_reset'>
          
			
          
          <li class='cAuthorPane_photo'>
				{template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
			</li>
          
			{{if $comment->author()->member_id}}
				<li class='ipsType_light play-arena-topic-listItem'><span class='st'><i class="fa fa-user"></i> Группа:</span><span class='dr'>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}</span></li>
          		<li class='ipsType_light play-arena-topic-listItem'><span class='st'><i class="fa fa-plus-circle"></i> Репутация:</span><span class='dr'>{number="$comment->author()->pp_reputation_points"}</span></li>
				<li class='ipsType_light play-arena-topic-listItem'><span class='st'><i class="fa fa-comments"></i> Постов:</span><span class='dr'>{number="$comment->author()->member_posts"}</span></li>
          		<li class='ipsType_light play-arena-topic-listItem'><span class='st'><i class="fa fa-exclamation-triangle"></i> Предупреждения:</span><span class='dr'>{number="$comment->author()->warn_level"}</span></li>
                
         
          		
          		{{if $comment->author()->reputationImage()}}
					<li class='ipsPad_half ipsResponsive_hidePhone'>
						<img src='{file="$comment->author()->reputationImage()" extension="core_Theme"}' title='{{if $comment->author()->reputation()}}{$comment->author()->reputation()}{{endif}}' alt=''>
					</li>
				{{endif}}
				{template="customFieldsDisplay" group="global" app="core" params="$comment->author()"}
			{{endif}}
		</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>


Всю голову уже сломал как так сделать :( 

можете използвает ето плагин

 

  • Author
42 минуты назад, Silence сказал:

можете използвает ето плагин

 

Я уже рассматривал данную идею,но мне он не особо понравился) Да и к тому же я уже сделал то что хотел)

 

42 минуты назад, Silence сказал:

можете използвает ето плагин

 

Хотя нет,есть еще одно.
В данном плагине есть строка статуса онлайн/оффлайн. есть возможность реализовать так же,только с моим postContainer ?)

Edited by MaZaHaKa

5 часов назад, MaZaHaKa сказал:

Хотя нет,есть еще одно.
В данном плагине есть строка статуса онлайн/оффлайн. есть возможность реализовать так же,только с моим postContainer ?)

{{if $comment->author()->isOnline()}}<i class="ipsOnlineStatus_online">Online</i>{{else}}<i class="ipsOnlineStatus_offline">Offline</i>{{endif}}

 

16 минут назад, Silence сказал:

В данном плагине есть строка статуса онлайн/оффлайн. есть возможность реализовать так же,только с моим postContainer ?)

в верху аватарки или сам куда поставишь.

Спойлер

44.png5454.png

сами иконки. или можешь свои прописать.

offline.gif

online.gif

          <span class=\'aupContent\'>{{if $comment->author()->isOnline()}}
                  <span style=\'color:green;font-weight:bold;\'><img src="/uploads/imgs/online.gif" alt='ETS2ATSMODS' /></span>
                  {{else}}
                  <span style=\'color:red;font-weight:bold;\'><img src="/uploads/imgs/offline.gif" alt='ETS2ATSMODS' /></span>{{endif}}</span>

код оптимизируешь под себя. он может отличаться.

MaZaHaKa, да только в коде удали 

<span style=\'color:green;font-weight:bold;\'></span>

он там не нужен. это с тест стиля код взял. забыл убрать их. они не нужны. это для текста было нужно. а я поставил имг ссылки.

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.