This module makes it possible to add Gravatars (www.gravatar.com) to your
forums and user profiles. Features:
o Installs without template modification, however provides template variables for Admins
who wish to have more control over gravatar integration (See the README)
o Module will autoinsert gravatars next to user's name/username.
o Users can control the display and maximum rating of their own gravatars.
o Admin interface to enable autoinsert for various sections of Phorum.
o Admin interface to set gravatar size, and maximum allowable rating (default is G-rated).
o Admin interface to set default gravatar.
o User rating selection cannot exceed Admin setting.
o Gravatar HTML is customizable (after installing see ./mods/gravatar/templates/emerald/ folder)
o All strings defined in module language file
Copy the contents of the attached Zip file into your mods directory. In the Phorum Admin section, go to Modules and turn on the Gravatar module. By default it will begin retrieving gravatars, using a G rating and default size of 80 pixels. Your users can hide their gravatar in the privacy settings, and set a lower rating for their own gravatars than you set in the module settings.
What else... you can either let the module insert the gravatar automatically in all the places it wants to, or you can turn that feature off and do your own template customizations. See the README for more details.
Feedback and critique welcomed... this is only my second module so I am sure I have a few things still to learn about this stuff. Not to mention I am a C# guy, not really php.... what the heck... welcome me to the dark side :-)
Changelog:
----------------
To Do: figure out a way to integrate this with one or both of the Avatar mods already available. Right now this would probably not play too nicely with them, but there are probably ways to have them live together and give each user the choice.
forums and user profiles. Features:
o Installs without template modification, however provides template variables for Admins
who wish to have more control over gravatar integration (See the README)
o Module will autoinsert gravatars next to user's name/username.
o Users can control the display and maximum rating of their own gravatars.
o Admin interface to enable autoinsert for various sections of Phorum.
o Admin interface to set gravatar size, and maximum allowable rating (default is G-rated).
o Admin interface to set default gravatar.
o User rating selection cannot exceed Admin setting.
o Gravatar HTML is customizable (after installing see ./mods/gravatar/templates/emerald/ folder)
o All strings defined in module language file
Copy the contents of the attached Zip file into your mods directory. In the Phorum Admin section, go to Modules and turn on the Gravatar module. By default it will begin retrieving gravatars, using a G rating and default size of 80 pixels. Your users can hide their gravatar in the privacy settings, and set a lower rating for their own gravatars than you set in the module settings.
What else... you can either let the module insert the gravatar automatically in all the places it wants to, or you can turn that feature off and do your own template customizations. See the README for more details.
Feedback and critique welcomed... this is only my second module so I am sure I have a few things still to learn about this stuff. Not to mention I am a C# guy, not really php.... what the heck... welcome me to the dark side :-)
Changelog:
----------------
2010-09-09 v1.0.5 - Fixed formatting problem with flat read views (thanks to Lord_ZealoN for reporting the issue) - Added a "Header topic" option for gravatar autoinsert, to support gravatars display in the header template - Updated README to describe header.tpl template customization 2010-03-15 v1.0.4 - Added HTTP 404 as an option to Gravatar defaults - Updated README to provide instructions for integrating Gravatar and User Avatar modules - Updated README to included further instructions for template customization 2010-01-27 v1.0.3 - Fixed formatting problem with gravatar in Preview view of private message when no recipient is added. 2009-12-04 v1.0.2 - Added gravatars to Preview view of new private message. 2009-12-03 v1.0.1 - Renamed the hook functions to conform to the naming convention recommended by Phorum. - Added gravatars to Private Messaging and to the Buddy List. - Refactored some of the code to be more efficient. 2009-12-02 v1.0.0 - Initial release
To Do: figure out a way to integrate this with one or both of the Avatar mods already available. Right now this would probably not play too nicely with them, but there are probably ways to have them live together and give each user the choice.