UBB.Dev
Posted By: JoshPet Beta-[6.4] Birthday Cron Job 2.1 - 01/02/2004 12:00 PM
Mod Name / Version: Birthday Cron Job 2.1

Description: This addon can do 2 things. It can send everyone a PM on their birthday. And/or it can make a post in a specified forum announcing everyone's birthday. This gives your members a place to reply with well wishes.

It's fully configurable. You can choose to have it just do the PMs, or just make the posts, or both. You can control what user number the PMs or Post come from. You can edit the content of the PMs and Post.

Version 2.1 fixes a bug with the user's option to display their birthday publically.

Working Under: UBB.Threads 6.4

Mod Status: Beta

Any pre-requisites: UBB.Threads 6.4 & the ability to run a cron job.

Author(s): JoshPet

Date: 01/02/04

Credits:

Files Altered: none

New Files: birthdaycron.php

Database Altered: none

Info/Instructions: Drop the script into your UBBThreads directory and set up a cron job to run it once a day (or run it in your browser daily). Edit the variables at the top of the file to customize the option.

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attached File
103701-birthdaycron 2.1.zip  (95 downloads)
Posted By: Zarzal Re: Beta-[6.4] Birthday Cron Job - 01/02/2004 12:37 PM
Thank you for the quick response. I take this, change it to my variables and it work as it should.
Posted By: autoua.net Re: Beta-[6.4] Birthday Cron Job - 01/03/2004 11:18 PM
Great job!
Can you also add send greeting message by e-mail?
Posted By: JoshPet Re: Beta-[6.4] Birthday Cron Job - 01/04/2004 3:16 AM
Not currently, that'd be a good feature enhancement for future versions.
Posted By: Ellen Re: Beta-[6.4] Birthday Cron Job - 02/20/2004 12:25 AM
For those of us who are not as advanced, can you please indicate how we would determine
$boardkeyword
for the forum we want the birthday greeting to appear in?

Thanks for your time!
Posted By: JoshPet Re: Beta-[6.4] Birthday Cron Job - 02/20/2004 1:22 AM
You defined it when you setup the forum. If you're not sure anymore - as you're viewing the list of posts - mouse over the links to the forum (or click on them) and in the URL you'll see "Board=whatever". That's the keyword for the forum.
Posted By: Ellen Re: Beta-[6.4] Birthday Cron Job - 02/29/2004 1:14 AM
Thanks! I've got it now.
Posted By: JoshPet Re: Beta-[6.4] Birthday Cron Job 2.1 - 05/21/2004 10:03 AM
Updated the zip to version 2.1. This fixes a minor bug where the user's preference option (new in 6.4) to display their birthday publically (on the calendar) was being ignored.
Posted By: DarkFrog Re: Beta-[6.4] Birthday Cron Job 2.1 - 05/28/2004 7:19 AM
Works with version 6.5b1
Posted By: Dragon Slayer Re: Beta-[6.4] Birthday Cron Job 2.1 - 07/06/2004 11:48 PM
[]Drop the script into your UBBThreads directory and set up a cron job to run it once a day (or run it in your browser daily). Edit the variables at the top of the file to customize the option.[/]

I don't understand what you mean when you say "set up a cron job"
Posted By: Zarzal Re: Beta-[6.4] Birthday Cron Job 2.1 - 07/06/2004 11:56 PM
Cron is a task shedule like windows taskmanager. U must be able to install or modify the cron tab file of your webserver. If you dont have a own server you need to ask your provider to do it for you.

The remider script should run once per day.
Posted By: scroungr Re: Beta-[6.4] Birthday Cron Job 2.1 - 07/06/2004 11:56 PM
in your panel.. plesk.. ensim.. cpanel.. webmin whatever ya use you should see an option for setting up a cron job which is basically the way to tell the server you want this script ran every so and so days hours minutes eons..
Posted By: JoshPet Re: Beta-[6.4] Birthday Cron Job 2.1 - 07/07/2004 12:35 AM
There's some documentation at infopop too which might help:
http://www.ubbcentral.com/support/docs/ubbthreads/UBBthreads_cron.html
Posted By: Hacktor Re: Beta-[6.4] Birthday Cron Job 2.1 - 01/26/2005 2:46 PM
Dear sir, do you have this script also for PHPBB v2.0.11 ???

Greetings from the Netherlands,
Rolf
http://www.hacktor.tk
Posted By: JoshPet Re: Beta-[6.4] Birthday Cron Job 2.1 - 01/27/2005 5:38 AM
No never used phpBB. This is a UBB.Threads site.
Posted By: BWilliams_dup1 Re: Beta-[6.4] Birthday Cron Job 2.1 - 02/16/2005 7:43 PM
[]DarkFrog said:
Works with version 6.5b1 [/]
I am getting ths following error when the cron runs:

/home/socaps/public_html/birthdaycron.php: line 1: ?
: No such file or directory
/home/socaps/public_html/birthdaycron.php: line 2: //: is a directory
/home/socaps/public_html/birthdaycron.php: line 3: //: is a directory
/home/socaps/public_html/birthdaycron.php: line 4: //: is a directory
/home/socaps/public_html/birthdaycron.php: line 5: //
: No such file or directory
/home/socaps/public_html/birthdaycron.php: line 6: //: is a directory
/home/socaps/public_html/birthdaycron.php: line 7: //: is a directory
/home/socaps/public_html/birthdaycron.php: line 8: //: is a directory
/home/socaps/public_html/birthdaycron.php: line 9: //
: No such file or directory
/home/socaps/public_html/birthdaycron.php: line 10: //: is a directory
/home/socaps/public_html/birthdaycron.php: line 11: //: is a directory
/home/socaps/public_html/birthdaycron.php: line 12: //
: No such file or directory
/home/socaps/public_html/birthdaycron.php: line 13: //: is a directory
/home/socaps/public_html/birthdaycron.php: line 14: //: is a directory
/home/socaps/public_html/birthdaycron.php: line 15: //: is a directory
/home/socaps/public_html/birthdaycron.php: line 16: //: is a directory
/home/socaps/public_html/birthdaycron.php: line 17: //: is a directory
/home/socaps/public_html/birthdaycron.php: line 18: //
: No such file or directory
/home/socaps/public_html/birthdaycron.php: line 19: //: is a directory
/home/socaps/public_html/birthdaycron.php: line 20: //: is a directory
/home/socaps/public_html/birthdaycron.php: line 21:
: command not found
/home/socaps/public_html/birthdaycron.php: line 22: syntax error near unexpected token `('
/home/socaps/public_html/birthdaycron.php: line 22: `$whatistoday = date("F jS",time()); '



Any advice ?
© UBB.Developers