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

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

А где в теме шаблона можно менять цвет не нашел.

Edited by seobot

seobot, в карандаш темы заходи, вкладка "цвета сайта" и ищи  "Фон подсвечиваемых сообщений" и "Граница подсвечиваемых сообщений" 

Стандартные цвета FCF9F0 и F7DF97 соот.

  • Author
15 минут назад, rustav сказал:

seobot, в карандаш темы заходи, вкладка "цвета сайта" и ищи  "Фон подсвечиваемых сообщений" и "Граница подсвечиваемых сообщений" 

Стандартные цвета FCF9F0 и F7DF97 соот.

А ну это я видел. Только не понятно, почему когда пишешь в теме, сообщения не выделяются и имеют туже цветовую схему как и с выключенной кнопкой "Выделенные ответы"

  • Author
5 минут назад, rustav сказал:

seobot, а ты группе дал права на подсветку? поменяй на другие цвета, почисти кэш браузера и форума после изменений. 

Ну я же написал, что включил кнопку в группе. Или еще что то надо включать?

  • Author
1 минуту назад, Redneck сказал:

И не будет. Сюда или в личку скинь полный код шаблона 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 itemscope {{if $comment->author()->hasHighlightedReplies()}}data-memberGroup="{$comment->author()->member_group_id}" {{endif}}{{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 and settings.reputation_enabled}}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()}}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'>
			{{if $comment->author()->member_title && $comment->author()->member_id}}
				<li class='ipsResponsive_hidePhone ipsType_break'>{$comment->author()->member_title}</li>
			{{elseif $comment->author()->rank['title'] && $comment->author()->member_id}}
				<li class='ipsResponsive_hidePhone ipsType_break'>{$comment->author()->rank['title']}</li>
			{{endif}}
			{{if $comment->author()->rank['image'] && $comment->author()->member_id}}
				<li class='ipsResponsive_hidePhone'>{$comment->author()->rank['image']|raw}</li>
			{{endif}}

			<li class='cAuthorPane_photo'>
				{template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
			</li>
			<li>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}</li>
			{{if \IPS\Member\Group::load( $comment->author()->member_group_id )->g_icon }}
				<li class='ipsResponsive_hidePhone'><img src='{file="$comment->author()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'></li>
			{{endif}}
			{{if $comment->author()->member_id}}
				<li class='ipsResponsive_hidePhone'>{template="reputationBadge" group="global" app="core" params="$comment->author()"}</li>
				<li class='ipsType_light'>{lang="member_post_count" pluralize="$comment->author()->member_posts"}</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

Да все так и стоит, но ничего не светит.

6 часов назад, Redneck сказал:

@seobot в коде все норм. Ссылку на пост администратора сюда или в личку

 

https://motosaratov.ru/topic14076.html?do=findComment&comment=348764

123.png

456.png

@seobot Вы правки вносили в core - global - framework - comments.css. А именно правили код:

.ipsComment, .ipsComment.ipsBox {
    border: 1px solid #F2F2F2;
}

Из-за того, что были правки, у вас не был обновлен этот шаблон. Вот новый код этого шаблона:

.ipsComment {
	position: relative;
	margin-bottom: 15px;
	padding: 0;
	background: #fff;
}	

	.ipsDataItem > .ipsComment {
		margin-bottom: 0;
	}
	
	.ipsComment, .ipsComment.ipsBox {
		border: 1px solid transparent;
	}
	
	.ipsComment.ipsComment_selected {
		border-width: 1px;
		border-style: solid;
		border-color: #8ec2ed #8bbee8 #84b4db #8ec2ed;
		box-shadow: 0 1px 1px rgba(0,0,0,0.075), 0px 1px 5px rgba(82,168,236,0.6);
	}

		.ipsComment.ipsComment_selected .ipsComment_author {
			background: transparent;
		}

		.ipsApp .ipsComment.ipsComment_selected .ipsComment_header {
			background: {theme="selected"};
		}

	.ipsComment:not( .ipsModerated ):not( .ipsComment_selected ).ipsBox.ipsComment_popular {
		border-color: #37848b #a7ccc8 #a7ccc8 #a7ccc8;
		border-top-width: 5px;
	}

	.ipsComment:not( .ipsModerated ):not( .ipsComment_selected ).ipsComment_popular .ipsComment_header {
		background: #e6f5f4;
	}

	.ipsComment:not( .ipsModerated ) .ipsComment_header {
		background: #f5f5f5;
	}

	.ipsComment.ipsModerated .ipsComment_header {
		background: {theme="moderated"};
	}

	.ipsComment.ipsModerated {
		background: {theme="moderated_light"};
	}

	html[dir="ltr"] .ipsComment > .ipsUserPhoto {
		float: left;
		margin-right: 7px;
	}
	html[dir="rtl"] .ipsComment > .ipsUserPhoto {
		float: right;
		margin-left: 7px;
	}

.ipsComment_header {
	padding: 10px;
}
	
	.ipsComment_header .ipsUserPhoto {
		margin: 0;
	}

	.ipsComment_header .ipsComment_header_modcbox {
		margin-right: 25px;
	}
	
.ipsComment_author {
	display: inline;
}

.ipsComment_content {
	position: relative;
}
	
	.ipsComment [data-role="commentContent"] {
		margin-bottom: 20px;
	}

	.ipsComment.ipsComment_hasChildren {
		margin-bottom: 40px;
	}

	.ipsComment.ipsComment_hasChildren > .ipsComment_content {
		padding-bottom: 20px;
	}

.ipsComment .ipsType_richText {
	overflow-x: auto;
	overflow-y: hidden;
}

.ipsComment[data-role="replyComment"] {
	margin-left: -15px;
	margin-right: -15px;
}

	.ipsComment_parent.ipsComment > .ipsComment_content > .ipsComment_author {
		font-size: 15px;
		margin: 0;
	}

.ipsComment_meta {
	margin: 0;
}

.ipsComment_controls {
	margin: 0;
	padding: 0;
	list-style: none;
}

	.ipsComment_controls > li {
		display: inline-block;
		vertical-align: middle;
	}
	html[dir="ltr"] .ipsComment_controls > li {
		margin-right: 15px;
	}
	html[dir="rtl"] .ipsComment_controls > li {
		margin-left: 15px;
	}

[data-role="commentFeed"] > .ipsComment:first-child {
	margin-top: 0;
}

/*.ipsComment.ipsModerated {
	border-color: #e6cfd6;
}

	.ipsComment.ipsModerated:not( .ipsHide ) + .ipsComment {
		border-top-color: #e6cfd6;
	}*/

.ipsComment.ipsComment_ignored {
	border-width: 0;
	color: #adadad;
	background: transparent;
}
.ipsComment.ipsComment_ignored:first-child {
	margin-top: 15px;
}
html[dir="ltr"] .ipsComment.ipsComment_ignored {
	padding-left: 75px;
}
html[dir="rtl"] .ipsComment.ipsComment_ignored {
	padding-right: 75px;
}

	.ipsComment.ipsComment_ignored + .ipsComment:not( .ipsComment_ignored ) {
		margin-top: 0;
	}

.ipsComment.ipsComment_popular [data-role="commentContent"] {
	min-height: 70px;
}
html[dir="ltr"] .ipsComment.ipsComment_popular [data-role="commentContent"] {
	padding-right: 40px;
}
html[dir="rtl"] .ipsComment.ipsComment_popular [data-role="commentContent"] {
	padding-left: 40px;
}

.ipsComment.ipsComment_popular .ipsComment_popularFlag {
	position: absolute;
	top: 0px;
	background: #37848b;
	text-align: center;
	color: #fff;
	width: 34px;
	height: 70px;
	font-size: 26px;
	padding-top: 30px;
	z-index: 5000;
}
html[dir="ltr"] .ipsComment.ipsComment_popular .ipsComment_popularFlag {
	right: 10px;
}
html[dir="rtl"] .ipsComment.ipsComment_popular .ipsComment_popularFlag {
	left: 10px;
}
	
	.ipsComment.ipsComment_popular .ipsComment_popularFlag:after {
		content: '';
		display: block;
		position: absolute;
	}

	.ipsComment.ipsComment_popular .ipsComment_popularFlag:after {
		border-width: 17px;
		border-style: solid;
		border-color: #37848b transparent transparent transparent;
		top: 100%;
	}
	html[dir="ltr"] .ipsComment.ipsComment_popular .ipsComment_popularFlag:after {
		left: 0;
	}
	html[dir="rtl"] .ipsComment.ipsComment_popular .ipsComment_popularFlag:after {
		right: 0;
	}

.ipsCommentUnreadSeperator {
	margin: 15px 0;
	height: 0;
	padding: 0;
	border-width: 2px 0 0 0;
	border-style: solid;
	border-color: #417ba3;
}

.ipsType_richText .ipsPagination:first-child {
	margin-bottom: 15px;
}

.ipsTooltip.ipsComment_inlineQuoteTooltip {
	pointer-events: auto;
}

/* Sub comments (e.g. status updates) */
.ipsComment_subComments {
	margin-top: 15px;
}
	
	html[dir="ltr"] .ipsComment_subComments {
		margin-left: 55px;
	}
	html[dir="rtl"] .ipsComment_subComments {
		margin-right: 55px;
	}

	.ipsComment_subComments .ipsComment {
		padding: 10px;
		margin-bottom: 3px;
	}

		.ipsComment_subComments .ipsComment [data-role="commentContent"] {
			margin-bottom: 0;
		}
		
		.ipsComment_subComments .ipsComment[data-role="replyComment"] {
			margin: 0;
		}

			.ipsComment_subComments .ipsComment[data-role="replyComment"] .ipsUserPhoto img {
				width: 34px;
				height: 34px;
				{{if theme.rounded_photos}}
					border-radius: 17px;
				{{endif}}
			}

			.ipsComment_subComments .ipsComment[data-role="replyComment"] .ipsComposeArea_editor {
				padding: 2px;
			}

			.ipsComment_subComments .ipsComment[data-role="replyComment"] .ipsComposeArea_dummy {
				padding: 7px;
				font-size: 13px;
			}

	/*.ipsComment_subComments .ipsComment_content  .ipsType_richText {
		margin: 10px 0;
	}*/

	html[dir="ltr"] .ipsComment_subComments .ipsComment:not( [data-role="replyComment"] ) .ipsComment_content,
	html[dir="ltr"] .ipsComment_subComments .ipsComposeArea_withPhoto .ipsComposeArea_editor {
		margin-left: 45px;
	}
	
	html[dir="rtl"] .ipsComment_subComments .ipsComment:not( [data-role="replyComment"] ) .ipsComment_content,
	html[dir="rtl"] .ipsComment_subComments .ipsComposeArea_withPhoto .ipsComposeArea_editor {
		margin-right: 45px;
	}

	.ipsComment_subComments .ipsComposeArea_withPhoto .ipsComposeArea_editor:before {
		display: none;
	}
	
/* ======================================================== */
/* HIGHLIGHTED REPLIES */
.ipsComment_highlighted.ipsBox:not(.ipsBox_transparent):not(.ipsModerated):not(.ipsComment_selected),
.ipsComment_highlighted:not(.ipsBox_transparent):not(.ipsModerated):not(.ipsComment_selected) .ipsAreaBackground_reset {
	background-color: {theme="post_highlight"};
}
.ipsComment_highlighted:not(.ipsBox_transparent):not(.ipsModerated):not(.ipsComment_selected) {
	background-color: {theme="post_highlight"};
	border:1px solid {theme="post_highlight_border"};
}

в конце шаблона есть код, которого нет у вас:

/* ======================================================== */
/* HIGHLIGHTED REPLIES */
.ipsComment_highlighted.ipsBox:not(.ipsBox_transparent):not(.ipsModerated):not(.ipsComment_selected),
.ipsComment_highlighted:not(.ipsBox_transparent):not(.ipsModerated):not(.ipsComment_selected) .ipsAreaBackground_reset {
	background-color: {theme="post_highlight"};
}
.ipsComment_highlighted:not(.ipsBox_transparent):not(.ipsModerated):not(.ipsComment_selected) {
	background-color: {theme="post_highlight"};
	border:1px solid {theme="post_highlight_border"};
}

На будущее. Если делаете правки css, то не надо править коды в родных шаблонах, для этого достаточно записать измененный код в custom.css (для этого он и существует).  При обновлении движка происходит и обновление шаблонов стиля. Шаблоны, в которых происходили изменения не обновляются.

 

 

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.