- Code: Select all
##############################################################
## MOD Title: Auto group
## MOD Author: Niels < ncr@db9.dk > (Niels Chr. Rød) http://mods.db9.dk
## MOD Description: This mod will make it posible to add member
## to a user group, depending on there post count
## MOD Version: 1.2.2
## Compatibility: 2.0.5->2.0.6
##
## Installation Level: Intermediate
## Installation Time: 10 Minutes (1mn by EasyMOD of Nuttzy)
## Files To Edit: 8
## groupcp.php
## modcp.php
## admin/admin_groups.php
## include/functions_post.php
## include/usercp_register.php
## language/lang_english/lang_admin.php
## language/lang_english/lang_main.php
## templates/subSilver/admin/group_edit_body.tpl
##
## Included Files: 2
## auto_group_db_update.php
## tool/sync_postcount.php
##
##############################################################
## MOD History:
##
## 2003-12-06 - Version 1.2.2
## - phpBB template & EasyMOD compliance enhancement
##
## 2003-10-04 - Version 1.2.1.
## - changed some of the syntax used in the how-to
##
## 2003-08-24 - Version 1.2.0
## - EM ready for 2.0.6
##
## ????-??-?? - Version 1.1.9
## - corrected admin_groups.php, a spell error prevented
## the user list to show, when add/update users
##
## ????-??-?? - Version 1.1.8
## - corrected admin_groups.php, a missing language variable added
##
## ????-??-?? - Version 1.1.7
## - corrected a typo in the how-to related to groupcp.php,
## witch caused a SQL error
##
## ????-??-?? - Version 1.1.6
## - bugs in version 1.1.3 corrected (functions_post.php
## and modcp.php)
##
## ????-??-?? - Version 1.1.5
## - changed groupcp.php to prevent SQL error
##
## ????-??-?? - Version 1.1.4
## - corrected a bug in modcp.php, witch caused a SQL error
##
## ????-??-?? - Version 1.1.3
## - now support maximum number of posts
##
## ????-??-?? - Version 1.1.2
## - corrected groupcp.php, to allow re-join of a hidden group
##
## ????-??-?? - Version 1.1.1
## - missed some changes into the lang_main.php
##
## ????-??-?? - Version 1.1.0
## - if a user have unsubscribed from a autogroup, they are now
## allowed to re-join "closer/hidden groups" later
##
## ????-??-?? - Version 1.0.5
## - typo in the how-to, regarding modcp.php
##
## ????-??-?? - Version 1.0.4
## - not include change into modcp.php
##
## ????-??-?? - Version 1.0.3
## - the how-to for admin_groups.php was corrected
##
## ????-??-?? - Version 1.0.2
## - fixed that guest users was added to autogroups, upon posting
##
## ????-??-?? - Version 1.0.1
## - corrected the placement of the code in usercp_register.php
##
## ????-??-?? - Version 1.0.0
## - now considerd as final
##
## ????-??-?? - Version 0.10.2
## - users are added to "0" groups when register even if "Users
## automatic added when posting" are disabled
##
## ????-??-?? - Version 0.10.1
## - minor change to the language file
##
## ????-??-?? - Version 0.10.0
## - re-written code, now users are true members of user groups,
## code consider as BETA
##
## ????-??-?? - Version 0.9.9
## - minor changes to lang_admin.php
##
## ????-??-?? - Version 0.9.8
## - now posible to mass email a auto group
##
## ????-??-?? - Version 0.9.7
## - now display the groups members when changing the groups permissions
##
## ????-??-?? - Version 0.9.6
## - improved the SQL in auth.php
##
## ????-??-?? - Version 0.9.5
## - I had put a "update" find in the script instead of a original code
##
## ????-??-?? - Version 0.9.4
## - Important security update, in auth.php
##
## ????-??-?? - Version 0.9.3
## - changed the explanation text in group permissions, admin panel
##
## ????-??-?? - Version 0.9.2
## - Fixed some typos in the how-to, regarding admin_ug_auth.php,
## and corrected where groupcp.php are located
##
## ????-??-?? - Version 0.9.1
## - cosmetic change, "post group" are now "Auto group"
##
## ????-??-?? - Version 0.9.0
## - initial BETA release
##
##############################################################
Warning: security risk!
The mod by it self does not contain any known security risks, how ever
make shure you understand how the mod works, since you are applying a security mod
after this, usergroup can be configured as "open for all" with more posts than X
every user how that have patient can in a short time, be a member of any group with sutch a rule, apply therefore rules with care
if a closed/hidden are configured with a minimum post count, and a user have this post count, then the group becomes "same as OPEN", allowing the user to subscribe/unsubscribe manually - if you do not wish this feature, simply NOT do the mod in the groupcp.php file
Picture from admin panel here
http://mods.db9.dk/contrib/auto_group.gif
Note 1: this mod will be completly rewritten for version 2.0.2, do not install the current version unless it is importent to you, you will then have to completly uninstall it later in order to "upgrade".
The new version will work different makeing a autogroup a "real" user group
Note 2: THis mod is now re-written, and work by adding the users to the user groups, current version is considerd as FINAL, but upgrade with new functionallity can come


