Stuart Wright
Well-known member
Wanted to share this with you. Wasn't sure where to post it.
Mods will have to relocate it if it's considered useful.
I wanted to display the postbit information (the information about a user shown under their avatar in posts)
Before the line
Insert
and before
insert
Done.
Obviously this can be changed to any valid conditional.
Mods will have to relocate it if it's considered useful.
I wanted to display the postbit information (the information about a user shown under their avatar in posts)
- to moderators and admin so they can instantly see useful information about users
- to everyone in classified advert threads because a user's trader rating feedback is displayed there. Classified ad threads contain one of three prefixes. Prefix ids 1, 2 or 3.
Before the line
Code:
<xf:if is="$user.user_id">
Code:
<xf:if is="$xf.visitor.is_admin OR $xf.visitor.is_moderator OR in_array($__globals.thread.prefix_id, [1,2,3])">
Code:
<span class="message-userArrow"></span>
Code:
</xf:if>
Done.
Obviously this can be changed to any valid conditional.