Version: 1.0, by Alan @ CIT
Developer Last Online: Apr 2012
Version: 3.5.4
Rating:
Released: 12-05-2005
Last Update: Never
Installs: 18
Uses Plugins
No support by the author.
What does this do?
This add-on blocks members of the "Users Awaiting Email Confirmation" usergroup from sending PM's to anyone except members of staff (Mods, Supermods and Admins).
Installation
You need to make sure that the "Users Awaiting Email Confirmation" usergroup have permission to send PMs. Do this using the Usergroup Editor in the AdminCP.
Then install the Product XML as normal.
Important: Unfortunately, my leased vBulletin licence has now expired, and I won't be renewing it until September which means I will be unable to reply to this thread, or update this mod until then. I'm hopeful that the great vBulletin.org community will step in to answer any questions in my absence though See you all in early September!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
From what perspective? If you wish to add additional "staff" usergroups, edit the following line in the plugin:
PHP Code:
$staff_usergroups = array(5, 6, 7);
Those numbers represent usergroup ids. In this case, mods, supermods and admins. To add a custom usergroup to the "staff usergroup" list, just add it's usergroup id to that.
If you meant that you wish to make other usergroups only be able to PM staff, then look for the following line (the first line of the plugin):
PHP Code:
if ($vbulletin->userinfo['usergroupid'] == 3)
Usergroup number 3 is by default the "Users Awaiting Email Confirmation" usergroup. To change this to another usergroup, just change this number to the relevant usergroup id.
thanks for the fast reply. I meant the second one.
Instead of removing the "Users awaiting..." number, can I add other custom usergroups?
For example, usergroup 26
Should it be like this?
if ($vbulletin->userinfo['usergroupid'] == 3, 26) or is that not possible?
Also, is it possible to include a IF statement. For example, if the usergroup is 3, show error confirm email msg and if the usergroup is 26, show different message?
To use 1 additional usergroup, change the line to:
PHP Code:
if (($vbulletin->userinfo['usergroupid'] == 3) or ($vbulletin->userinfo['usergroupid'] == 26))
This will check for usergroup 3 and usergroup 26.
To use more usergroups, do something like:
PHP Code:
if (($vbulletin->userinfo['usergorupid'] == 3) or ($vbulletin->userinfo['usergroupid'] == 26) or ($vbulletin->userinfo['usergroupid'] == 99))
You can continue to add usergroups in that fashion.
With regards to your second question, there is currently no way to do this within the existing code, but if you send me a PM with the usergroup ids and the text that you want displayed for each one, I will make a custom version for you