I've just updated the product. There is now an option to allow users to be banned from an entire forum using a new "Ban From Forum" option on the forum's Administrative menu. This is only available to users who have moderator rights over the forum.
There is now an option to unban from the Moderation Tools menu. This will unban users of the selected posts.
There is also a user groups setting which will allow non-moderators to access this product from a new menu item on the "Thread Tools" menu, plus it will restrict who can use the creation time bans - if enabled.
I didn't get time to look at the PM option.
Upgrade Instructions
1) Install the new product file
2) Edit the FORUMDISPLAY template...
Code:
Find...
<vb:if condition="$show['post_new_announcement']">
<li><a href="moderator.php?{vb:raw session.sessionurl}do=postannouncement&f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase post_new_announcement}…</a></li>
</vb:if>
After it add...
<vb:if condition="$vboptions['LAM_BanFromThread_ForumBans']">
<li><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}postings.php?{vb:raw session.sessionurl}do=LAM_BanFromThread_Forum&f={vb:raw foruminfo.forumid}">{vb:rawphrase LAM_BanFromThread_ForumTitle}…</a></li>
</vb:if>
3) Edit the SHOWTHREAD template...
Code:
Find...
<vb:if condition="$show['addpoll']">
<li><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}poll.php?{vb:raw session.sessionurl}do=newpoll&t={vb:raw threadid}">{vb:rawphrase add_a_poll_to_this_thread}…</a></li>
</vb:if>
After it add...
<vb:if condition="!empty($vboptions['LAM_BanFromThread_UserGroups']) AND in_array($bbuserinfo['usergroupid'], array($vboptions['LAM_BanFromThread_UserGroups']))">
<li><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}postings.php?{vb:raw session.sessionurl}do=LAM_BanFromThread&t={vb:raw threadid}">{vb:rawphrase LAM_BanFromThread_Title}…</a></li></vb:if>
Find...
<li><label><input type="radio" name="do" value="LAM_BanFromThread" tabindex="43" /> {vb:rawphrase LAM_BanFromThread_Title}</label></li>
After it add...
<li><label><input type="radio" name="do" value="LAM_BanFromThread_Undo" tabindex="44" /> {vb:rawphrase LAM_BanFromThread_UndoTitle}</label></li>