Firefox PHP

Show todays Birthdays Mod

Posted by JuergenHansen 
All files from this thread

File Name File Size   Posted by Date 5.8 KB open | download JuergenHansen 10/06/2006 Read message
futureBirthdayHack.txt 2 KB open | download babba_2000 11/28/2006 Read message
ShowTodaysBirthdays.php 9.1 KB open | download Sunbringer 12/14/2007 Read message
Show todays Birthdays Mod
September 03, 2006 01:54PM
just as announced here, I have written a mod showing today's birthdays of registered users.

what it does:
The users can input their birthdays in the control center or, if the admin put it in the template, when they registers.
On the bottom of the forum will appear a list of users having birthday today. the nickname of the users will be linked to their profiles. after the nickname appears the age of the user in brackets.
the admins can make several settings in the admin-center:
* enables caching (loading the data once per day out of the database and put it in a file for later use)
* enables wether or not the listbox will be showed when it is nobody's birthday today.
* select the pages on wich the birthday-list appears (index, list, read, post, search, control)
For installation it is nessesary to copy some files and make changes in template files. You can find an instruction in the readme.txt file.

in the moment, language files for german and english are included. Of course, you can translate the files in your language. When you send me your language-file, I will add it to the release.

Of course, you can make your own template for the control center.

known unsolved bugs:

fixed bugs:
- link to the profile does not work since 5.1.16 (fixed in Version 0.7.01)
- caching does not work correct (fixed in Version 0.7.05)

supported versions of phorum
I have only tested this module with phorum 5.1.15. When you test it with another version, please tell me your experiences. Thanks a lot.

Please feel free to ask questions, make some suggestions for improvement or report bugs.

Edited 4 time(s). Last edit at 10/06/2006 07:39AM by JuergenHansen.
open | download - (5.8 KB)
Re: Show todays Birthdays Mod
September 04, 2006 04:25AM
This is a great mod and it works perfectly! Thanks for your hard work Juergen.
Re: Show todays Birthdays Mod
September 26, 2006 08:02AM
I just saw a problem: it doesn't work with the cache!

My Phorum cache directory is ./cache, but it's not reading from it. It is set to 777.

Also, the links to profile don't work with it for users who have their birthday on that day.
Re: Show todays Birthdays Mod
October 04, 2006 05:37AM
the profile links don't work with the newest version because there's a 0, to many. I can't remember which line exactly it was but you can easily cut it out yourself.

hope that helps. I'll look up the exact line as soon as possible.

tha caching problem is a known issue by now but there was no time to get it working until now. sorry.

Re: Show todays Birthdays Mod
October 04, 2006 05:46AM
Ok, the link issue can be solved by editing line 193 in ShowTodaysBirthdays.php, wich is:
$url = phorum_get_url(PHORUM_PROFILE_URL, "0,".$user["user_id"]);
replace with that:
$url = phorum_get_url(PHORUM_PROFILE_URL, $user["user_id"]);

Please disable caching until this issue is solved. Sorry for that, I will fix it as soon as possible

Edited 1 time(s). Last edit at 10/04/2006 05:48AM by JuergenHansen.
Re: Show todays Birthdays Mod
October 06, 2006 07:43AM
Ok, I think I found the problem with the caching and fixed it in version 0.7.05. Please download it and replace the ShowTodaysBirthdays.php with the newer version. Then it should work :)
Re: Hack for Show todays Birthdays Mod
November 11, 2006 01:40PM

first of all, thanks a lot for this nice Mod. I have made a small hack for this Mod to show future birthdays. Unfortunately, I've made it only in German. Perhaps, you can integrate it in your Mod and extend the settings with the days in future.

Bye, Christian.

edit: small bugfix with abs()

Edited 2 time(s). Last edit at 11/28/2006 04:05AM by babba_2000.
open | download - futureBirthdayHack.txt (2 KB)
Re: Hack for Show todays Birthdays Mod
November 22, 2006 11:59AM
Hello Christian,

I will have a look on this hack when I find some time. thanks a lot :)
Re: Hack for Show todays Birthdays Mod
November 22, 2006 06:02PM
We have a small Phorum with only 20 members and a "Todays"BirthdayMod would be very idle ;-)
Re: Hack for Show todays Birthdays Mod
December 05, 2006 11:35AM
Hello babba_2000,

I don't know exactly what do you mean with 'idle'? Do you mean tha mod works but it is slowly?
Sorry, only registered users may post in this forum.

Click here to login