The above works, but Bashy made an error and I'm glad he/she did
The above should be placed after this:
Quote:
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
|
And this:
Quote:
<if condition="$post[usergroupid]!= 6 AND $bbuserinfo[usergroupid] == 6">
<tr><td class="vbmenu_option"><a
href="moderator.php?$session[sessionurl]do=useroptions&u=$post[userid]"><phrase
1="$post[username]">Edit User</phrase></a></td></tr>
</if>
|
Should be:
Quote:
<if condition="$post[usergroupid]!= 6 AND $bbuserinfo[usergroupid] == 6">
<tr><td class="vbmenu_option"><a
href="moderator.php?$session[sessionurl]do=useroptions&u=$post[userid]"><phrase 1="$post[username]">Edit User</phrase></a></td></tr>
</if>
|
This code does not exist in the template, but if you add this, your admins will be able to edit the users profile directly from the post. (without logging into the adminCP) I have very happy admins now.
And after that this should be added:
Quote:
<if condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==6 || $bbuserinfo[usergroupid]==7)">
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=375,scrollbars=yes')"><b >Ban or Suspend $post[username]</b></span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=liftban&userid=$post[userid]','liftban','width=500,height=375,scrollbars=yes') "><b>Lift Ban on $post[username]</b></span></td></tr>
</if>
|
Since we almost never unban members, I did not find any sense in adding the last part. So I only did this:
Quote:
<if condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==6 || $bbuserinfo[usergroupid]==7)">
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=375,scrollbars=yes')"><b >Ban or Suspend $post[username]</b></span></td></tr>
</if>
|
So now I have happy mods as well.