With the User Changer Extension you can remove Users inside a defined User Group after a specified time.
User Changer Actions
You can add now actions, which are executed automatically from the cronjob.
(Components → User Changer → Actions)
In the actions view of the Joomla! Component you can find all actions and also when they will be executed!
Remove a User inside a User Group
You need to create and connect your Joomla! User Group and Access Level before you can add new Actions in User Changer!
Click in the actions view on New to add a new action!
- Name
Just give an actions name. - Action
Choose the Action "Remove User"!
Just write a message if you need more actions! - Source User Group
Select the User Group, where your User is at first to start the Action. - Value (in days)
At least, insert a value in days, when the User should get removed.
The function based on the Register Date!
Check proper function
If you want to check correct function, just add a new User with the Source User Group.
You have already seen how to simulate the cronjob on settings site!
http://YOURDOMAIN.TLD/index.php?option=com_userchanger&task=cronUpdate&cronKey=YOUR-CRON-CODE
Currently the Users "Register Date" haven´t exceeded the actions value so now action should be executed:
Please change the "Register Date" to an older date which is outside the actions value and execute the URL again:
(You cannot modify at the moment this value in the Joomla! Backend!
You can choose an older User or you modify the register date directly in the registerDate column of the #__users Table inside the database!
But have a look for the right syntax!)
Now the User should be removed.