Log in

View Full Version : Can Someone Write A Cron Job


Jezlad
01-03-2013, 12:01 AM
Hi guys,

Can someone help me out with a little problem?

I have a custom usergroup that people can join. I want people to be in this group for one month after which they are removed back to the default usergroup.

Is someone able to write me a cron job that checks the users within a group and if they've been within it for 30 days removes them?

Quote me.

Lee

Lynne
01-03-2013, 12:13 AM
It's going to have to be more than just a cron job since default vbulletin doesn't keep track of how long a user has been in a certain usergroup. If that needs to be done, you are going to need to add a new field to your table and also write additional code to enter the date when a user is moved into his new primary usergroup (assuming it's the primary group, if it's a secondary group it could get pretty tricky). Anyway, what I'm saying is that this isn't as straightforward as you may want it to be and it won't get done with a simple cron job.

Jezlad
01-10-2013, 05:50 PM
Ah damn.

That's a shame, I've figured out a way for thousands of website owners to make a few extra shillings.

This would be huge...