Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

[SOLVED] [#6191] Invalid Gravatar Email address

  • MAYASIMA
  • MAYASIMA
  • OFFLINE
  • Posts: 183
  • Thanks: 22
  • Karma: 5
8 years 3 months ago - 8 years 3 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:
Code:
<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
Last edit: 8 years 3 months ago by krileon. Reason: Added [SOLVED] tag to subject

Please Log in or Create an account to join the conversation.

  • MAYASIMA
  • MAYASIMA
  • OFFLINE
  • Posts: 183
  • Thanks: 22
  • Karma: 5
8 years 3 months ago #285238 by MAYASIMA
Replied by MAYASIMA on topic Invalid Gravatar Email address
Could it be because of the Profile value layout:
Code:
[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 or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8303
  • Karma: 1446
8 years 3 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.

Code:
<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 or Create an account to join the conversation.

  • MAYASIMA
  • MAYASIMA
  • OFFLINE
  • Posts: 183
  • Thanks: 22
  • Karma: 5
8 years 3 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
Code:
<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 or Create an account to join the conversation.

  • MAYASIMA
  • MAYASIMA
  • OFFLINE
  • Posts: 183
  • Thanks: 22
  • Karma: 5
8 years 3 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):
Code:
<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 or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8303
  • Karma: 1446
8 years 3 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 or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum