View Full Version : Users Awaiting Email Confirmation - Selective PMs
Alan @ CIT
12-05-2005, 10:00 PM
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! :D
sabret00the
12-06-2005, 01:30 PM
great work :)
lanc3lot
12-06-2005, 02:07 PM
A must product, at least for me:)
Flow Fusion
12-06-2005, 02:51 PM
Great work!
kadafi_alive
12-06-2005, 03:32 PM
Hi, is it possible to extend this to custom usergroups?
Regards
Alan @ CIT
12-06-2005, 03:41 PM
From what perspective? If you wish to add additional "staff" usergroups, edit the following line in the plugin:
$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):
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.
kadafi_alive
12-06-2005, 03:48 PM
Hi,
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?
Regards
Alan @ CIT
12-06-2005, 04:06 PM
To use 1 additional usergroup, change the line to:
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:
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 :)
Thanks,
Alan.
kadafi_alive
12-06-2005, 05:37 PM
Thanks again Alan @ CIT
The custom one worked perfectly :)
Alan @ CIT
12-06-2005, 05:38 PM
Excellent news :)
Hornstar
12-07-2005, 07:32 AM
Excellent work, this is being installed right now ^^
Darat
01-15-2006, 06:02 PM
Nice mod - I've installed a slightly altered one so that members suspended from our forum can only PM the moderators.
oneworld
11-13-2006, 12:59 AM
this what i was looking or it, i install it for one group and working good but with more than 5 usergoups , its not working and i try my best but i had problem like the users can send PM to others, so, what i must to do .
oneworld
11-13-2006, 01:07 AM
the groups is 3,4,10 , 17 , 20 , 11
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.