This plugin is to see the users celebrations like birthdays, anniversaries,....
You should use Kevin's form and flexprofile plugin because I haven't tested it with the core personalization profile fields, but maybe it works.
This plugin adds some field types to the profile form that is generated by the flexprofile plugin of Kevin.
At the moment I have defined the field type:
- "date" with three pulldowns for the day, month and year to avoid the use of calendar input for old dates
- "feast date" a particular date with two pulldowns with day and month (in some countries like spain you celebrate the date of your name's saint)
Then you can create profile fields like "birthday", "feastday" and "dieday".
If you use these names then the widget and the plugin can show these dates. In a future I want to add a marriage field.
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
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:
1. intall the folder celebrations inside mod directory
2. install the kevin plugin (http://community.elgg.org/pg/plugins/kevin/read/97061/form-and-related-plugins-for-elgg-15-and-higher)
3. createa profile form with this plugin (read the instructions because rewrite the elgg profile fields)
4. create the fields "birthday" and "dieday" with "date" type
5. create the field "feastday" with "feast day" type
6. install the widget "today_celebrations" (optional)
7. install the widget "next_celebrations" (optional)
8. edit the days left in "next_celebrations" widget
9. configure the plugin in the administration tool to activate the celebrations reminder on the login
Todo list
- Test in 1.6 version
- Email reminders for the next celebrations
- Add a new relationships between users (marriages)
- Avoid the dependency with flexprofile plugin
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.
This is a good idea, but there should be some consideration for the core also,
I use the replace fields option that the core allows, I am afraid I never could get the form plugin to work for me, I am also always concerned when I branch away from the core, as there is no gurantee that these features will be maintained into the future.
@kiwi_Chris I agree with you, but in my first version of the plugin I couldn't use the replace fields.
Could you send me your plugin? Then I study how you work with profile fields.
What would make this plugin so much easier to handle would be no requirement to have to setup custom fields but have them built in to the plugin.
I think there should just be a celebration plugin that has the fields in it, completly standalone.
in this way everyone could use it.
@ fernando, i don't use any plugins for my fields, I use the core, then go to admin and replace fields
hey does it work with v1.6??
@Fernando you can study this how to work with profile fields.
http://community.elgg.org/pg/plugins/jdalsem/read/291724/custom-profile-fields?annoff=25
@alfalive Thanks, I will take a look to this plugin
it's available for elgg 1.6? thanks
@Shayan Abbas and Wall5 I have no test with 1.6 version, you can try and explain us
How do I make it to grab fields named "birthdate" instead of "birthday"?
@Chombian English is not my mother tongue, then maybe it could be an error in the field names.
Thanks to your comment I have been searching the sense of birthdate and birthday.
I understand that birthdate is the day that you were born and birthday is the anniversary, if this is right then I will change the plugin core to correct this issue.
If you find another language bug i will apreciate your comments
This version works in elgg 1.6, but in few days I upload the new version of this plugin
@Fernando: Could you please include in your future release a way to specify prefered field names such as Birthdate? Thanks for this wonderful plug-in.
@Chombian You can change the language file yourself
Hola Fernando, supongo que eres español.
Cuando vi tu plugin me gusto. Lo unico que despues de seguir los pasos de subir el plugin de kevin y subir el tuyo y habilitarlo me sale el siguiente error:
Fatal error: Call to undefined function form_custom_field_type_manager() in /home/jclanakt/public_html/social/mod/celebrations/models/field_types_extended.php on line 8
Aver si me puedes ayudar
Soy nuevo en esto de elgg
gracias y un saludo
@naxo I supose that you must put this plugin below the form and flexprofile plugins. I have uploaded a new version for this plugin. Then you don't need anymore the plugin form and flexprofile. The new version is independent form the other plugins and works directly with the core profile fields.
@naxo Supongo que tienes que cambiar el orden de los plugins y poner el plugin celebrations debajo del plugin form y flexprofile. Te aconsejo que utilices la nueva versión que he subido que ya no necesita a los otros plugins.
thanks! ahora me lo bajo