Ghan_04
Active member
This is a quick mod that I created when we encountered this problem on our roleplaying site:
We wanted the moderators who run an actual roleplay to have a banner in their postbit reading "Storyteller", but only on posts within that forum. The problem is that most of the template checks like "is moderator" only check the user viewing the thread at that time and not the user who owns a particular post. This helper mod alleviates this issue. How we used it on our board:
This is in the message_user_info template
This is the first Xenforo mod I've tried to release publicly, so let me know if something doesn't work. I've tested it on our board, but everyone has different stuff.
We wanted the moderators who run an actual roleplay to have a banner in their postbit reading "Storyteller", but only on posts within that forum. The problem is that most of the template checks like "is moderator" only check the user viewing the thread at that time and not the user who owns a particular post. This helper mod alleviates this issue. How we used it on our board:
This is in the message_user_info template
Code:
<xen:if is="{xen:helper ismemberof, $user, 24} AND !{xen:helper ismemberof, $user, 30, 31} AND {xen:helper canmoderate, $forum, $user}">
<li class="ribbonStaff">
<div class="left"></div>
<div class="right"></div>
Storyteller
</li></xen:if>