Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Scheduled Tasks for webwizforum
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Scheduled Tasks for webwizforum

 Post Reply Post Reply
Author
pappu View Drop Down
Newbie
Newbie


Joined: 06 July 2007
Location: United Kingdom
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote pappu Quote  Post ReplyReply Direct Link To This Post Topic: Scheduled Tasks for webwizforum
    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 

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
pappu View Drop Down
Newbie
Newbie


Joined: 06 July 2007
Location: United Kingdom
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote pappu Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
kbannon View Drop Down
Groupie
Groupie


Joined: 03 October 2002
Location: Ireland
Status: Offline
Points: 115
Post Options Post Options   Thanks (0) Thanks(0)   Quote kbannon Quote  Post ReplyReply Direct Link To This Post Posted: 11 July 2007 at 12:10am
Sign up with 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.
Back to Top
dfrancis View Drop Down
Senior Member
Senior Member


Joined: 16 March 2005
Location: United States
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote dfrancis Quote  Post ReplyReply Direct Link To This Post 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!
 
 
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!â€David Francis



Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.