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.
But I have a question.
How I can ensure that the thread for 00.01 are made instead of 07.00.
Also I want adapt the post, I have this way changed him, but I get only the image now in the post, what is wrong ???
Code:
// Create Birthday Thread Hack
$birthday_greeting_thread = "Dear Community,\n\nHere are today's birthdays!\n";
$birthday_greeting_thread = $birthday_greeting_thread.$bday_people;
$birthday_greeting_thread = "\nCongratulated of the organisation.!";
$birthday_greeting_thread = "\n[IMC]http://www.mydomein.nl/forum/data/congratulated.gif[/IMC]";
// Add an extra message tag below the birthdays if you want to. Use \n for line breaks. BB code is allowed. Be sure to uncomment the line if you use it.
//$birthday_greeting_thread = $birthday_greeting_thread."\n\nHave a great birthday!";
$greetermail="organisation@mydomein.nl"; //CHANGE ME: Birthday greeter email
$greeter=102; // CHANGE ME: Birthday greeter user ID
$greeter_name="Organisation"; //CHANGE ME: Birthday greeter user name
$greetings_forum=37; // CHANGE ME: Birthday forum ID
$todays_date11= date("F j, Y", mktime (date("H")+$timeset, date("i"), date("s"), date("m"), date("d"), date("Y")));
$title3= "congratulated ";
$title3.= $bday_title;
$title3.= "on ";
$title3.=$todays_date11;
As extra I have put that in the rood, for now i changed the [IMG] to [IMC] differently the code a cross shows.
Please support !!!
I like this. I installed it about 3 days ago and the first birthday on the site has occurred.
I got 2 posts (one on each site), 2 standard vB birthday emails (one from each site), and 2 admin emails telling me that a user has a birthday today (again one from each site).
All this happened between 0001 and 0005 GMT today (Monday).
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.