Quote:
Originally Posted by CoffeeLovesYou
Hello,
I have a quick question about an if conditional.
I know a forum that has moderators of individual categories. Here's an example.
There's a Music category, and a Television category. Jimmy is a moderator of the Music category, so when he posts in the Music category, his name shows up in a Green color (or any color). Now, there's Bob, who is a moderator of the Television category. When he posts in the Television category, his name also shows up Green (or any other color). Now, if Bob posts in the Music Area, or vice-versa, their name will not show up green because they aren't a moderator of that particular forum.
I am trying this code;
HTML Code:
<if condition="can_moderate($forum['forumid'])">
stuff here
</if>
However, what is happening is.. every person is getting the "stuff here" part! I don't think the can_moderate condition is working. I am trying to use it in my postbit template. There are users who aren't a moderator of the current forum they posted in, and it shows the code i put in the if conditional in their post.
|
This isn't working the way you want because
can_moderate displays the information
to the person with moderator permissions. You only use this when you want the moderators of that forum to see something you don't want others to see. I don't believe there is an
is_moderator conditional or equivalent. The only way I can think to really do this would be to use a combination of user ID and forum ID.