PDA

View Full Version : Users Awaiting Email Confirmation - Selective PMs


Alan @ CIT
06 Dec 2005, 15:28
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
06 Dec 2005, 15:30
great work :)

lanc3lot
06 Dec 2005, 16:07
A must product, at least for me:)

Flow Fusion
06 Dec 2005, 16:51
Great work!

kadafi_alive
06 Dec 2005, 17:32
Hi, is it possible to extend this to custom usergroups?

Regards

Alan @ CIT
06 Dec 2005, 17:41
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
06 Dec 2005, 17:48
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
06 Dec 2005, 18:06
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
06 Dec 2005, 19:37
Thanks again Alan @ CIT

The custom one worked perfectly :)

Alan @ CIT
06 Dec 2005, 19:38
Excellent news :)

Hornstar
07 Dec 2005, 09:32
Excellent work, this is being installed right now ^^

Darat
15 Jan 2006, 20:02
Nice mod - I've installed a slightly altered one so that members suspended from our forum can only PM the moderators.

oneworld
13 Nov 2006, 02:59
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
13 Nov 2006, 03:07
the groups is 3,4,10 , 17 , 20 , 11