Usergroup conditional question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Webnower
    Senior Member
    • Sep 2004
    • 189
    • 3.7.x

    Usergroup conditional question

    Hi there,

    Is there a way to only allow a member of Usergroup "A" to view other profiles of members in Usergroup "A"?

    I know it should be possible, but I can't find the correct solution. Just a simple template edit is all I need...

    Thanks for your help!
  • harmor
    Senior Member
    • Aug 2003
    • 1334

    #2
    Open MEMBERINFO template

    Find
    PHP Code:
    $navbar 
    Add
    PHP Code:
    <if condition="$bbuserinfo[usergroupid] != $userinfo[usergroupid]">
    <
    table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
    <
    tr>
        <
    td class="tcat">&nbsp;</td>
    </
    tr>
    <
    tr>
    <
    td class="alt1">This user is not in your usergroup</td>
    </
    tr>
    </
    table>
    <else /> 
    Find
    PHP Code:
    $footer 
    Add Above
    PHP Code:
    </if> 

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎