News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Membergroup based on STATUS

Started by TarantinoArchives, January 03, 2005, 10:25:54 AM

Previous topic - Next topic

TarantinoArchives

Quote from: MikeMill on January 08, 2005, 12:11:03 PM
Are you usingi post based groups?  If so it'll be easy to do both.

Currently the mod is setup as such:
On a per group bases set a max inactivity time and a group to move them to.  If they are both non zero look at the lastlogin field and see if (time() - maxinactive) > lastlogin.  If so reassign the member's primary group to the grouped you defined.

Note that admins and global moderators will not be looked at.

will this mod be a per-click function or will people automatically get assigned to groups as you defined the rule?

Thantos

Sorry for the delay.  Classes just started so I'm running around trying to get everything arranged (classes, club times, tutoring times, etc).  I'll have the installtion package done this weekend.

Way it works ATM which I hope to change in the future to a more user friendly setup:
You setup a rule to move a person from group A to group B based off of the number of posts and then how long they have been inactive.  You can not move to or from post based groups, admin, global moderator, or moderator groups.

Example:
You have a group called Regulars, Super Regulars, Inactive, Super Inactive

A rule could be setup as such:

From                To                    Min Posts   Max Posts     Inactive # days
Regulars          Inactive           0                 10                 20
Inactive           Super Inactive 0                  MAX             100

Substuite MAX for the max number of posts (I give the number on the rule creation page)

So if a regular member that has between 0 and 10 posts (inclusive) has been inactive for 20 days they'll be moved to the Inactive group.

If a member from inactive with any number of posts has been inactive for 100 days they get moved to the super inactive group.

I also have a checkbox to save their membergroups.  If its checked the primary group gets added to the secondary groups otherwise the primary group is overwritten and the secondary groups are removed.

Additionally for a given group the posts ranges can not overlap.

Currently you have to manually proccess the rules by clicking on a button.  At that time it'll look at the members to see who falls into what rule and then moves them.

Also the rule only looks at the primary group to determine if they fall into a particular rule or not.

TarantinoArchives

Quote from: MikeMill on January 27, 2005, 01:04:03 PM
You can not move to or from post based groups,....

from what then?
:-)

dont worry, take your time. i am in college also and in deep latin trouble :-)

Thantos

You can move to and from normal member groups.  Including the ungrouped members

Bushwaiter

International Vulcan Forum: http://vulcanriders.net

TarantinoArchives

i think mike will post the mod as soon as he has the time (from college or whatever) to finish packaging it. i also can't wait to use this mod

TarantinoArchives

mike sent me the finished mod. but he hasn't packaged it because he has problems with the package installer in SMF.
and its hard to contact mike.
seems like he is very busy with college stuff. maybe someone else could finish mike's job? :-)

Webby

Any updates on this ?

I would like to have something like this or at least a query to put members who haven't logged in for say 6 months, to another membergroup I made "Inactive members", so I could send them an e-mail or something.....

TarantinoArchives

like i said, MikeMill has sent me the finished mod but he sais there is no installer for it because he has not time working on the problems with the package manager.

and he wont answer my PMs....

LostProphecy

ooooh this sounds like a fantastic mod *waits patiently*

Angelus Ex Quo Nox

Thantos

First I'd like to tuely and deeply apoligize for the amount of time it took to get to this point.  I would go into details but honestly it doesn't matter.

Second I'd like to point out THIS MOD IS IN EVERY SENSE OF THE WORD BETA

I ended up rewriting it from what I had before because well it was crap and I've learned much since then.

This current version doesn't do a lot of hand holding on your part.

Please let me know of any bugs ASAP either here, at http://www.mikemill.org/board/index.php?topic=14.0, or at [email protected]

I don't consider this mod ready for release on the Mod's forum so I'll post a link to a download page
http://www.mikemill.org/board/index.php?topic=14.0

I hope it is of some use.

Note:  If anyone wants to translate I am fairly certain I made all displays use the $txt variable and all the indexes can be found in Modifications.english.php

TarantinoArchives

have you tested it? how stable is it? i have a fairly large board..... are there backup-procedures so that i could "undo" everything the mod made?

if someone has a testing board, i'd be glad to hear some "reviews" of this very much anticipated mod, before i use it on my main board

Thantos

Quotehave you tested it? how stable is it?
I have tested it on my test forum.  It was stable for me of course I wasn't really trying to break it.

Quoteare there backup-procedures so that i could "undo" everything the mod made?
The mod is un-installable.  Their isn't an "undo" option for the changes to the member's groups after they have been changed.  I would recommend backing up {$db_prefix}members before trying it out

To process the rules (and move the member's group) there is a screen that will display all the inactive members, what group they are in, where they are going, etc.  It uses the exact same query as the processing page.  So you can see who's gonna move and you can use that page to determine if it's correctly getting the right members.

As long as you don't actually process the rules then it won't change any table except the one the mod installed.

TarantinoArchives

another question (I think i've asked you that already some weeks ago):

after i've applied the rule and moved the members, lets say some days later another member gets inactive and "falls" into one of the rules, is he automatically moved then? or is this mod a manual thing?

Thantos


TarantinoArchives

Quote from: MikeMill on April 01, 2005, 09:42:12 AM
This is a manual process.

:-[

can't it be done like a standard membergroup criteria (like post counts etc) where members are just in the group you set the rules for?

Thantos

Once I know this current part works I'll look into putting it into the normal maintenance that the forum currently does

TarantinoArchives

Quote from: MikeMill on April 01, 2005, 09:47:27 AM
Once I know this current part works I'll look into putting it into the normal maintenance that the forum currently does

..because that would be what could make this mod great, if you could set it up just like any other membergroup criteria that is standard in SMF.
so you dont have to run that mod of yours every week or so :-)

MaxD

Looks pretty cool so far, cant wait to see a full finished product. :)

TarantinoArchives

would backing up my mysql database be enough to "make sure" before i try this mod out?

Advertisement: