MOD download & history

You'll automatically gain access to this forum when you will post your first post in another forum. That way it will demonstrate how the Auto Group MOD works.
Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

MOD download & history

Postby Niels on Mon 06. May, 2002 18:52

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
##
##############################################################

:arrow: To know the languages already available in the MOD archive, please click here

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
Last edited by Niels on Wed 10. Dec, 2003 13:57, edited 16 times in total.
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Dolan on Tue 07. May, 2002 19:36

How exactely do I edit the options as i have followed the instructions and installed the mod but i dont know where to go to set the options for where you post to gain acess to other areas etc.
Dolan
Poster
Poster
 
Posts: 5
Joined: Wed 01. May, 2002 21:13

Postby Niels on Tue 07. May, 2002 20:07

To make a auto group:

first make a new usergroup inside the admin panel, call it e.g.
Everyone
make it a Auto group (select boks), and fil with a value of 0 (all users)

now everyone wil inherit the permissions set to this group (registerd users)

now to make this worth something, you will also have to aplly some security rules, make a forum (or pick a existing), and set permissions it to "Private", witch means the this forum is "controlled" by the users or the users groups permissions.

go back to the usergroup, and edit it's permissions, now you will be able to select witch properties "everyone" have access to inside that forum

continue so for as meny forum / usergroup you like
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

A question

Postby jobbesat on Wed 08. May, 2002 09:08

Hy Niels
I still didn't install this mod, because i want to be sure to make it run on my forums, that's why i come with a question.
I don't have groups on my forums, just Moderators; i already have a private forum that is viewable only by moderators and admin of course; now let's pretend I want to make a new forum and apply to this last your mod; what is the path I have to follow to create it?
And, let's pretend I set that users must post 500 topics before entering the forum, these users will have access also to the already existing Private Forum?

Thanks a lot in advance
jobbesat
Special supporter
 
Posts: 191
Joined: Tue 07. May, 2002 16:21

Re: A question

Postby Niels on Wed 08. May, 2002 11:38

jobbesat wrote:Hy Niels
I still didn't install this mod, because i want to be sure to make it run on my forums, that's why i come with a question.
I don't have groups on my forums, just Moderators; i already have a private forum that is viewable only by moderators and admin of course; now let's pretend I want to make a new forum and apply to this last your mod; what is the path I have to follow to create it?
And, let's pretend I set that users must post 500 topics before entering the forum, these users will have access also to the already existing Private Forum?

Thanks a lot in advance


After you have installed this mod, all existing usergroups and furture usergroups, will have a option to define how meny post before a member inherit the permissions
[url=mods.db9.dk/contrib/auto_group.gif]look this picture[/url]

The requierd posts only apply to groups choisen as "auto group" therefore no existing groups are affected, this is due to security reasoons, so users by accident don't get access to wrong groups.

Therefore, in your case, you can set up the usergroup and grants the rigths to the specific forum. you can do that before this mod, or after, it doesen't matter, only thing you have to do after you have installed the mod, is to go to the ADMIN PANEL - USERGROUP - MANAGEMENT
where you will have this extra option, select the "auto group" and fill with e.g. 500 posts - that it
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Thanks and

Postby jobbesat on Wed 08. May, 2002 11:46

can you allow a probably dumb question? I hope so.
Let me make an example or I'll have to drive to your home in some minutes :)
All forums I have are viewable, but accessible only after you registered.
I create a new forum which I want users to enter only if they posted 500 topics.
Now I create a group called "SuperUsers" and set topic to 500; the question is: since all users don't belong to any group, can i leave them where they ar or i have to create a basic group and put all users inside this basic group? Or, after created the SuperUsers Group, when a user reaches 500 topics automatically will see the hidden forum?
The second i said?
jobbesat
Special supporter
 
Posts: 191
Joined: Tue 07. May, 2002 16:21

Postby Niels on Wed 08. May, 2002 12:17

IMPORTANT UPDATE, I have now updated the how-to, by mistake the change made to auth.php was a "old" version, this is importen that YOU do this update, due to security....

new version is 0.9.4

here are how to upgrade
Code: Select all
[FIND]
FROM " . AUTH_ACCESS_TABLE . " a, " . USER_GROUP_TABLE . " ug, ".GROUPS_TABLE." g, ".USERS_TABLE." u
WHERE ((ug.user_id = ".$userdata['user_id']. " ) OR (g.group_count<=\"u.user_posts\"))

[REPLACE WITH]
FROM " . AUTH_ACCESS_TABLE . " a, " . USER_GROUP_TABLE . " ug, ".GROUPS_TABLE." g, ".USERS_TABLE." u
WHERE ((ug.user_id = ".$userdata['user_id']. "
   AND ug.user_pending = 0
   AND a.group_id = ug.group_id
   AND g.group_id = ug.group_id ) OR (g.group_count<=u.user_posts AND a.group_id = g.group_id AND u.user_id = ".$userdata['user_id']." AND g.group_type=".GROUP_POSTS."))
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Re: Thanks and

Postby Niels on Wed 08. May, 2002 12:24

jobbesat wrote:Now I create a group called "SuperUsers" and set topic to 500; the question is: since all users don't belong to any group, can i leave them where they ar or i have to create a basic group and put all users inside this basic group? Or, after created the SuperUsers Group, when a user reaches 500 topics automatically will see the hidden forum?
The second i said?


You will only have to define the group "SuperUsers" as "auto group", and set the number of posts to 500, when the user reatch this amoun they wil inherit, if they already have 500 posts, they will already inherit the permission given to that group
no need for you to create a basic group, or like

all your users will se the "hidden forum" when they reatch 500 posts, just like you had access to this forum when making you first posts on this site.
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Next

Return to Auto group [2.0.8/EM]

Who is online

Users browsing this forum: No registered users and 0 guests

cron