The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I was trying to add a ban user/unban user to the dropdown list in the postbit but make it so that only the admin could see the ban user option for users who weren't already banned and only see the unban user option for users who were already banned. The unban part seems to work but the ban link shows up for all members. can someone help sort this out? (usergroup 9 is another banned group
Code:
<!-- afterflows banlist --> <if condition="$bbusergroup[usergroupid]==6 AND can_moderate($forum[forumid], '', $bbuserinfo[userid]) AND $post[usergroupid]!=8 OR $post[usergroupid]!=9"> <tr><td class="vbmenu_option"><a href="javascript:void(0);" onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]&bannedpost=showthread.php?p=$post[postid]&postid=$post[postid]','ban','width=500,height=375,scrollbars=yes')">Ban User</a></td></tr> </if> <if condition="$bbusergroup[usergroupid]!=6 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])AND ($post[usergroupid]==8 OR $post[usergroupid]==9)"> <tr><td class="vbmenu_option"><a href="javascript:void(0);" onClick="window.open('modcp/banning.php?do=liftban&userid=$post[userid]','liftban','width=500,height=375,scrollbars=yes')">Unban User</a></td></tr> </if> <!-- /end afterflows banlist --> |
#2
|
|||
|
|||
![]() Code:
<if condition="$bbusergroup[usergroupid]!=6 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])AND ($post[usergroupid]==8 OR $post[usergroupid]==9)"> Code:
<if condition="$bbusergroup[usergroupid]==6 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])AND ($post[usergroupid]==8 OR $post[usergroupid]==9)"> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|