Print Page | Close Window

Scheduled Tasks for webwizforum

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=23698
Printed Date: 07 April 2026 at 9:38am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Scheduled Tasks for webwizforum
Posted By: pappu
Subject: Scheduled Tasks for webwizforum
Date Posted: 09 July 2007 at 7:52am
Hi Guys


   I love wwf forum I found this better then vbulletin & phpbb

  however not many mods are found for wwf.

  so i started a mod which definately compete with vbulletin.

  but i stuck in one problem. IS there is any way to Scheduled Tasks (cornjobs) to do some work in given time ?

I got some trick but i want to know if i get any direct fast code for that.

say : i want to send automatic pm when users birthday occurs

how can i do this ?

thanks 




Replies:
Posted By: WebWiz-Bruce
Date Posted: 09 July 2007 at 8:10am
This is a limitation of ASP, there are many things with ASP you can not do and this is one.

The nearest you can get is to write some code which is triggered when a particular page is run, but then this would course a deterioration in performance.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: pappu
Date Posted: 09 July 2007 at 8:45am
hummm


 Thanks

Please Refer to my new post about getting error

i got error while poating this thread

Server Error in Forum Application
An error has occured while executing SQL query on database.
Please contact the forum administrator.

Support Error Code:- err_SQLServer_UnreadPosts()
File Name:- functions_common.asp

Error details:-
Microsoft VBScript runtime error
Object required

when i refreshed page i saw that my message is posted

thanks


Posted By: kbannon
Date Posted: 11 July 2007 at 12:10am
Sign up with http://www.webcron.org/index.php?&lang=en - www.webcron.org/index.php?&lang=en and create a daily cron job that will open a page on your site that looks through the database for birthdays on that date and send the relevant people a happy Birthday email.
Remember that their server is in Belgium (info taken from whois.sc) so they will be an hour ahead of you!


-------------
I don't suffer from insanity, I enjoy every minute of it.


Posted By: dfrancis
Date Posted: 11 July 2007 at 12:40am
I did this a while back and it worked. All it did was check for the birthday on the first request of the day (server time) and if there were birthdays, it sent the email/pm (can't remember).
 
It worked great!
 
http://forums.webwiz.net/forum_posts.asp?TID=20842&KW=birthday - http://forums.webwiz.net/forum_posts.asp?TID=20842&KW=birthday
 
I used an application variable to remember the last time it had run but to prevent a double run if the app pool was restarted, I also posted the update to a PM box... so the script would look at the date, then the application... then the PM box, if no PM found, it would run the script.
 
(I was trying to avoid the need for a new field or table in the database, that's why I used the PM post for reference.)
 
I have it on a couple of slow boards and it hasn't given me any trouble. The only trouble would be if the board was so slow that it received zero traffic, well it wouldn't run.
 
That said, you could put any script like this in the common file and then a site uptime monitor, if you had one, would trigger it no matter which page in the site was called.
 
This was so long ago... I'm not sure I could answer any questions so... use it at your own risk. ;) 


-------------
“If you want things to be different, you must be willing to do different things!” http://www.DavidFrancis.org/?wwf=signature" rel="nofollow - David Francis






Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net