Hide User Title

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dilbert
    Senior Member
    • Oct 2004
    • 887

    Hide User Title

    I want to display the Rank only for administrators, not the title.
    I created the rank and it shows fine, but I also see the title.

    I searched and it seems there is no way to turn this off per group.

    I tried to edit the postbit, but all I accomplished was to hide the user title for all users.

    This was the original statement:

    <if condition="$post['usertitle']">
    <div class="smallfont">$post[usertitle]</div>
    </if>

    I added an extra if statement, but as I stated, I failed.

    <if condition="$bbuserinfo['usergroupid'] != 6">
    <if condition="$post['usertitle']">
    <div class="smallfont">$post[usertitle]</div>
    </if>
    </if>

    I know very little of php, guidance would be greatly appreciated.
    Cliff
    PathLabTalk
    Square Wheels Cycling
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    You are checking the logged in user. Use this to check the post author instead:

    Code:
    <if condition="$[color=red]post[/color]['usergroupid'] != 6">
    <if condition="$post['usertitle']">
    <div class="smallfont">$post[usertitle]</div>
    </if>
    </if>

    Comment

    • dilbert
      Senior Member
      • Oct 2004
      • 887

      #3
      Wayne, thank you very much.
      Cliff
      PathLabTalk
      Square Wheels Cycling

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...