PDA

View Full Version : cron jobs....


Bulent Tekcan
04-03-2004, 07:23 PM
Hello

I need 1 cron jobs for delete Users Awaiting Email Confirmation members.Because every 3 days delete every member one by one,a lot time

How can I do that ?

Christine
04-03-2004, 09:02 PM
Side note -- You don't have to delete them one at a time. Go to Users > Prune and select Users Awating Email as the group, set the date for whatever time you want and delete them all that way at the same time.

:)

d3nnis
08-16-2004, 08:51 AM
Side note -- You don't have to delete them one at a time. Go to Users > Prune and select Users Awating Email as the group, set the date for whatever time you want and delete them all that way at the same time.

:)


how about a script that automatically deletes this user group users if they failed to validate their email within 3 days?

basically i am doing this everyday... it will be great if there is a cron job that does this...

Vega
08-16-2004, 09:04 AM
Hm. There is one over at vb-germany.com, but I dunno, if I'm allowed to post it over here....

d3nnis
08-17-2004, 06:38 AM
Hm. There is one over at vb-germany.com, but I dunno, if I'm allowed to post it over here....


care to post the link? i hope its not in german :rolleyes:

Vega
08-17-2004, 07:11 AM
Actually it is in german, but I'll translate it for ya. I just hope, that'll be okay over there....


http://www.vbulletin-germany.com/forum/showthread.php?t=10358&highlight=Cron

I don't think, that you'll be able to download attachments over there, so I'll attach it here.

And this is, what you'll have to do, to get this to work:

The cronjob works like this:
First of all, all users, who weren't there for 180 days will receive an email, that their account will be deleted, if they wont show up on your forums within the following 7 seven days.
After that, every user, who wasn't there for 180 + 7 days will be deleted.
However, you can that, if you'd like to.

It's pretty much important that you run that script daily!

First step to do is add some phrases:

Phrase Type: Email Subject Text

Varname: infouser

Text: Account inactive


And another one:

Varname: killuser

Text: Account deleted


Phrase Type: Email Body Text

Varname: infouser

Text:

Hello $username,

we noticed that you weren't on $vboptions[bbtitle] for a long time.
Your account will be deleted, if you won't visit $vboptions[bbtitle] within the next 7 days.


Sincerely,
Your $vboptions[bbtitle] Team


Varname: killuser

Text:

Hello $username,

we noticed that you weren't on $vboptions[bbtitle] for a long time.
Your account has been deleted.

Sincerely,

Your $vboptions[bbtitle] Team



Upload the file, add a cron and your done. :)

Thanks to Xothous from vb-ger.com for releasing it. :)

Wential
02-01-2005, 03:55 AM
Wow, great hack!