I have also added it to the Modules and Plugins (it may take a little while for it to be approved but it will be located at: http://moodle.org/mod/data/view.php?d=13&rid=901).
In the meantime you should be able to access it as a zip file at: http://www.jesuitcp.org/facultypages/aborrow/moodle/block_birthday.zip
Let me know if you have any trouble or questions about. I did include a readme file which should help answer some of folks initial questions. Peace - Anthony
I made a small correction in one string for a better German version. Thanks for the tool.
Ralf - Danke schön! I have uploaded the revised file to CVS. The zip file should be recompiled and updated nightly. Peace - Anthony
Just a small issue. Using ...
$this->title = get_string('blockname','block_birthday');
... can confuse people who, for some reason, don't have all language packs installed. Instead of just
untranslated texts, they will get real error messages about a naming conflict.
People starting a new block are better of using a specific name, instead of the generic 'blockname':
$this->title = get_string('birthdays','block_birthday');
A very minor issues, but I thought I should mention it before all of the different translations are already made and it would be difficult to undo them. Besides: most of the Naming conflict errors are about a block I started writing in which I also used the generic 'blockname' instead of a more proper name.
One feature request: is it possible to hide the block when there are no birthdays?
That would be really great!
In addition to reducing clutter, it would also at least alleviate another problem I have with the block - although a full fix is of course preferred...!
The problem is that the block does not follow the default time of our installation (or of users).
- Our server (hosted) is in the US somewhere; I'm actually not quite sure what the time zone is there.
- Our time zone is GMT +9 (SEOUL), which is what I have set in the Moodle location settings (I use 1.8.1). Most of our students use the same time zone, but not all.
- Regardless of whether I use the standard time zone setting or another, the block seems to follow the server time of the actual, physical server in the states...!
- A user has today, August 5th as his birthday.
- He didn't show up in the block until 2 pm today (I think it was, I wasn't at the computer for a short while. It was at least after 12 noon).
Enjoy your vacation!
I have problem with the installation in the moodle 1.8.2
I same steps differents in this case?
p.d. - Si prefiere, puede explicarme el problema en espanol
p.s. - There are some new strings in the language file which I have translated for everything except Japanese so if someone could get me a revised Japanese translation with the new strings I would greatly appreciate it. Currently I have the string in the Japanese language file; however, they are in English. As soon as I get a translation for them I will update it in CVS.
here are the corrections for the german lang file.:
+$string['blockshow'] = 'Block auch anzeigen wenn kein Geburtstag in Liste'; +$string['blockhide'] = 'Verbergen wenn kein Geburtstag in Liste'; +$string['blockvisible_info'] = 'Soll der Block gezeigt werden wenn kein Termin in der Liste vorhanden ist?'; The file for de_du_utf8 should only contain this string (1 revision): $string['dateformat_info'] = 'WÃ€hle das Datumsformat in dem das Geburtsdatum im persÃ¶nlichen Profil abgelegt ist. Das Standardformat ist ISO.'; The langfolder de_du_utf8 is a sublanguage folder for de_utf8. This language package uses de_utf8 as reference.
I wasn't sure if there was any other way to do it, so I completely uninstalled the block, then downloaded the zip file and reinstalled it.
However, everything looks the same! Because it is evening here and birthdays would show either way I haven't gotten to test if the block follows our time zone or not, but there is no new option in configuration.
Under Birthday -> Settings, there are still only two options: