vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   cron jobs.... (https://vborg.vbsupport.ru/showthread.php?t=63410)

Bulent Tekcan 04-03-2004 07:23 PM

cron jobs....
 
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

Quote:

Originally Posted by Christine
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

Quote:

Originally Posted by Vega
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

1 Attachment(s)
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/for...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!


All times are GMT. The time now is 01:57 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.01128 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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