Inactive Member Group Mover

Started by Thantos, April 05, 2005, 12:32:49 PM

Previous topic - Next topic

Thantos

Link to Mod

*NOTE:  This mod is still in beta*
This mod allows you to set rules that will move inactive members into predefined membergroups.
The rules can be setup based off of the number of posts and length of time inactive.  The number of posts takes precendance.

Rules can not be created moving anyone into or out of the following groups:
Administrator
Global Moderator
Moderator
Any Post Count Based Group

Members with permissions to manage membergroups can process the rules at any time by:
Admin -> Manage Inactive Rules ->  View and Process Inactive Members (A list of all the members that will be moved will be displayed at this time) -> Process These Inactive Members

A list will display detailing who was moved, from what group, to what group, and the last time they logged in.

FaSan

It is a good idea !

But.. i found a bug :

      $query = "
         UPDATE {$db_prefix}members SET
         ID_GROUP=$mem[to] ".
            ($mem['save']? ", addit i onalGroups='". implode(',', array($mem['fromGroup'], $mem['secgroups']) ). "'": ''). "
         WHERE ID_MEMBER=$mem[id] LIMIT 1
         ";

Thantos

Fixed and new version uploaded.  Thanks!

Thantos

Now on version 0.5
QuoteVersion: 0.5
  - This is a BETA version.  If you find any errors please let me know at the email above.
  - Ok this time I'm sure it says Never instead of Jan 01, 1970
  - Removed the fatal error if the from and to were the same when trying to modify the rule

greyknight17

This is great.  I've been waiting for something similar to this.

Will try this out when I have some free time and post feedback.

Thantos

Should I change it so that the fromGroup can be multiple groups?  Might be helpful if you didn't want to make multiple rules to do the same basic thing.

TarantinoArchives

I'd still love to see the "max posts" as an option back in. like i explained, after moving from YabbSE to SMF even users with many posts are listed as "last online: never"

Thantos

You can setup another rule to act as a max posts.
The problem with having a  max posts is that I would have to make sure that no two rules affecting the same group would overlap.
Given this case:
Rule 1) min 0 max 50 ....
Rule 2) min 30 max 100 ...

If the member had 45 posts which rule should they fall under?

Say you want to seperate those with 0 posts and online: never with those will at least 1 post and online: never, currently you can do:
Rule 1) From, to, Min 0, Inactive: 1825 (about 5 years)
Rule 2) From, to, Min 1, Inactive: 1825

Now rule 1 will only apply to those with exactly 0 posts and in the from group

TarantinoArchives

yes I found that works pretty well, thank you.

Some suggestions:

- In the "view and process" section you normally get a pretty large list of members. Would be cool if those could be grouped BY RULE and for example have it show like this:

Quote
Members by rule X: 50 (show)
Members by rule Y: 14 (show)
Members by rule Z: 5 (show)

and when you click on "show" a window pops up and it shows you all the members.

OR: make the list sortable. just an idea...

- once i made a new rule, i have to go back to the main menu to make a new one. would be cool if there would be a field to make e new rule right afte i just made one.

Viking Chief

I could use this mod on my community, its looks like a very useful tool :), but I'm using smf 1.0.3.
??? What modifications has to be made to make it compatible with 1.0.3 ?
"You can't depend on your eyes if your imagination is out of focus" -Mark Twain

Thantos

It's compatible with 1.0.3
On the mod submit page there is no checkbox for 1.0.3 so I went with 1.0.2

I like those ideas TarantinoArchives.  I'll probably go with making the list sortable since (hopefully) after the first time you process the rules the list will be more manageable :)

And I haven't forgotten about allowing it to run as a scheduled maintenance.

TarantinoArchives

is there a possibility that those rules can be integrated into SMF's member groups system? that instead of creating a new member group based in posts or non-posts you can also create one based on activity (like here), gender, location etc?

Viking Chief

Thanks for your speedy reply! ;)

I'll install it on my community ...  :P
"You can't depend on your eyes if your imagination is out of focus" -Mark Twain

Thantos

IMO it be difficult, since whats been asked for isn't based on activity but the lack of it.
The other groups I've seen have been based on something that can change when the user does something.  It's harder to do base a change off of when the user doesn't do something.

TarantinoArchives

Quote from: MikeMill on April 07, 2005, 12:47:38 PM
IMO it be difficult, since whats been asked for isn't based on activity but the lack of it.
The other groups I've seen have been based on something that can change when the user does something.  It's harder to do base a change off of when the user doesn't do something.

I understand. But when a user doesn't sign in for 3 months, he DOES something: not being active. and so his "last online: X" value has a change of ZERO. wouldn't it be possible to make it based on the change of that value?
just an idea :-)

when do you think the next version's gonna be out? still not sure if i wanna try this at this early Beta stage :-)

Thantos

QuoteI understand. But when a user doesn't sign in for 3 months, he DOES something: not being active. and so his "last online: X" value has a change of ZERO. wouldn't it be possible to make it based on the change of that value?
That is not doing something that is doing nothing.  Lets look at the post group as an example.  When the user makes a post they did something that invoked a particular piece of code that incremented the post count which then in turn can see if they can then change groups.  When someone removes the post it invokes a piece of code that decrements their post count and sees if they should change groups. 
Both times a piece of code was invoked.  Thats the key, some action has to be done to invoke the code.  In this case its the group mover.

Quotewhen do you think the next version's gonna be out? still not sure if i wanna try this at this early Beta stage :-)
Since I don't see any bugs being mentioned it'll probably be Saturday befor 0.6 is released.  Though I already have the sort part written with another mod so it shouldn't take me too long to do that.

TarantinoArchives

another question:

what happens if a Member, which i moved because he was inactive, logs in again and so is no longer inactive anymore, he will still be in that grouped i moved him to, right? or is he thrown out of it again?


by the way, do you need translations for any of your mods (German-English, English-German)?

Thantos

Quotewhat happens if a Member, which i moved because he was inactive, logs in again and so is no longer inactive anymore, he will still be in that grouped i moved him to, right? or is he thrown out of it again?
They'll stay in the inactive group.  I'll look into a reversable option.
You may be able to simulate it currently by creating two rules to move out.
1) From to inactive: 1 posts 0
2) from from (group is the same) inactive: 10 days posts 0

I'll have to check it out though

Quoteby the way, do you need translations for any of your mods (German-English, English-German)?
I'll always accept translations and will make avialable any I get.  Just send them to [email protected] just make sure you specify for which mod

TarantinoArchives

did you get my email with the language files?

Thantos

Aye.  I've been busy this last wek setting up a new location for one of the communities I belong to.  The members voted and went with vBulletin since they are used to it so I've been having to learn their code to figure out what I need to do to get what I want.

SaltedWeb

I must be missing something where does one a sign these from????

Installed it but dont see settings anywhere?

Paul
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

TarantinoArchives

must be in your admin panel in the navi menu to the left. if you use custom templates that might be a slight problem

SaltedWeb

Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Gandalf

Hello, nice mod Mike,
is it possible to make it this way:
move people with < X posts when they have registered since Y days and have not posted since

like
Rule: posts 10, days : 15
if a user is registered, after 15 day from the registration, if he didn't post 10 posts he will be moved...
it's usefull fro leachers where they are always online but have always 0 posts (i have a lot of such members)
thx
Siemens-mobiles.org Visit it and you won't regret it :D

SaltedWeb

I beleive there is already this option under :

QuoteFrom Group To Group
Min Posts
Number of Days Save t

he Member's Groups
Ungrouped MembersModeratorsSite Supporter Ungrouped MembersModeratorsSite Supporter   
says under apply rules.

What version do you have maybe that why you dont see that??


Cozmo
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Az

Major question - something that I believe everyone will agree with me on:

Processing members - doing it automatically.

You see when members sign up to the forum it is done instantly (unless otherwise set). With this process members mod the admin has to do it manually. If users get say 30 posts or whatever and then are moved to a 'higher ranked' group (say with access to more boards), they're gonna have to wait until the admin processes them.

Now is there a way to run the process members function on some sort of schedule (say every ten minutes or so) or any other automatic process?

If it can't be done through PHP - how about CRON?

Please would someone help soon - it is the one problem holding back my site.

But hey - thanks for the fantastic mod!

Az

Don't want this thread to die just yet? Any answers?

greyknight17

That would be a nice feature Az.  :)  But couldn't this be done using SMF ranking system (membergroup settings) already?  Or am I overlooking something here?  From what I read, this is more for inactive members and not to advance members to a higher rank.

I finally had some time to play around with this mod myself.  Is there a way to delete those inactive user accounts (besides doing them manually)?  If I want to move only those members who did not make a single post in the last 30 days, do I set it like this:

post 0, days 30

Doesn't look right though since you said post takes precedence and if they posted even once in, say, 60 days ago, it will still not count it.  I just want to delete members who are inactive for 30 days or more.

Thanks.

Thantos

Guys after much thought I'm sorry to say I'm gonna let this project die.  I don't really have the urge to complete it.  If anyone wishes to take it over they have my blessing and I'll try to answer any questions that person might have about the code.  Questions can be directed to [email protected]

Az

Isn't there already an option for deleting inactive users after 30 days (or whatever) is SMF?

Anywho I've bodged this mod so that members put a certain preset code into their 'custom title' in the profile (this can be done with anything in the profile, I could change to signature or whatever easily). When they do this i click process members and the rule checks for the code in their custom title. If it is there, it changes their membergroup, they are then able to access other boards corresponding to that membergroup.

I just want the script to process members itself now, and not wait for me to do it manually - unfortunately i dont know how - it's stupid having to upgrade members manually by running the script.

TarantinoArchives

please dont let this project die. it's so important for larger communities

Nitro

WHAT about ACTIVE Group Mover?

I have installed this MOD and it worked GREAT!!!
Now I want to ONLY send my important messages or other things with the ELITE group of ACTIVE members, so i don't waste my time and resources from my server by sending more than 2000 emails and only 40% are active?

so, if the owner of this MOD can do something to have the option to reverse and move the ACTIVE members to another group, that'd be even MUCH BETTER!!!
let's say you want to create another group only for members who have been active in the last... month, or two weeks or something like that.

watcha think?

this Mod is AWESOME.... you ROCK!!!
MPF Rocks!!!

Nitro

Quote from: MikeMill on April 05, 2005, 12:32:49 PM
Link to Mod

*NOTE:  This mod is still in beta*
This mod allows you to set rules that will move inactive members into predefined membergroups.
The rules can be setup based off of the number of posts and length of time inactive.  The number of posts takes precendance.

Rules can not be created moving anyone into or out of the following groups:
Administrator
Global Moderator
Moderator
Any Post Count Based Group

Members with permissions to manage membergroups can process the rules at any time by:
Admin -> Manage Inactive Rules ->  View and Process Inactive Members (A list of all the members that will be moved will be displayed at this time) -> Process These Inactive Members

A list will display detailing who was moved, from what group, to what group, and the last time they logged in.


Mike, i found something interesting in your MOD. first of all, it is a fantastic idea and it's working great.
but i think something is not right, i created a rule for people inactive for more than 30 days, as i could not find any  more help as to how to work this thing, so someone signed up last night in my forum and it was moved automatically into the inactive group! now, why? is it going to be moved out again once he starts using his account?

please help me understand better how your MOD works in more details?. thank you.
MPF Rocks!!!

TarantinoArchives


Nitro

ANOTHER ONE MODDER STOPPED!!!!!

OH NO!!!!!!

i think SMF should remove or warn people about MOD authors not working on them any more, or something else!

MAN!

ok, i will have to remove this stuff.
MPF Rocks!!!

TarantinoArchives

i think he posted it here. but somebody really should think about this as a standard SMF feature: creating member groups based on activity/country/gender etc...

Thantos

I am sorry you were confused about its status.  I have editted the description to reflect the change.  Since it was asked if someone had my permission to modify this mod I am hereby releasing this mod, its files and code, into the public domain.

Advertisement: