Thank you for your prompt replies and patience with me during my "presales" stages. Since I've purchased my subscription now, I am creating a ticket to continue part of our discussion.
From our Presales exchange:
Me: One thing, though. My site uses Community Builder. My user's avatars come from that. Is there an ATS plugin to pull avatars from CB?You were quite correct in that the code was easy to modify. Here is the modification I made to the gravatar.php that is part of the Gravatar plugin.
Nicholas: There is no such plugin but you should be able to easily create one using the simple code of the Gravatar plugin shipped with ATS.
Just before the return $url; statement, I inserted the following code:
/* Begin modification to replace gravatar with CB avatar - Zy Danielson */ $userid = $user->id; $database = JFactory::getDBO(); $database-> setQuery("SELECT avatar FROM #__comprofiler WHERE user_id = $userid AND avatarapproved = '1'"); $avatar = $database->loadResult(); $url = 'http://MY_DOMAIN/images/comprofiler/'.$avatar; /* End modification to replace gravatar with CB avatar */
In case anyone else out there is using Community Builder and wants CB Avatar integration with ATS, just replace MY_DOMAIN in the code above with your domain name.
Here's my question. Since I'm far from a Joomla! pro at this point, I have replaced your gravatar.php in the gravatar plugin with my modified version. I know future updates might overwrite this file again, and I can always re-upload my modification if it does, but I'm wondering if there is a better way to do this. Any advice?
My other question: As you may recall, I have made some overrides using Joomla!'s Language manager. Are the language files for Pro different from what I installed with Core? If so, and I install them, I assume the overrides I've made should still hold for the new Language files, correct?
Thank you. I'm very excited to join your list of professional subscribers for ATS.
Best Regards,
Zy