[RC] Auto Groups MOD 0.2.2

MOD Authors: Discuss and post updates on new MODs in development for phpBB3, Receive feedback and Feature requests for MODs in development.

To submit your MOD or style, go to the STG MOD Manager
Forum rules
go to the STG MOD Manager to post your MOD in development.
Discuss and receive feedback for any MOD in development for phpBB3.
Suggest features for MODs in development.

No Support or MOD Requests
-- exceptions for MODs only posted here as Beta or Alpha.
Support requests for a MOD should be requested in the respective MOD topic.

Re: [BETA] Auto Groups MOD 0.0.3

Postby taiwai » 29 Apr 2007, 07:24

A_Jelly_Doughnut wrote:No, that probably isn't the error...that looks perfectly valid :)

Try changing
Code: Select all
'auto_default'   => request_var('group_auto_default', 0),
to
Code: Select all
'auto_default'    => isset($_POST['group_auto_default']),
and let me know what happens.



thanks :D the default checkbox is working fine now :)

I'm still having a problem though...
I have set a usergroup with a minimum post count of 500, so anyone with over 500 posts should be added to that group and made default. That works fine now, as it did it to me on my admin account when I posted.
I have another usergroup set with a minimum posts of 0 and a maximum posts of 149, so anyone between 0-149 should be joined to the group. I created a new account on my forum and made some posts, but it didn't even join the group =\ Have you got any idea why that might be?

I also have a feature request ;) It would be cool if there was a textbox underneath the 'default usergroup' checkbox where admins could enter usergroup IDs, and if the user was in one of those usergroups, it would not make the usergroup (which is being configured) default. The reason I say this is because on my forum I'd like all members with over 500 posts to be assigned to a usergroup and made default. However obviously if the user is an administrator or a moderator I want the admin group/global moderators group to remain their default.. so it would be nice if I could enter into the textbox IDs of the admin/mod usergroups (eg 5,6) and the 'make default' thing didn't apply to people in those usergroups. Sorry if I didn't explain it well but it probably isn't that hard to do :p
taiwai
Supporter
Supporter
 
Posts: 81
Joined: 10 Feb 2007, 07:23
Gender: Male


Re: [BETA] Auto Groups MOD 0.0.3

Postby A_Jelly_Doughnut » 29 Apr 2007, 07:47

The 0-149 issue is because I explicitly ignore groups that have minimums at zero. Set it to one instead. I think the "default ignore" is a good idea, but perhaps complicated to code. Of course, users can always choose their default group in the UCP...
A_Jelly_Doughnut
phpBB Team Member
phpBB Team Member
 
Posts: 543
Joined: 10 Feb 2007, 14:58
Location: 1- 800 - In - The - USA
Gender: Male

Re: [BETA] Auto Groups MOD 0.0.3

Postby taiwai » 29 Apr 2007, 09:30

Oh right OK. But if I set my default group back to administrator in the UCP, won't it just change it back again each time I make a new post? =\

Edit: I changed it to minimum posts 1 and maximum posts 149 and it then I made another couple of posts on the new account, so now it has like 5 posts, and it still hasn't been added to the usergroup :S
taiwai
Supporter
Supporter
 
Posts: 81
Joined: 10 Feb 2007, 07:23
Gender: Male

Re: [BETA] Auto Groups MOD 0.0.3

Postby A_Jelly_Doughnut » 29 Apr 2007, 13:12

It shouldn't change it again, but I'd have to test it to be sure.

I did test the "change the group properties and see if users are properly kicked out or in" and it worked :scratch:

I probably won't get a chance to look at the code again until tomorrow...I'll get back to you.
A_Jelly_Doughnut
phpBB Team Member
phpBB Team Member
 
Posts: 543
Joined: 10 Feb 2007, 14:58
Location: 1- 800 - In - The - USA
Gender: Male

Re: [BETA] Auto Groups MOD 0.0.3

Postby taiwai » 29 Apr 2007, 17:25

A_Jelly_Doughnut wrote:It shouldn't change it again, but I'd have to test it to be sure.

I did test the "change the group properties and see if users are properly kicked out or in" and it worked :scratch:

I probably won't get a chance to look at the code again until tomorrow...I'll get back to you.



ok thanks :)
taiwai
Supporter
Supporter
 
Posts: 81
Joined: 10 Feb 2007, 07:23
Gender: Male

Re: [BETA] Auto Groups MOD 0.0.3

Postby A_Jelly_Doughnut » 29 Apr 2007, 20:02

If a user is already in a group, this MOD will not add them again, therefore their color stays the same as what they choose in the UCP.

There is a bug in 0.0.3 regarding groups that have both an upper limit and a lower limit set.
Code: Select all
   $sql = "SELECT group_id, group_auto_default, group_max_$mode AS max_value, group_min_$mode AS min_value FROM " . GROUPS_TABLE . "
      WHERE group_min_$mode <> 0
         OR group_max_$mode <> 0";
   $result = $db->sql_query($sql);
is the corrected SQL query in the big ole function in functions.php. I don't have the old version in front of me, but there is only one SQL query there :hello:

I'll get 0.0.4 out this week.
A_Jelly_Doughnut
phpBB Team Member
phpBB Team Member
 
Posts: 543
Joined: 10 Feb 2007, 14:58
Location: 1- 800 - In - The - USA
Gender: Male

Re: [BETA] Auto Groups MOD 0.0.3

Postby taiwai » 30 Apr 2007, 09:54

A_Jelly_Doughnut wrote:If a user is already in a group, this MOD will not add them again, therefore their color stays the same as what they choose in the UCP.

There is a bug in 0.0.3 regarding groups that have both an upper limit and a lower limit set.
Code: Select all
   $sql = "SELECT group_id, group_auto_default, group_max_$mode AS max_value, group_min_$mode AS min_value FROM " . GROUPS_TABLE . "
      WHERE group_min_$mode <> 0
         OR group_max_$mode <> 0";
   $result = $db->sql_query($sql);
is the corrected SQL query in the big ole function in functions.php. I don't have the old version in front of me, but there is only one SQL query there :hello:

I'll get 0.0.4 out this week.


ah ok thanks :D I'll try this query in a min

Edit;

Okay it's working perfectly now :D
and also I can select a default usergroup if I don't want the one it auto-sets and it won't change it back so that's cool too :)

thanks, it's a great mod ;) My only request now is that you'd make a full-resync feature.. but you already said you'd do that in a future version so that's cool ^^
taiwai
Supporter
Supporter
 
Posts: 81
Joined: 10 Feb 2007, 07:23
Gender: Male

Re: [BETA] Auto Groups MOD 0.0.4

Postby A_Jelly_Doughnut » 30 Apr 2007, 20:05

Mod updated to 0.0.4 - see first post for download link
A_Jelly_Doughnut
phpBB Team Member
phpBB Team Member
 
Posts: 543
Joined: 10 Feb 2007, 14:58
Location: 1- 800 - In - The - USA
Gender: Male

Re: [BETA] Auto Groups MOD 0.0.4

Postby umpire66 » 01 May 2007, 11:46

Nice to know that another updated version is out! ;-)
Thanks!
umpire66
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 129
Joined: 28 Apr 2007, 14:45
Gender: Male

Re: [BETA] Auto Groups MOD 0.0.4

Postby umpire66 » 13 May 2007, 15:01

What about adding an option in auto mod group that allows to assign temporarily a users to a group, and once the set period ends the user is automatically re-set to his original (previous) group?

An example could be if you want to give special privileges to donors for only a determined amount of time, or if you want to allow some members to have special privileges for demonstrating purpose in a limited amount of time.
Same thing if you want to demote a user placing him in a warning user group which have limited privileges...once the warning period is over, the user is automatically promoted again to his original (previous) group.

What do you think?:)
umpire66
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 129
Joined: 28 Apr 2007, 14:45
Gender: Male

PreviousNext

Return to MODs in Development

Who is online

Users browsing this forum: No registered users and 4 guests