This plugin is to see the users celebrations like birthdays, anniversaries,....
This version runs under elgg v1.6 and don't need another plugins to work. (new since 1.2 version)
It use the core profile fields (not the core custom profile fields), and add automatically the necessary fields. You can see it in start.php
You can select, in plugin configuration, the fields that you want to use.
At the moment I have defined the field type:
- "day_anniversary" with three pulldowns for the day, month and year to avoid the use of calendar input for old dates.
This is used for the specific dates that has celebrations every year, like birthday, wedding day, etc...
- "yearly" a particular date with two pulldowns with day and month (in some countries like spain you celebrate the date of your name's saint). This is use for celebrations that repeat yearly, but not have an origin or specific date
Then the system create the next profile fields like "celebrations_birthdate", "celebrations_dieday" and "celebrations_feastdate".
I have added the prefix "celebrations_" to avoid confusions with the original core fields.
If you want to add some field, you must use the prefix (with underscore) before the field name, and use the defined types of field.
At the moment you can add fields in the file start.php (is easy but you need to copy some code) and in edit.php under settings folder
In your "tools" menu appears a "view celebrations" option where you select the month, then you obtain a list with all the celebrations for this month
Added filters in widgets and list celebrations. You can see "All" celebrations, only "friends" celebrations or filter by group
You can put the two widgets in your profile page with:
I haven't defined css specific styles for this plugin, you can see it with your theme and improve it. I apreciates if you send me css examples.
I'm not a code generator, I'm a user with certain php knowledge. This plugin works for me but maybe it's not the best code.
Any suggestions, bugs, improvements and comments are welcome.
Installation: (It's more easy and simple in this version)
YOU MUST APPLY THE CORRECTION NAMED BELOW IN THE COMMENTS TO USE THE FILTERS
1. intall the folder celebrations inside mod directory
2. IMPORTANT: enable the plugin below the core profile plugin
3. config plugin settings in "tools administration" (you can define if you want a reminder in login with next celebrations, the date type, the fields to use, the celebrations filter)
4. use the widget "today_celebrations" (optional)
5. use the widget "next_celebrations" (optional)
6. edit settings in "next_celebrations" widget (the days left, and if you want to see today celebrations inside this plugin)
NOTE: Test this plugin in development servers if you are using another profiles plugins (change the order between them, but you must put this one below the core profile plugin)
Todo list
- Test this plugin together with another profile plugins
- Email reminders for the next celebrations
Changes for release 1.3
- Added filter in widgets and list celebrations
- Change strftime for gmstrftime to solve problems with dates between differents gmt places (test by chombian, thanks)
- corrected bug with image path in css to display the sendtomessage image in "today celebrations" widget
- corrected a bug with friends filter
Changes for release 1.2
- Add selects in settings because We had problems with checkboxes in plugins settings
Changes for release 1.1
- Correct some date type to strftime
- Added "friends filter"
- Now you can select fields to add from the plugin default
Changes for release 1.0
- Full code rewrite to improve the files and let it to grow up
- Now is very easy (with a few code) to add new fields types (as periodical events) and profile fields
- Tested in elgg v1.6
- Independent from other profile plugins (in this version you don't need the flexprofile plugin)
- Added a field for the wedding date
Changes for release 0.4
- problem in date dropdown with firefox fixed
- Added two languages files (spanish and catalan)
Changes for release 0.3
- Added a new widget to see the next celebrations (you can edit the widget setting in the edit button on the widget)
- Added a reminder when you login with the next celebrations (you can edit teh settings in the admin plugin settings)
- Added the possibility to send a message in the today celebrations widget
Changes for release 0.2
- Change date by gmdate
- Correct some errors with feast celebrations
- Improve user experience with less screens
- Submenu added with the month's list
- Corrected some language errors
- Added icon and profile link for every user
- Corrected a double closed of select tag
A screenshot with the two widgets activated
A picture in the moment of login with one reminder
View Fernando's plugins
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
Thank you Fernando for yet another excellent work....
@fernando
Todo list
- Test this plugin together with another profile plugins
Hi did you tested it with custom profile fields plugin
http://community.elgg.org/pg/plugins/jdalsem/read/341529/custom-profile-fields
My tests show it is incompatible with celebrations. Birthday date is disappear after enable cpf plugin.
And I mean a birthday date on profile page. not in widget.
@alfalive
I know that is incompatible with custom profile fields, but at the moment I haven't time to study this plugin. I hope to find time until the next version.
hi, I'm using elgg 1.6 but it doesnt work ok. When I put the plugin under profiles the view celebration link under Tools it doesnt work.
any help?
thanks!
Fernando,
Awesome contribution, I can't find anything on elgg that does something like this. Like alfalive I would like to use this with custom profile fields (Profile Manager). As of now it is incompatible on elgg 1.6.1. Maybe you could roll this mod into an extension for profile manager? Just a thought. Keep it up, can't wait until these mods are compatable!
Regards,
Hi Fernando, first of all: thank you. This plugin is awesome.
Would you help me to know what's happening to my site? I had Celebrations plugin installed and it's working fine, but it doesn't show time correctly according to my locale... I've tried a lot of things to fix it but the widget keep showing the next day about 3 hours early. What can I do to fix it?
Regards,
@Flavio,
The problem does not relate to The Celebrations PlugIn. Most likely it is you server configs issue. Where are you located and do you know where your server is located ? I do believe that you will find that you City's timezone and you servers's City's timezone are different.
@DhrupDeScoop,
Thank you for your attention!
Hi,
Im searching for plugins like this i just can found your plugins.
But same with alfalive and chirhoxi, im using your plugins with profile manager and your plugins does not work if im enabled the profile manager plugins.
i tried to use this plugin. But i want to celebrations appear on the dashboard.
any suggestions for me?
thanks so much.
work in elgg 1.7.7???
YES ;)
Just installed this, where do i set my birthday date?
just discovered, this mod is not compatible with profile manager...
Hi Fernando,
I just added some of your files to profile_manager to get an user's age field. I do get the age field but it's showing an incorrect age, like nothing, current worldwide year or wrong age (like user born on 01-02-1993 is 76 years old). I do have the input and output files for the age field, they are correct but I think that in the output file is missing the age printing, so I think that's why the age is not showing.
I hope you are not offline for a long time because I see you have not replied on other user's comments either on this plugin site.
Bye.
hey i am also searching like TSFI a plugin which is compatible with profile manager allows to choose, show and search age. If someone finds a solution please help! THX!!
Does anyone know if this will work in 1.8?
elgg 1.8 update please
Hey Fernando, are you still going to release an update for elgg 1.8?