Version: 1.05, by makaiguy
Developer Last Online: Oct 2016
Version: 3.5.4
Rating:
Released: 03-31-2006
Last Update: 06-05-2006
Installs: 18
Uses Plugins
Re-useable Code Translations
No support by the author.
Here's a little something to give back to this community that has been of such help to me.
With this plugin, you can have a user entered into or removed from a secondary usergroup according to several types of controls that can be placed in the user's profile via custom fields. This acts only on SECONDARY usergroups and will not affect the user's PRIMARY usergroup.
At each login, the plugin will check for the appropriate setting in the user's profile, then add or remove the user from the specified membergroup as appropriate. Note that this does not act instantaneously upon entry of the data in the profile, but requires a new login for this to take effect. [Starting with vB 3.6.4 (maybe earlier, I didn't install anything between 3.5.4 and 3.6.4) this will take effect with one or two page reloads.]
Controls currently available:
1) Password for single usergroup
2) Yes/No choice for single usergroup via radio button
3) Choose one of several usergroups via radio buttons
4) Choose any of several usergroups via multiple checkboxes
Note that you may write your own additional controls and use the two included functions to do the actual insertion into, and removal from, the target usergroups.
Tested with vB 3.5.4, 3.6.4, 3.6.7-PL1, 3.8.7PL3 only.
Full instructions are in the downloadable text file autojoin.txt.
Update log:
1.00 - Initial release
1.01 - Sorts output membergroups numerically plus a few other small changes
1.02 - Rewritten using defined functions for adding to, and removing from, memberbgroups. This should make it easier to follow the logic and to adapt the code for other situations (e.g.checkboxes or radio buttons instead of text profile fields)
1.03 - InGroup() and OutGroup() functions rewritten to make them more useful when dealing with other situations than the somewhat restricted application of entry/exit of specific membergroup via stored password.
1.03.1 - Additional tweaking of InGroup() and OutGroup() functions. Tested extensively and seem to be working as intended. Tested examples of using via radio buttons instead of text field added.
1.04 - Added protection against doing anything re user's current PRIMARY usergroup in secondary usergroup list. Functions renamed to IntoGroup() and OutOfGroup().
19 April 2006 - all code moved from this thread into the downloadable text file.
1.05 - Added control for using multiple checkboxes to choose any of several usergroups.
22 May 2007 - tested with vB 3.6.7-PL1
24 Sep 2012 - tested with vB 3.8.7-PL3
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
The user, by entering the required password in a custom field in his profile, will place himself into a specific user group. If he doesn't have the correct password in this field, it will make sure he is NOT in the usergroup.
This process is run each time the user logs in.
Is that what you're asking?
To make this work, you have to create a custom field in the profile where this password can be entered.
You also need to create a custom $vbphrase that houses the required password value.
Is it possible to enter them into the moderation of a private usergroup? I would love this but I need to know that the group leader can moderate these users
Is it possible to enter them into the moderation of a private usergroup? I would love this but I need to know that the group leader can moderate these users
If I understand the question...
This just adds the user to the usergroup, the same as if you checked the box for that forum after pulling up his record in the admincp. Whether this usergroup and/or forum require moderation is unaffected by this.