Announcement

Collapse
No announcement yet.

Remove Infractions tab in User Profile?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • E0N
    replied
    Does this work on vB 4.2.0? What should I change here? I just want to Admin, Super Mod and Mod to view it.

    <vb:if condition="$blocks[infractions]"><dd<vb:if condition="$selected_tab == 'infractions'"> class="userprof_module" <vb:else /> class="userprof_moduleinactive" </vb:if>><a id="infractions-tab" href="{vb:link member, {vb:raw userinfo}, "tab=infractions"}#infractions-content" onclick="return tabViewPicker(this);">{vb:rawphrase infractions}</a></dd></vb:if>

    Leave a comment:


  • Wayne Luke
    replied
    Remove the code $blocks[infractions] from your MEMBERINFO template.

    To set it so Admins and Moderators can see it, surround it with this conditional:

    <if condition="is_member_of($bbuserinfo,5,6,7)">$blocks[infractions]</if>

    Leave a comment:


  • Schnee
    started a topic Remove Infractions tab in User Profile?

    Remove Infractions tab in User Profile?

    Hi there,

    I researched this and found this post about how to hide the infractions info in the earlier version of vB. The goal is not just to hide them from ALL users which can be done by deleting the memberinfo_block_infractions code, but to remove it from all but moderators and admins seeing the tab?

    http://www.vbulletin.com/forum/showt...de+infractions

    But, now with the member blocks and the tabs and stuff, I cannot figure out how and where to add that same conditional statement?

    MEMBERINFO or memberinfo_block_infractions or?

    Thanks for any wisdom you can share.

Related Topics

Collapse

Working...
X