vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - Move inactive users to separate usergroup (https://vborg.vbsupport.ru/showthread.php?t=157409)

Paul M 09-08-2007 10:00 PM

Move inactive users to separate usergroup
 
This modification is no longer available or supported.

This is another simple modification written ages ago for my forum, I saw a request for something similar the other day so here is what I use.

If a member has not visited the forum for a defined number of days (180 by default) then they will be moved from their existing usergroup to another usergroup (this can be any existing usergroup, however, you should really create a new 'Inactive users' group - esp if you use the auto-restore option).

Only members of a defined list of usergroups are checked for inactivity.

If a member of the inactive usergroup returns to the forum, and auto-restore is enabled, they are automatically restored to another defined usergroup (by default this is usergroup 2, Registered Users).

Note: The move of inactive users is done as part of the hourly update cron job.



History:

v1.01 : First Release for vB 3.6.
v1.02 : Automatic restore made optional.


Feckie (Roger) 09-09-2007 02:16 PM

Nice One

howiulf 09-09-2007 02:21 PM

thx, a lot.

It's very useful for me.

TheWhite 09-09-2007 03:02 PM

I don't understand why I'd move a user from inactive to registered after 180 days of inactivity (he/she just reregister if they want to come back), anyway if you remove the automatic restore or at least gve us the option to set it to our linkings I will give it a shot.

Regards

kaptanblack 09-09-2007 04:43 PM

Thanks....

firstrebel 09-09-2007 05:14 PM

I can't see any benefit of this either, perhaps if there is, someone can enlighten me.

Bob

Allan 09-09-2007 06:01 PM

Nice idea Paul ;)

sola 09-09-2007 06:13 PM

Thanks for this. An extension of it would be a way for it to work with the "Send an email to inactive user" Mod. If an email is sent out and the system does not log a response (by the user logging in after a set number of days), then he would be moved into the Inactive usergroup - a group one can weed out occasionally. I would rather delete on inactivate a user after he has been contacted to get his account active or lose it.

Thanks Paul M.

Paul M 09-09-2007 06:25 PM

Quote:

Originally Posted by firstrebel (Post 1335553)
I can't see any benefit of this either, perhaps if there is, someone can enlighten me.


We use it simply to seperate out inactive users for things like e-mails.

Quote:

Originally Posted by TheWhite (Post 1335484)
I don't understand why I'd move a user from inactive to registered after 180 days of inactivity (he/she just reregister if they want to come back), anyway if you remove the automatic restore or at least gve us the option to set it to our linkings I will give it a shot.


This is provided 'as is' for anyone who happens to want to use it, I don't plan to change it.

If you don't want the automatic restore then just disable the "Inactive Users (2)" plugin.

PinkDaisy 09-09-2007 06:56 PM

Sweet!! Thanks :D I can get alot of use out of this. :)

jellybaby 09-09-2007 06:59 PM

How do they get moved across - it doesnt seem to be moving anyone across on my forum?

Pirate45 09-09-2007 07:10 PM

Great idea.. in fact I once asked for something similar and this will do the job. I just installed it. I assume there will be a mass move when it hits for the first time? How long until that happens?

Paul M 09-09-2007 08:13 PM

The moves are done as part of the hourly update cron job. I've added that to the description so it's clear.

jellybaby 09-09-2007 08:19 PM

I clicked on it so it did that and its still not showing for some reason that they have moved across, I have checked that I have the settings right and they are.

Paul M 09-09-2007 08:22 PM

If it's set-up correctly then it's pretty hard for it not to work, what settings do you have ?

jellybaby 09-09-2007 08:26 PM

I have set up which groups to check for inactive users, and a new group to move inactive users to. I clicked on the hourly update cron job and it doesnt seem to have done anything

Paul M 09-09-2007 08:38 PM

I meant what settings exactly do you have. Which cron job exactly did you run ?

There is just no way I can see this would not do anything if everything is set-up correctly. There is really nothing in it to break.

jellybaby 09-09-2007 08:40 PM

The hourly clean-up, was that the one you meant?

Paul M 09-09-2007 08:43 PM

Yes.

Masiello 09-09-2007 08:44 PM

Thanks Paul, please, can you make this for 0 posters too?
Inactive - Option
0 Posters - Option

Paul M 09-09-2007 08:46 PM

Sorry, as posted earlier, I do not plan to change this in any way atm, it was written a long time ago for internal use on CF. I've simply posted it up as someone was looking for something similar.

jellybaby 09-09-2007 08:51 PM

Maybe I have a cron problem then as its not working but I haven't noticed a problem before.

Masiello 09-09-2007 08:54 PM

Quote:

Originally Posted by Paul M (Post 1335712)
Sorry, as posted earlier, I do not plan to change this in any way atm, it was written a long time ago for internal use on CF. I've simply posted it up as someone was looking for something similar.

No problem Paul, it is anyway a great mod and I used for sure :)

Paul M 09-09-2007 08:55 PM

@jellybaby - I really cannot say, and unless you plan to send me acp access there is nothing I can look at. You obviously have a problem, but I cannot imagine what. It's a single SQL statement, pretty hard to break.

Masiello 09-09-2007 08:59 PM

Quote:

Originally Posted by jellybaby (Post 1335690)
I have set up which groups to check for inactive users, and a new group to move inactive users to. I clicked on the hourly update cron job and it doesnt seem to have done anything

Same here :(

jellybaby 09-09-2007 09:12 PM

Ahh I think I have found the problem - the product installed as automatically disabled for some reason - have enabled and will try now!

Edit: Yes that works now! Thanks

xandizitxu 09-09-2007 09:17 PM

Simple question before I install this mod

I don't want to move then to another group I want the accounts deleted. Is it possible?

Masiello 09-09-2007 09:18 PM

Quote:

Originally Posted by jellybaby (Post 1335746)
Ahh I think I have found the problem - the product installed as automatically disabled for some reason - have enabled and will try now!

Edit: Yes that works now! Thanks

Uuups, true!

Edit: only the user title remain the same of the primary group (Registered Users)
Edit2: showing after updating user title.

But a question, have to update user title everytime when a user jump from a usergroup to other?

Paul M 09-09-2007 10:01 PM

Quote:

Originally Posted by jellybaby (Post 1335746)
Ahh I think I have found the problem - the product installed as automatically disabled for some reason - have enabled and will try now!

Edit: Yes that works now! Thanks


Oh B*****, so it does, fixed.

If you downloaded it prior to this post, make sure you enable it in the product manager.

Paul M 09-09-2007 10:06 PM

Quote:

Originally Posted by Masiello (Post 1335751)
Edit: only the user title remain the same of the primary group (Registered Users)
Edit2: showing after updating user title.

Correct, that's by design - on our forum we don't want any visible change for inactive users.

jellybaby 09-10-2007 05:25 AM

Thanks Paul great mod.

mrahul 09-10-2007 06:41 AM

does this work on 3.6.4 ?

Pirate45 09-10-2007 08:49 AM

For me, when I installed it, it was not enabled automatically. That slowed me down for a moment but it works great and this is very useful.

Paul M 09-10-2007 09:42 AM

Quote:

Originally Posted by mrahul (Post 1335999)
does this work on 3.6.4 ?

Yes, I believe I wrote it during the 3.6 beta phase.

Masiello 09-10-2007 12:23 PM

If I want for example to mass move the "Inactive Users" to the "Registered User" group, to rebuild user titles and showing only Inactive in the AdminCP end not be visible how you say in the forum by members, it is possible to do a reverse process?

lazydesis 09-10-2007 04:22 PM

awesome :D this is more like the promotion/demotion system :)

this was wat i was looking for since a long long time

now i can send emails seprately one kind to the active and the other kind asking them to be active to the inactive users ...

thanks PauL :)

Paul M 09-10-2007 05:01 PM

Quote:

Originally Posted by Masiello (Post 1336163)
If I want for example to mass move the "Inactive Users" to the "Registered User" group, to rebuild user titles and showing only Inactive in the AdminCP end not be visible how you say in the forum by members, it is possible to do a reverse process?

I've read this twice and still don't understand what you're asking, can you clarify ?

Masiello 09-10-2007 06:40 PM

If I needed to replace in the Registered Users Group all of the users they are now in the Inactive Users Group, is there any way to do the Mass Move from one group to other?

JohnBee 09-10-2007 06:41 PM

Great MOD! thanks for this.

Paul M 09-10-2007 08:38 PM

Quote:

Originally Posted by Masiello (Post 1336409)
If I needed to replace in the Registered Users Group all of the users they are now in the Inactive Users Group, is there any way to do the Mass Move from one group to other?

You can use the ACP Users > Prune / Move Users to do one off mass usergroup moves.


All times are GMT. The time now is 03:28 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03267 seconds
  • Memory Usage 1,808KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete