Quote:
Originally Posted by choccyclaire
Thanks.
I changed two lines so that the lift ban link does not show for someone who is not banned and vica versa so that the ban link does not show for a banned member:
Code:
<if condition="$post[usergroupid]== 2">
<tr><td class="vbmenu_option"><span onmouseover="this.style.textDecoration='underline'";
onmouseout="this.style.textDecoration='none'"; onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')">Ban $post[username]</span></td></tr>
</if>
<if condition="$post[usergroupid]== 8">
<tr><td class="vbmenu_option"><span onmouseover="this.style.textDecoration='underline'";
onmouseout="this.style.textDecoration='none'"; onClick="window.open('modcp/banning.php?do=liftban&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')">Lift $post[username]'s Ban</span></td></tr>
</if>
|
Good idea, not sure why I didn't think of that. One problem though, any users that aren't a member of the usergroup id 2 (Registered Users) or usergroup id 8 (Banned Users) will have neither option appear. If you want to include the ban option to other usergroups (like disgruntled staff members etc).
Change this:
HTML Code:
<if condition="$post[usergroupid]== 2">
<tr><td class="vbmenu_option"><span onmouseover="this.style.textDecoration='underline'";
onmouseout="this.style.textDecoration='none'"; onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')">Ban $post[username]</span></td></tr>
</if>
To this:
HTML Code:
<if condition="$post[usergroupid]!= 8">
<tr><td class="vbmenu_option"><span onmouseover="this.style.textDecoration='underline'";
onmouseout="this.style.textDecoration='none'"; onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')">Ban $post[username]</span></td></tr>
Now one of the two options will appear for everyone.