Does anyone know how to make .discussionlistitem .stats continue or use the same css as .discusionlistitem .premium? Please check the picture. I would like to use a box shadow for the thread, but when I use the same code fot the stats it has the box shadow on the sides. I want it to just be on the top and bottom so it just looks like a continuation of the discussionlistitem style, i.e one highlight, instead of 2.
So Ideally the highlight, would be on continuous highlight, instead of breaking up when it gets to the stats area.
View attachment 53576
So you currently have this in your code:
Code:AND {$thread.node_id} == 18
You would want to do something like:
Code:AND in_array({$thread.node_id}, array(18,19,20))
<xf:macro name="post" ...
block.message message--post js-post
{{ $post.User.isMemberOf('999') ? 'your-class-name' : '' }}
.your-class-name
{
background-color: red;
}
This should be;Yeah under the post macro which is inside the<xf:macro name="post" ...
block.
Find:
And add directly after, something like:Code:message message--post js-post
And of course change 999 to whatever your specific usergroup is, and add styling to extra.less, similar to:Code:{{ $post.User.isMemberOf('999') ? 'your-class-name' : '' }}
Less:.your-class-name { background-color: red; }
{{ $post.User && $post.User.isMemberOf('999') ? 'your-class-name' : '' }}
Same question hereThanks for the info!
I would like to highlight the replies of the premium members inside threads, any help?
Thank you
<article class="message message--post {{ $uix_condensed ? 'uix_message--condensed' : '' }} js-post js-inlineModContainer
{{ $post.User && $post.User.isMemberOf('3') ? 'your-class-name' : '' }} {{ $isIgnored ? 'is-ignored' : '' }} {{ $post.isUnread() ? ' is-unread' : '' }}"
data-author="{{ $post.User.username ?: $post.username }}"
data-content="post-{$post.post_id}"
id="js-post-{$post.post_id}">
.your-class-name
{
background-color: red;
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.