Prevent Members Sending Private Message To Others

MobileHacks

New Member
This product allowed you to control the private message & prevent members to send private messages to others.

The product depend on usergroupid
PHP:
$vbulletin->userinfo['usergroupid']
The hock loction for this product : private_newpm_start

The Plugin PHP Code use in this product
PHP:
$prvnt_group = $vbulletin->userinfo['usergroupid'] ; 
    if($prvnt_group == 2 or $prvnt_group == 3) 
    { 
                    standard_error('sorry you dont have permission to send private message '.','.'for any clarification please contact the<a href="sendmessage.php"> administrator</a>'); 
        }
How to install
PHP:
control panel/Plugins & Products/manager Products/[Add/Import Product]


Upload the product
Import the product
 
I think it should depend on user IDs instead, this would be much better.

Plus I think it is much better if there is an option to prevent a particular usergroup from pming another particular usergroup.. such as: Registered usergroup cannot PM Moderator usergroup.

But anyway, thanks for this hack.
 
Back
Top