Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.
Attachments
103701-birthdaycron 2.1.zip (0 Bytes, 95 downloads)

Last edited by JoshPet; 05/21/2004 2:02 AM.
Sponsored Links
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
Thank you for the quick response. I take this, change it to my variables and it work as it should.

Joined: Jun 2001
Posts: 43
User
User
Offline
Joined: Jun 2001
Posts: 43
Great job!
Can you also add send greeting message by e-mail?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Not currently, that'd be a good feature enhancement for future versions.

Joined: Sep 2000
Posts: 159
Member
Member
Offline
Joined: Sep 2000
Posts: 159
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!

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.

Joined: Sep 2000
Posts: 159
Member
Member
Offline
Joined: Sep 2000
Posts: 159
Thanks! I've got it now.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.

Joined: May 2003
Posts: 15
Newbie
Newbie
Offline
Joined: May 2003
Posts: 15
Works with version 6.5b1

Joined: Jul 2003
Posts: 46
Junior Member
Junior Member
Offline
Joined: Jul 2003
Posts: 46
[]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"

Sponsored Links
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
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.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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..

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
There's some documentation at infopop too which might help:
http://www.ubbcentral.com/support/docs/ubbthreads/UBBthreads_cron.html

Joined: Jan 2005
Posts: 1
Lurker
Lurker
Offline
Joined: Jan 2005
Posts: 1
Dear sir, do you have this script also for PHPBB v2.0.11 ???

Greetings from the Netherlands,
Rolf
http://www.hacktor.tk

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
No never used phpBB. This is a UBB.Threads site.

Joined: Mar 2003
Posts: 159
Member
Member
Joined: Mar 2003
Posts: 159
[]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 ?


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,570
Posts293,915
Members13,848
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,829
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 81
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2022 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221129)