Firefox PHP

Module: Birthdays

Posted by Steve Healy 
Re: Module: Birthdays
April 27, 2008 11:39AM
After my little changes above your posts it is working well.
Re: Module: Birthdays
September 25, 2008 02:19AM
I just started using this mod and wanted to say thanks for your work on it, it looks great!

I do have one suggestion though as I have users' real names showing on my site and found that those weren't used for this mod. If you change line 291 to read $user['display_name'] rather than $user['username'], this will allow the default to be shown (whether it is user or real name).

Anyways, thanks again for all your hard work.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Birthdays
October 22, 2008 04:29AM
Hi, this is a great module, works perfectly. However I would like to include Birthdays on the New User Registration page, register.php. Is there an easy way to do this or is it even possible? My PHP skills are a little rusty and I really only know PHP 4 - haven't had time yet to study up on PHP 5, so I'd rather not go hacking around without some guidance. Thanks for any help you can give.
Re: Module: Birthdays
November 11, 2008 07:10PM
I have uploaded version 1.0.5 of this module with the following changes:

- Fixed a bug in the tpl_cc_usersettings hook (needed to return $profile data)

- Modified to use display_name rather than simply username

- Added the Dutch Informal (from Jan-Willem) and Turkish (from scabboy) language files


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Attachments:
open | download - birthdays-1.0.5.zip (11.3 KB)
Re: Module: Birthdays
February 12, 2009 03:45AM
FYI, I just diagnosed a Phorum using this module. It was causing the MySQL server to OOM and causing the server to hit its PHP memory limit. I have not looked deep into the code yet, but it appears this module does not handle thousands of users very well.

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: Module: Birthdays
March 06, 2009 12:08PM
Quote
Jan-Willem
However, the mod is not working very well for me. If I try to set my birthday it won't remember the date. It allways says december 31 1969, whatever I try. Any suggestions?

Good day!
I have the same problem and after reading this post I don't understood how can I correct this... As I understood, I have to rewrite this module at all for solving this problem. May be I mistake?
Please help me...
With best regards.
Re: Module: Birthdays
August 02, 2009 03:30AM
I'm guessing this module is no longer compatible with the latest version of Phorum. Does anyone know how I could do something like this, but just have the birthday to edit in the ControlCenter, and have the age of said birthday appear in the profile?

-------------------------------------------

"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Re: Module: Birthdays
December 26, 2014 06:23PM
It seems to me that there is a small bug in this module. When the birthday is at the beginning of the year, but the current date is towards the end of the previous year, the age is not properly computed. This is because only the difference between the current year and the birth year is used to compute the future age. On my system, I have corrected this by adding the lines

if(($ubirthday["mon"] == 1) && ($jetzt["mon"] > 1)) {
$user_age++;
}

after the 'else' of the condition 'if($daysTillBirthday == 0)'
Re: Module: Birthdays
June 21, 2016 07:05AM
The module has an issue with leap years. I suggest to change the test
Language: PHP
if($ubirthday["yday"] >= $jetzt["yday"])
by
Language: PHP
if (($ubirthday["mon"] > $jetzt["mon"]) || ($ubirthday["mon"] == $jetzt["mon"] && ($ubirthday["day"] >= $jetzt["day"])))
in the file birthdays.php
Sorry, only registered users may post in this forum.

Click here to login