Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9
-
Fix Version/s: 1.9.1
-
Component/s: Block: Birthday
-
Labels:None
-
Environment:MySql 5, Php 5, Moodle 1.8 onwards
-
Database:MySQL
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_19_STABLE
Description
When the birthday block in place on the Frontpage, it should show birthdays of all users on the site - this happens presently.
When the birthday block in placed inside a course, it should display birthday's of only those users who are enrolled in the course.
Attachments
-
- birthday_2008041601.diff
- 17/Apr/08 7:03 AM
- 24 kB
- Anthony Borrow
-
$i18n.getText("admin.common.words.hide")
- birthday.zip
- 17/Apr/08 4:46 AM
- 16 kB
- Anthony Borrow
-
- birthday/.project 0.2 kB
- birthday/README.TXT 3 kB
- birthday/block_birthday.php 11 kB
- birthday/config_global.html 3 kB
- birthday/lang/.../block_birthday.php 1 kB
- birthday/lang/de_utf8/block_birthday.php 1 kB
- birthday/lang/.../block_birthday.php 1 kB
- birthday/lang/en_utf8/block_birthday.php 1 kB
- birthday/lang/.../block_birthday.php 1 kB
- birthday/lang/.../block_birthday.php 1 kB
- birthday/lang/.../block_birthday.php 1 kB
- birthday/lang/es_utf8/block_birthday.php 1 kB
- birthday/lang/.../block_birthday.php 1 kB
- birthday/lang/fr_utf8/block_birthday.php 1 kB
- birthday/lang/hu_utf8/block_birthday.php 1 kB
- birthday/lang/it_utf8/block_birthday.php 1 kB
- birthday/lang/ja_utf8/block_birthday.php 1 kB
- birthday/lang/sv_utf8/block_birthday.php 1 kB
- birthday/styles.php 0.2 kB
- birthday/temp.html 4 kB
-
$i18n.getText("admin.common.words.hide")
- birthday.zip
- 16/Apr/08 2:01 PM
- 16 kB
- Anthony Borrow
-
- birthday/.project 0.2 kB
- birthday/README.TXT 3 kB
- birthday/block_birthday.php 11 kB
- birthday/config_global.html 3 kB
- birthday/lang/.../block_birthday.php 1 kB
- birthday/lang/de_utf8/block_birthday.php 1 kB
- birthday/lang/.../block_birthday.php 1 kB
- birthday/lang/en_utf8/block_birthday.php 1 kB
- birthday/lang/.../block_birthday.php 1 kB
- birthday/lang/.../block_birthday.php 1 kB
- birthday/lang/.../block_birthday.php 1 kB
- birthday/lang/es_utf8/block_birthday.php 1 kB
- birthday/lang/.../block_birthday.php 1 kB
- birthday/lang/fr_utf8/block_birthday.php 1 kB
- birthday/lang/hu_utf8/block_birthday.php 1 kB
- birthday/lang/it_utf8/block_birthday.php 1 kB
- birthday/lang/ja_utf8/block_birthday.php 1 kB
- birthday/lang/sv_utf8/block_birthday.php 1 kB
- birthday/styles.php 0.2 kB
- birthday/temp.html 4 kB
-
- bday_display.jpg
- 30 kB
- 16/Apr/08 6:12 PM
Issue Links
| This issue will help resolve: | ||||
| CONTRIB-358 | Feature Request : Show upcoming Birthdays |
|
|
|
Activity
- All
- Comments
- History
- Activity
- Source
- Test Sessions
I am attaching patch that should resolve both CONTRIB-358 and CONTRIB-359.
Anil - Attached is a zip file that should allow the setting of the number of days to look ahead for the birthday block. In addition, it should now respect the course boundaries and only show users within a course.I have not done much testing but once I get a thumbs up from you that this works I will go ahead and officially add it to CVS. Peace - Anthony
Theres some error in the display of dates. Instead of the day and month being shown , its showing the name of the month in numbers (04 in the attached pic is for April) and the date is being shown as name of month. It supposed to look forward 15 days from April 16 but the dates are being shown incorrectly
I have only tested this in EUR date format since our data is in that format.
Corrected get_month_day fucntion for EUR date format - I had days and months reversed. Thanks for catching it.
Anil - I want to clean up the mdl_config table and start using the mdl_config_plugins to store the saved settings for the birthday block. I'm testing that and once I finish I will go ahead and commit the changes. Thanks for your help in testing and the good suggestions for improving this block. Keep in mind that currently the max number of students is 50; however, I may play and get that so that it is adjustable by the site admin. Let me know if you have any other suggestion or run into any other problems. Peace - Anthony
Anil - OK I think everything should work for now. The upgrade should take the previously entered values from mdl_config and move them to mdl_config_plugins. Let me know if you catch any errors. Peace - Anthony
Thanks. It works fine now, the dates appear properly.
We need a block similar to this for Anniversaries in addition to Birthdays- for the faculty. Is there a way two copies of the block could be installed ? I've tried renaming the block folder and uploading in /bocks but that doesn't work.
I think that we would have to move the name of the field from a global configuration and set it up as a local configuration so that each block could have its own settings. It is possible but it will not be a high priority as I really need to spend some time on the 1.8 gradebook and GBPv2 code. I was able to get some of this done in between classes. Feel free to create a tracker issue - it seems like a reasonable request so that you could have birthdays and anniversaries - currently you have to choose between one or the other. At that point, we should probably give some options for describing the event so that it would say Today's $instance_name so that it could be defined as Birthday, Anniversary, etc. Peace - Anthony
I'll create another tracker issue for the request
A question :why spend time on the Gradebook V2 , isn't the 1.9 gradebook as powerful as the GBV2 ?
Thanks for creating a new issue. I need to do something with the GBPv2 code and the 18STABLE gradebook because I am the maintainer of both of those and they are related to one another. Moodle supports older versions with bug fixes in so far as we have the manpower to do so. But yes, my hope is that 1.9 makes GBPv2 obsolete. Peace - Anthony
This also should be fairly easily implemented. I'm a little surprised that is not what is happening as that is the behavior I would have expected by default but I probably changed something in the code that changes that. If there is a course id supplied to limit the number of students returned I would like to change the heading so that it indicates that there are no birthdays Course $shortname. Peace - Anthony