vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Remove User From Usergroup after certain amount of time (https://vborg.vbsupport.ru/showthread.php?t=292615)

Jezlad 12-04-2012 05:44 PM

Remove User From Usergroup after certain amount of time
 
Is there a way to remove someone from a usergroup after a specific amount of time?

For example they join a group, then are kicked out of it after exactly 30 days?

Christos Teriakis 12-05-2012 06:15 PM

Quote:

Originally Posted by Jezlad (Post 2388433)
Is there a way to remove someone from a usergroup after a specific amount of time?

For example they join a group, then are kicked out of it after exactly 30 days?

Only with the help of a cronjob. Currently I don't remember if the system keeps the date of joining a usergroup. If yes, it's easy. Otherwise is a bit more complicated.

Chris

Jezlad 12-08-2012 11:01 AM

Damn, any idea where I can find this information?

--------------- Added [DATE]1354968173[/DATE] at [TIME]1354968173[/TIME] ---------------

Ok I've looked within the active users of a usergroup and it seems the join date into the usergroup is there.

So it can be done?

Christos Teriakis 12-08-2012 11:13 AM

Give me sometime to prepare a file for you.

Chris

--------------- Added [DATE]1354968982[/DATE] at [TIME]1354968982[/TIME] ---------------

Is the usegroup an additional usergroup or you're changing (upgrading) the primary usergroup?

Jezlad 12-08-2012 01:09 PM

Its a primary group, once the month is up I need the users to revert back to their previous group - or move back to registered users.

Pixelduck 12-13-2012 02:50 AM

The paid subs work like this, set it to public joinable, 31 days and it will kick them out

Jezlad 12-18-2012 06:06 PM

Quote:

Originally Posted by Pixelduck (Post 2390417)
The paid subs work like this, set it to public joinable, 31 days and it will kick them out

Im confused...

If I set up a paid group they have to pay to join it. I don't want them to pay, I just need a group that will allow them to join and be removed in 31 days.

Jezlad 12-21-2012 04:35 PM

Quote:

Originally Posted by Pixelduck (Post 2390417)
The paid subs work like this, set it to public joinable, 31 days and it will kick them out

I tried this with a test account. I set it to 1 day instead of 31 as a trial and it didn't remove the user from the group...

Any ideas how to do this?

BoostedK20 02-05-2013 02:43 PM

Bump


All times are GMT. The time now is 01:19 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.01143 seconds
  • Memory Usage 1,724KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete