[SOLVED] [#6191] Invalid Gravatar Email address

7 years 8 months ago - 7 years 7 months ago #285237 by MAYASIMA
Whenever a new user signs up it automatically ads the email address to the Gravatar field. This works fine when the user has a Gravatar but in case the user doesn't have a Gravatar it breaks the "avatar/nophoto_n.png" link and instead displays text: "Profile Photo". Which also breaks the security on the page (SSL).

The ouput looks like this:
<img src="https://www.gravatar.com/avatar/495ea62a3daca74b9a8b8d9ecc9e2c89?s=200&amp;d=https%253A%252F%252Fwww.mydomain.com%252Fcomponents%252Fcom_comprofiler%252Fplugin%252Ftemplates%252Fdefault%252Fimages%252Favatar%252Fnophoto_n.png&amp;r=x" alt="Profile image" title="Profile image" class="cbImgPict cbFullPict">

How can I resolve this?

Thanks,

Sima

Please Log in to join the conversation.

7 years 8 months ago #285238 by MAYASIMA
Replied by MAYASIMA on topic Invalid Gravatar Email address
Could it be because of the Profile value layout:
[cb:if cb_gravatar="" or avatar!~"/(nophoto_n|tnnophoto_n)\.png$/"][value][/cb:if]
[cb:if cb_gravatar!="" and avatar=~"/(nophoto_n|tnnophoto_n)\.png$/"][cb:userfield field="cb_gravatar" /][/cb:if]

Please Log in to join the conversation.

7 years 8 months ago #285265 by krileon
Replied by krileon on topic Invalid Gravatar Email address
Remove the layout and ensure both fields are displaying fine. If they are then there's a possible issue with your layout usage. I can't make any sense of that HTML. Is that the HTML output by the Gravatar field when using an email address with no gravatar attached to it? Invalid email address seams to work fine for me and just outputs the default gravatar as follows.

<img src="http://www.gravatar.com/avatar/ce8cd946b79b19efccc42d6843d4fce4?s=200" alt="Gravatar" title="Gravatar" class="cbImgPict cbFullPict img-thumbnail">

The [cb:userfield field="cb_gravatar" /] usage will output the layout parameter usage of the gravatar field so be careful what you add to the layout parameters of the gravatar field. I assume your layout usage should only be on the avatar field it self.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

7 years 7 months ago #285668 by MAYASIMA
Replied by MAYASIMA on topic Invalid Gravatar Email address
I removed the layout on the avatar field.

I checked the layout of the Gravatar field and that was just empty.

I still get the same issue and this weird URL
<img src="https://www.gravatar.com/avatar/632330f3774d15d7ddb2638134598624?s=200&amp;d=https%253A%252F%252Fwww.mixedtimes.com%252Fcomponents%252Fcom_comprofiler%252Fplugin%252Ftemplates%252Fmixedtimes%252Fimages%252Favatar%252Fnophoto_n.png&amp;r=x" alt="Profile image" title="Profile image" class="cbImgPict cbFullPict">
Attachments:

Please Log in to join the conversation.

7 years 7 months ago #285670 by MAYASIMA
Replied by MAYASIMA on topic Invalid Gravatar Email address
I just found out where the error is coming from. It happens when the Default Image setting under the Display tab of the Gravatar field properties is set to either "CB Default" or "Custom" with one of the images selected.

When set to CB Default it does not work


When set to None it WORKS


When set to Gravatar it WORKS


When set to Custom it does not work


Whenever it does not work it outputs the following HTML or similar (depending on choice of custom image):
<img src="https://www.gravatar.com/avatar/632330f3774d15d7ddb2638134598624?s=200&amp;d=https%253A%252F%252Fwww.mixedtimes.com%252Fcomponents%252Fcom_comprofiler%252Fplugin%252Ftemplates%252Fmixedtimes%252Fimages%252Favatar%252Fnophoto_n.png&amp;r=x" alt="Profile image" title="Profile image" class="cbImgPict cbFullPict">
Attachments:

Please Log in to join the conversation.

7 years 7 months ago #285677 by krileon
Replied by krileon on topic Invalid Gravatar Email address
Ah, thank you for your findings. Have added a bug ticket to fix.

forge.joomlapolis.com/issues/6191

Will go ahead and get the other ticket implement and see about a CB Gravatar Field 2.1.0 release for today.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.213 seconds

Facebook Twitter LinkedIn