Jump to content
Sign in to follow this  
Vinheteiro

Цвет ников на мобильных устройствах

Recommended Posts

Как сделать, чтобы цвет ника на мобильных устройствах был таким же, как и на пк? Т.к. с тф все Ники белые.

2238D3D8-0E61-4AA6-A7BD-68196AFCCD62.jpeg.d7cf1fb4f51947dc5cc88e8039550def.jpeg07332B1C-F559-4917-B3DD-F0531CF5049E.thumb.png.65e31b5b8339a249b8e8d4d2963c4ec8.png

 

Share this post


Link to post
Share on other sites
В 03.01.2020 в 20:48, Vinheteiro сказал:

Как сделать, чтобы цвет ника на мобильных устройствах был таким же, как и на пк? Т.к. с тф все Ники белые.

2238D3D8-0E61-4AA6-A7BD-68196AFCCD62.jpeg.d7cf1fb4f51947dc5cc88e8039550def.jpeg07332B1C-F559-4917-B3DD-F0531CF5049E.thumb.png.65e31b5b8339a249b8e8d4d2963c4ec8.png

 

 

Upd: на других шаблонах такого нет.

Можно решить проблему, не меняя шаблон?

 

Share this post


Link to post
Share on other sites

думаю надо копаться в стилях или шаблонах со словами Responsive, которые отвечают за адаптивность

Share this post


Link to post
Share on other sites

Восстановил шаблон 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=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'>
      	<div class='cAuthorPane_photo'>
			{template="userPhoto" app="core" group="global" params="$comment->author(), 'tiny', $comment->warningRef(), FALSE""}
		</div>
      	<div class='lkComment_meta'>
          <h3 class='ipsType_break ipsType_reset ipsType_blendLinks ipsTruncate ipsTruncate_line lkFlex'>
              {template="userLink" group="global" app="core" params="$comment->author(), $comment->warningRef(), FALSE"}
              {template="reputationBadge" group="global" app="core" params="$comment->author()"}
          </h3>
		</div>
	</div>
	<aside class='ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone'>		
		<ul class='cAuthorPane_info ipsList_reset'>
      {{if ( settings.reputation_enabled and settings.reputation_highlight and $comment->reactionCount() >= settings.reputation_highlight ) OR $comment->isFeatured()}}
        {{if $comment->isFeatured()}}
          <strong class='ipsComment_popularFlag' data-ipsTooltip title='{lang="this_is_a_featured_post"}'><i class='fa fa-star'></i></strong>
        {{else}}
          <strong class='ipsComment_popularFlag' data-ipsTooltip title='{lang="this_is_a_popular_post"}'><i class='fa fa-heart'></i></strong>
        {{endif}}
      {{endif}}
        <div class="lkAuthorPane_padding">
          <div class="lkComment_author">
            <div class="ipsTruncate ipsTruncate_line">{template="userLink" app="core" group="global" params="$comment->author(), FALSE, TRUE"}</div>
            {{if $comment->author()->member_title && $comment->author()->member_id}}
              <div class="ipsType_light ipsTruncate ipsTruncate_line">{$comment->author()->member_title}</div>
            {{elseif $comment->author()->rank['title'] && $comment->author()->member_id}}
              <div class="ipsType_light ipsTruncate ipsTruncate_line">{$comment->author()->rank['title']}</div>
            {{endif}}
            <br>
            <li class='cAuthorPane_photo'>
				<div class="lkAuthorPane_photo">
          {template="userPhoto" app="core" group="global" params="$comment->author(), 'small', $comment->warningRef()"}
        </div>
          </div>

          <div class="lkComment_rank">{expression="str_replace(array('lkgroup_'), array('lkgroup_block_'), \IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName)" raw="true"}</div>
        </div>
                <li class="ipsSpacer_bottom">
                  <br>
        {template="useroptionsbit" app="core" group="_liskoduje" location="front" params="$comment,$comment->author()" if="theme.lk_topic_uob_enable == '1'"}
      </li>
			{{if $comment->author()->member_id}}
		  <li class="ipsSpacer_bottom">
        {template="reputationBadge" group="global" app="core" params="$comment->author()"}
        <span data-ipstooltip="" class="ipsRepBadge ipsRepBadge_comments" _title="{lang="member_post_count" pluralize="$comment->author()->member_posts"}">
          <i class="fa fa-comment"></i><span>{$comment->author()->member_posts}</span>
        </span>
      </li>
				{{if $comment->author()->reputationImage()}}
					<li class='ipsPad_half'>
						<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>
			</li>
			{{if \IPS\Member\Group::load( $comment->author()->member_group_id )->g_icon }}
				<li><img src='{file="$comment->author()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'></li>
			{{endif}}

 

По умолчанию так:
 

{{$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}}

	<div class='cAuthorPane cAuthorPane_mobile'>
      	<div class='cAuthorPane_photo'>
			{template="userPhoto" app="core" group="global" params="$comment->author(), 'tiny', $comment->warningRef(), FALSE"}
		</div>
      	<div class='lkComment_meta'>
          <h3 class='ipsType_break ipsType_reset ipsType_blendLinks ipsTruncate ipsTruncate_line lkFlex'>
              {template="userLink" group="global" app="core" params="$comment->author(), $comment->warningRef(), TRUE"}
              {template="reputationBadge" group="global" app="core" params="$comment->author()"}
          </h3>
		</div>
	</div>
	<aside class='ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone'>		
		<ul class='cAuthorPane_info ipsList_reset'>
      {{if ( settings.reputation_enabled and settings.reputation_highlight and $comment->reactionCount() >= settings.reputation_highlight ) OR $comment->isFeatured()}}
        {{if $comment->isFeatured()}}
          <strong class='ipsComment_popularFlag' data-ipsTooltip title='{lang="this_is_a_featured_post"}'><i class='fa fa-star'></i></strong>
        {{else}}
          <strong class='ipsComment_popularFlag' data-ipsTooltip title='{lang="this_is_a_popular_post"}'><i class='fa fa-heart'></i></strong>
        {{endif}}
      {{endif}}
			<li class='cAuthorPane_photo'>
				<div class="lkAuthorPane_photo">
          {template="userPhoto" app="core" group="global" params="$comment->author(), 'small', $comment->warningRef()"}
        </div>
        <div class="lkAuthorPane_padding">
          <div class="lkComment_author">
            <div class="ipsTruncate ipsTruncate_line">{template="userLink" app="core" group="global" params="$comment->author(), FALSE, TRUE"}</div>
            {{if $comment->author()->member_title && $comment->author()->member_id}}
              <div class="ipsType_light ipsTruncate ipsTruncate_line">{$comment->author()->member_title}</div>
            {{elseif $comment->author()->rank['title'] && $comment->author()->member_id}}
              <div class="ipsType_light ipsTruncate ipsTruncate_line">{$comment->author()->rank['title']}</div>
            {{endif}}
          </div>
          <div class="lkComment_rank">{expression="str_replace(array('lkgroup_'), array('lkgroup_block_'), \IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName)" raw="true"}</div>
        </div>
			</li>
			{{if \IPS\Member\Group::load( $comment->author()->member_group_id )->g_icon }}
				<li><img src='{file="$comment->author()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'></li>
			{{endif}}
      {{if $comment->author()->rank['image'] && $comment->author()->member_id}}
        <li>{$comment->author()->rank['image']|raw}</li>
      {{endif}}
      <li class="ipsSpacer_bottom">
        {template="useroptionsbit" app="core" group="_liskoduje" location="front" params="$comment,$comment->author()" if="theme.lk_topic_uob_enable == '1'"}
      </li>
			{{if $comment->author()->member_id}}
		  <li class="ipsSpacer_bottom">
        {template="reputationBadge" group="global" app="core" params="$comment->author()"}
        <span data-ipstooltip="" class="ipsRepBadge ipsRepBadge_comments" _title="{lang="member_post_count" pluralize="$comment->author()->member_posts"}">
          <i class="fa fa-comment"></i><span>{$comment->author()->member_posts}</span>
        </span>
      </li>
				{{if $comment->author()->reputationImage()}}
					<li class='ipsPad_half'>
						<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>


 

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.

×