• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Another Conditional - Mod queue and Reported

Russ

Well-known member
#1
Is there a conditional to only show the mod queue/reported items if there's actually an item to show?

Basically if there's no queue or reported item I'm wanting to hide that.

Thanks
 

Arty

Well-known member
#2
Edit moderator_bar.html. At the beginning of file add
Code:
<xen:if is="{$visitor.is_moderator} and ({$session.moderationCounts.total} or {$session.reportCounts.total})">
and at the end of file add
Code:
</xen:if>