Version: 1.00, by ChurchMedia
Developer Last Online: Jun 2013
Version: 3.0.3
Rating:
Released: 03-17-2004
Last Update: Never
Installs: 115
No support by the author.
This hack is inspired by the Birthday Hack for vB2 by Logician. It will automatically create a Happy Birthday thread in a specified forum, listing the people with birthdays for that day. Then other members can post their happy birthday wishes in the thread.
I had the original hack installed on my VB2 board and when I upgraded to VB3 my members missed it. Luckily, it's really easy to implement.
--------------------------------------
Files to modify: /includes/cron/birthday.php
--------------------------------------
Instructions are in the attached text file. The mod should take about 5 minutes.
Be sure to change the variables that say // CHANGE ME
You can customize the message in the $birthday_greeting_thread variable. You could also ad IMG tags with an image of some kind, like in my screenshot.
Note that you MUST turn on BB CODE in you birthday forum in order for this to work properly.
--------------------------------------
Enjoy (and thanks for the inspiration, Logician!)
--------------------------------------
New in Version 2.0:
Bug fixes:
> More accurate age calculation. Sometimes it was a year off.
> The correct thread shows up in the last thread post on the forum home page.
> HTML is not required to be turned on in the birthday forum.
> Most of the code is completely rewritten to vB3 standards.
New features:
> Improved look
> Birthday line now says: (User) was born on (date), (AGE: xx)
> If the year is not given, it says "Not telling! " for age.
> The admin is emailed a list of the birthdays with links to their profiles and a link to the happy birthday thread.
> If you use the uShop/uCash hack, you can give birthday points to the users
Upgrading:
Since the code has changed so drastically, I suggest starting with a fresh copy of birthday.php and following the instructions for a new install.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Thanks for the hack. Mine is not starting threads for everyone. It sometimes does but like today there are 5 people with birthdays and only four listed in the thread. Is there a reason it would exclude certain users? I'm running 3.0.3 and installed it per the instructions in the first post. Thanks in advance for any help.
Someone pointed out it's not including active members (people who have posted in the last several months). Any reason why?
Sometimes I have 8-12 birthdays and it is posting and emailing info for 2 or 3 only.
Today, I've got 8 and it did not send or create. My board is busy, it has been 7 hours now. I even tried running the cron manually. Could it be because one of those members have a space in the name? that is the only thing I could see here.
Someone pointed out it's not including active members (people who have posted in the last several months). Any reason why?
No, it's not about active users.....
It will only send out the email (and create the thread, name of person, etc.) for people who have agreed to accept emails from the admin. So unless you take that part of the code out, you'll never know how many people you'll get -- if any. It depends on each user's settings. Make sense?
Hummm. I removed the code and ran the cron manually, I got a databse error. I put it back and did it again, this time I got 6 people out of 9. Did it a third time without changing anything, got 4 people again. Check users, they are all set to receive admin emails. I am using 3.07
Warning: main(./global.php): failed to open stream: No such file or directory in /home2/MYACCOUNT/public_html/forums/includes/cron/birthday.php on line 15
Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/MYACCOUNT/public_html/forums/includes/cron/birthday.php on line 15