GUIDE XF2 | TEMPLATE MODIFICATION | Highlighting threads user participated in

CONSTANZE

Ultimate
Direct
Member
Joined
Aug 2, 2017
Messages
46
Reactions
33
DirectBucks
0
DirectBucks
DB0
#1
This, basically, highlights every thread the current user has posted in in a different color that the rest of threads where he never participated in.




To get this you need to make changes in two different places:

1) Add the following to EXTRA.css:

CSS:
.memberParticipatedThread {
    background-color: #C4E599 !important;
}
2) Find the following in template (thread_list_macros):

HTML:
<div class="structItem structItem--thread{{ $thread.prefix_id ? ' is-prefix' . $thread.prefix_id : '' }}{{ $thread.isIgnored() ? ' is-ignored' : '' }}{{ ($thread.isUnread() AND !$forceRead) ? ' is-unread' : '' }}{{ $thread.discussion_state == 'moderated' ? ' is-moderated' : '' }}{{ $thread.discussion_state == 'deleted' ? ' is-deleted' : '' }} js-inlineModContainer js-threadListItem-{$thread.thread_id}" data-author="{{ $thread.User.username ?: $thread.username }}">
Replace with the following:

HTML:
<div class="structItem structItem--thread{{ $thread.prefix_id ? ' is-prefix' . $thread.prefix_id : '' }}{{ $thread.isIgnored() ? ' is-ignored' : '' }}{{ ($thread.isUnread() AND !$forceRead) ? ' is-unread' : '' }}{{ $thread.discussion_state == 'moderated' ? ' is-moderated' : '' }}{{ $thread.discussion_state == 'deleted' ? ' is-deleted' : '' }}{{ $thread.getUserPostCount() ? ' memberParticipatedThread' : '' }} js-inlineModContainer js-threadListItem-{$thread.thread_id}" data-author="{{ $thread.User.username ?: $thread.username }}">
That's it.
 

Latest profile posts

Xexz88 wrote on Stranger's profile.
pls crack ProSkywars File14 ;)
KarimAK wrote on OhYeah55's profile.
Why can't I post threads? Do I need certain amount of posts before creating a new thread?
RyanMoodGAMING wrote on fretkert's profile.
Hi there, please fix your download otherwise your resource will have to be deleted! https://directleaks.net/resources/op-prison-minecraft-server.2374/

Latest threads

Forum statistics

Threads
941
Messages
2,304
Members
25,182
Latest member
K3EPZ

Online statistics

Members online
9
Guests online
4
Total visitors
13
Top Bottom