[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.2

Postby taiwai » 10 Apr 2007, 01:56

foxxx428 wrote:Aha! There it is. :yahoo: This was the only thing keeping me from updating. SWEET!



are you going to make it make the new group the default group? or have an option for it?
taiwai
Supporter
Supporter
 
Posts: 81
Joined: 10 Feb 2007, 07:23
Gender: Male


Re: [BETA] Auto Groups MOD 0.0.2

Postby A_Jelly_Doughnut » 10 Apr 2007, 10:05

That will be an option in 0.0.3.
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 A_Jelly_Doughnut » 11 Apr 2007, 17:59

0.0.3 is uploaded. See first post for download.
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 » 13 Apr 2007, 09:16

nice.. v3 is awesome :)
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 » 18 Apr 2007, 10:09

I think I can make this more efficient by allowing $mode to be an array and making a more complex query using the OR clause...would definitely cut query count, but might actually be slower. Will try :clapping:
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 » 21 Apr 2007, 04:45

hmm at the moment it isn't making the group default for users..
I noticed that it isn't saving the option when I check the 'make group default' checkbox - when I next go back to the group settings it will be unchecked, so this is probably the reason. any idea how I can fix it?

also I was wondering if there was a way you can make it skip adding to the 'admin log'? it kinda fills it up

One last question.. when does it check to see if users are added to the correct group? is it just after they post? because if I add a usergroup which needs between 0 and 150 posts will that make it so all newly registered users are auto-added to that group?

oh and I have a feature suggestion for a future version.. I was thinking it would be good if you could make a auto-group resync feature which will go through the entire database and make sure all the users are in the correct groups. (just in case things get out of sync or if the admin wants to change the post limit or warning limit and wants all users to be updated)

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 » 21 Apr 2007, 09:12

It checks post count after posting, and on login. Full resync is a good idea.

I'll look into the error of not storing the checkbox.

And that is the purpose of the admin log...whether it fills it or not.
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 A_Jelly_Doughnut » 23 Apr 2007, 20:19

It looks to me like the default checkbox is working as intended. Can you be more specific?
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, 04:25

Hmm I still haven't managed to get the checkbox working...
It could be to do with something which went a little wrong when I was installing it:

Code: Select all
#
#----[ OPEN ]---------------------
#
/includes/acp/acp_groups.php

#
#----[ FIND ]---------------------
#
                  'founder_manage'   => 0,

#
#---[ AFTER, ADD ]----------------
#
                  // auto groups mod
                  'min_days'      => request_var('min_group_days', 0),
                  'max_days'      => request_var('max_group_days', 0),
                  'min_warnings'   => request_var('min_group_warnings', 0),
                  'max_warnings'   => request_var('max_group_warnings', 0),
                  'min_posts'      => request_var('min_group_posts', 0),
                  'max_posts'      => request_var('max_group_posts', 0),
                  'auto_default'   => request_var('group_auto_default', 0);



I couldn't find this line, the closest I could find to it was this: (10th line down)

Code: Select all
               $submit_ary = array(
                  'colour'         => request_var('group_colour', ''),
                  'rank'            => request_var('group_rank', 0),
                  'receive_pm'      => isset($_REQUEST['group_receive_pm']) ? 1 : 0,
                  'legend'         => isset($_REQUEST['group_legend']) ? 1 : 0,
                  'message_limit'      => request_var('group_message_limit', 0),
               );

               if ($user->data['user_type'] == USER_FOUNDER)
               {
                  $submit_ary['founder_manage'] = isset($_REQUEST['group_founder_manage']) ? 1 : 0;
               }
               else
               {
                  $submit_ary['founder_manage'] = 0;
               }


so I made it look like this:

Code: Select all
               $submit_ary = array(
                  'colour'         => request_var('group_colour', ''),
                  'rank'            => request_var('group_rank', 0),
                  'receive_pm'      => isset($_REQUEST['group_receive_pm']) ? 1 : 0,
                  'legend'         => isset($_REQUEST['group_legend']) ? 1 : 0,
                  'message_limit'      => request_var('group_message_limit', 0),
                  // auto groups mod
                  'min_days'      => request_var('min_group_days', 0),
                  'max_days'      => request_var('max_group_days', 0),
                  'min_warnings'   => request_var('min_group_warnings', 0),
                  'max_warnings'   => request_var('max_group_warnings', 0),
                  'min_posts'      => request_var('min_group_posts', 0),
                  'max_posts'      => request_var('max_group_posts', 0),
                  'auto_default'   => request_var('group_auto_default', 0),
               );

               if ($user->data['user_type'] == USER_FOUNDER)
               {
                  $submit_ary['founder_manage'] = isset($_REQUEST['group_founder_manage']) ? 1 : 0;
               }
               else
               {
                  $submit_ary['founder_manage'] = 0;
               }



do you think that could be the reason it's not working?
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, 05:00

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

PreviousNext

Return to MODs in Development

Who is online

Users browsing this forum: Magpie Crawler and 9 guests