Gravatars

September 2015 Joomla Template
GK User
Thu Mar 16, 2017 10:47 am
Hi
I was having problems with gravatars in a site using Technews, once I switched to https instead of http, and I tracked this down to line of code below, in the html/com_content/article/default.php file. It seems you have changed the way the template calls up the gravatar slightly, as previously you avoided using the http or https protocols. See your post here: https://www.gavick.com/blog/integrating ... ith-joomla

I have resolved the issue by adding that little s, but I would like to avoid update problems with this through an override. I have only used the CSS override so far, so I'm wondering how to proceed?

<img src="http://www.gravatar.com/avatar/<?php echo md5(strtolower(trim($author_obj->email))); ?>?s=80" alt="" />

Thanks
User avatar
Expert Boarder

teitbite
Mon Mar 20, 2017 1:40 pm
Hi

Thank You for reporting that. I'm sending it to programmers.
User avatar
Moderator

teitbite
Tue Mar 21, 2017 11:04 am
Hi

A fix to that problem has been added to template packages already.
User avatar
Moderator

GK User
Thu Mar 23, 2017 1:05 pm
Hi
I've just downloaded the latest version of Technews and installed it and it seems the problem is still there, see;

https://www.clubmeal.co.uk/regions/south-east

In addition, there is also a problem with the Gravatar image shown in the login module position when a user is logged in. This also seems to be called from an http address rather than a https, and is causing an error/warning in the browser?
User avatar
Expert Boarder

teitbite
Sun Mar 26, 2017 2:28 pm
Hi

Ok, now I see that the fixed version was not released yet even if fix is applied on production server.

Lets make it manually than:

Edit file gk_technews/html/com_content/article/default.php and replace:

Code: Select all
<img src="http://www.gravatar.com/avatar/<?php echo md5(strtolower(trim($author_obj->email))); ?>?s=80" alt="" />


with

Code: Select all
<img src="//www.gravatar.com/avatar/<?php echo md5(strtolower(trim($author_obj->email))); ?>?s=80" alt="" />


and same in gk_technews/layout/default.php
User avatar
Moderator

teitbite
Tue Mar 28, 2017 10:34 am
Hi

Just got an information that packages has been updated and this fix is included.
User avatar
Moderator

GK User
Tue Mar 28, 2017 12:27 pm
Hi
That is brilliant. Many thanks. Gavick templates and support superb as always.
Thanks again.
Simon
User avatar
Expert Boarder

teitbite
Sun Apr 02, 2017 11:24 am
Hi
Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
User avatar
Moderator

GK User
Mon May 15, 2017 10:47 am
Hi
It seems that the latest version of this template has reverted to calling the http version of the gravatar instead of the https one. I'm getting the security warning in Firefox window again, like before, and I've identified it as the Gravatar image.
Thanks.
User avatar
Expert Boarder

GK User
Thu May 18, 2017 8:54 am
Hi
I would really appreciate a response on this issue please.
Thanks
User avatar
Expert Boarder

teitbite
Sat May 20, 2017 5:34 pm
Hi

Please do not bump Your own thread, it only refreshes last activity time and is moving Your question to the end of the line.

Thank You for this information. Please use the same fix as I've mentioned before and I'll let programmers know what it got overwritten again.

https://github.com/GavickPro/Templates/issues/1049
User avatar
Moderator

teitbite
Mon May 22, 2017 9:44 am
Hi

Change has been implemented in packages again, so You can use them instead.
User avatar
Moderator

GK User
Mon May 22, 2017 4:37 pm
teitbite wrote:Hi

Change has been implemented in packages again, so You can use them instead.


Great, many thanks for sorting that out so quickly, and apologies on the thread bumping. I'll bear that in mind in future.
Thanks again
User avatar
Expert Boarder

teitbite
Sat May 27, 2017 10:08 am
Hi

No problem. Glad I could help.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.