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.
Mine has an issue...I run the Cron...but it just sits there and nothing happens.
Here is the CHANGEME Lines:
PHP Code:
if ($emails)
{
log_cron_action('Birthday Email sent to: ' . $emails, $nextitem);
$birthday_greeting_thread = "Waddup My Peeps,\n\n[b]Here are today's Birthdays![/b]\n\n";
$birthday_greeting_thread = $birthday_greeting_thread.$bday_people;
$birthday_greeting_thread = $birthday_greeting_thread."\n\n[i]w00t w00t! I hope you like getting OLD!!![/i]";
$greetermail="birthdayfairy@s3squad.com"; //CHANGE ME: Birthday greeter email
$greeter=2; // CHANGE ME: Birthday greeter user ID
$greeter_name="jugo????"; //CHANGE ME: Birthday greeter user name
$greetings_forum=2; // 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= "Happy Birthday to ";
$title3.= $bday_title;
$title3.= "on ";
$title3.=$todays_date11;
It's working. Mine does that too. I'm not sure why it's not giving us a "done" message. It shows up in the cron logs, though. If anyone figures out what the problem is, let me know. Fortunately it isn't a big problem.
It seems after I upgraded from the old Birthday script to the new it stopped working. There is no errors that I see just that it's not posting the thread.
It seems after I upgraded from the old Birthday script to the new it stopped working. There is no errors that I see just that it's not posting the thread.
I suggest you start over with a fresh copy of birthday.php (without any hacks at all) and give it another shot.
Is there a way to make it use Pets money instead of UCash?
Thanks again!!!
-Jason
Sure you can. I don't know what the code would be, though. Take a look at the code for the Pets hack and find the lines that give Pets money. Just insert those lines in place of the UCash lines. They should look very similar the to the Ucash code. Make sure the User ID variable looks the same as the Ucash hack and you should be okay.