Well, thanks to the help with someone who also has experience with this, this is working;
HTML Code:
<if condition="can_moderate($GLOBALS[forumid], 0, $post[userid])">
Code
</if>
However, I am trying to combine this code with 1 more if condition, and 2 more.
HTML Code:
<if condition="$thread['postuserid'] == $post['userid']"><div class="smallfont"><b><big>Original Poster</big></b></div><else />
<if condition="can_moderate($GLOBALS[forumid], 0, $post[userid]) AND $thread['postuserid'] == $post['userid'] AND is_member_of($bbuserinfo, 7,47)">
<div class="smallfont"><b><big>$GLOBALS[foruminfo][title] Leader & Original Poster</big></b></div><else />
<if condition="can_moderate($GLOBALS[forumid], 0, $post[userid]) AND $thread['postuserid'] == $post['userid']">
<div class="smallfont"><b><big>$GLOBALS[foruminfo][title] Moderator & Original Poster</big></b></div>
</if></if></if>
^^ Does anyone see what is wrong with this?
When I just had..
HTML Code:
<if condition="can_moderate($GLOBALS[forumid], 0, $post[userid])">
Code
</if>
..it was working. Now that I combined it with the if original poster and if member of, it isn't working. Same with the other if condition, now that I combined it with original poster.
--------------- Added [DATE]1361049497[/DATE] at [TIME]1361049497[/TIME] ---------------
Okay, I kind of figured out why.
My if condition was saying that, if the user moderated the forum and the user is apart of the usergroup IDs I specified, they could see the code. I needed it so if the user moderated the current forum and the user who moderates that forum is a member of the usergroup ID I specified, then they get the code shown in their post and is visible to everyone else.
My friend helped me get to this code;
HTML Code:
<if condition="can_moderate($GLOBALS[forumid], 0, $post[userid]) AND is_member_of($userinfo, 7,47)">
<div class="smallfont"><b><big>{$GLOBALS['foruminfo']['title']}Leader</big></b></div></if> <else />
<if condition="can_moderate($GLOBALS[forumid], 0, $post[userid]) AND is_member_of($userinfo, 5,55)">
<div class="smallfont"><b><big>{$GLOBALS['foruminfo']['title']} Moderator</big></b></div>
</if>
But it isn't working for me, yet it's working for him..