Skip to Content Skip to Menu

Gravatar Setup

9 years 6 months ago #262968 by shibumidesign
Replied by shibumidesign on topic Gravatar Setup
Hey Kyle,

thanks for that! It now works for the CB Login Module, but still not showing the gravatar for Kunena when I'm on the forums section of the site - it's not even showing the gravatar default image, it's showing the CB default image...

I have Kunena's gravatar plugin disabled, so I turned it on again, and no change. Not sure why it's still not pulling the gravatar from CB plugin.

Jeff

ShibumiDesignStudios.com - Ottawa.ScionOwners.ca
Joomla v3.4.1 - Kunena v3.0.8 - K2 v2.6.9 - CB v2.0.8

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

9 years 6 months ago - 9 years 6 months ago #262971 by shibumidesign
Replied by shibumidesign on topic Gravatar Setup
More on this... Kunena is not pulling the gravatar avatar, instead it's using the default CB avatar

As you can see above, it's not showing the gravatar, not even the default gravatar "G" image...

but CB Profile and CB Login module is showing it fine

Jeff

ShibumiDesignStudios.com - Ottawa.ScionOwners.ca
Joomla v3.4.1 - Kunena v3.0.8 - K2 v2.6.9 - CB v2.0.8
Attachments:
Last edit: 9 years 6 months ago by shibumidesign.

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

9 years 6 months ago #262996 by shibumidesign
Replied by shibumidesign on topic Gravatar Setup
Figured it out... it was my Kunena plugin for CB - Enable Community Builder Avatars... once I switched that to no it's loading the Gravatars.

Too many integrations, too much confusion, too much coffee and not enough sleep!!

Jeff

ShibumiDesignStudios.com - Ottawa.ScionOwners.ca
Joomla v3.4.1 - Kunena v3.0.8 - K2 v2.6.9 - CB v2.0.8
The following user(s) said Thank You: krileon

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

9 years 6 months ago - 9 years 6 months ago #263010 by shibumidesign
Replied by shibumidesign on topic Gravatar Setup
Okay, I have another question...

I added an extra field of radio button type "Use Gravatar" (cb_use_gravatar) with yes/no option... how would I set the layout fields for users who don't have or use Gravatar? For example, if they don't have or want to use Gravatar, and want to upload and show their own avatar, what code would I use in the Layout overrides?

Currently using:
Profile Value Layout:
[cb:userfield field="cb_gravatar" /]

Userlist Value Layout:
[cb:userfield field="cb_gravatar" reason="list" /]

* I hate to say this, but trying to find documentation on various aspects of CB on here is like trying to find a needle in a haystack :(

What about this - I have been looking through some other posts on input substitutions, and wondering if I am using the right logic here:
Profile Value Layout:
[cb:if cb_use_gravatar="yes"][cb:userfield field="cb_gravatar" /][/cb:if]
[cb:if cb_use_gravatar="no"][cb:userfield field="avatar"][/cb:if]

Essentially, I've added conditional logic for Use Gravatar - if set to Yes, the use the Gravatar image, if set to no, hide the Gravatar field and use the "uploaded" image instead.

Jeff

ShibumiDesignStudios.com - Ottawa.ScionOwners.ca
Joomla v3.4.1 - Kunena v3.0.8 - K2 v2.6.9 - CB v2.0.8
Last edit: 9 years 6 months ago by shibumidesign.

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

9 years 6 months ago #263037 by shibumidesign
Replied by shibumidesign on topic Gravatar Setup
Bump... still waiting for an answer on this...

I have tried this but it doesn't seem to have any affect:

Profile Value Layout:
[cb:if cb_use_gravatar="0"][cb:userfield field="avatar" /][/cb:if]
[cb:if cb_use_gravatar="1"][cb:userfield field="cb_gravatar" /][/cb:if]

Anyone have any insight on this?

Jeff

ShibumiDesignStudios.com - Ottawa.ScionOwners.ca
Joomla v3.4.1 - Kunena v3.0.8 - K2 v2.6.9 - CB v2.0.8

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 6 months ago #263050 by krileon
Replied by krileon on topic Gravatar Setup
You don't need a radio field for that. Just test to see if your gravatar field has a value or not. Example as follows.

Profile Value Layout:
Code:
[cb:if cb_gravatar=""][value][/cb:if] [cb:if cb_gravatar!=""][cb:userfield field="cb_gravatar" /][/cb:if]


Userlist Value Layout:
Code:
[cb:if cb_gravatar=""][value][/cb:if] [cb:if cb_gravatar!=""][cb:userfield field="cb_gravatar" reason="list" /][/cb:if]

All usages outside of profile user the typically use the userlist display so both layouts should be set.

* I hate to say this, but trying to find documentation on various aspects of CB on here is like trying to find a needle in a haystack

Nick just released out CB Primer Book. It covers a large range of CB usage in great detail. We've tutorials below. Videos below. Even a tutorial specifically for substitutions below.

CB Primer Book:
www.joomlapolis.com/news/18492-cb-primer-book-designed-to-help-you-learn

Tutorials:
www.joomlapolis.com/support/tutorials

Videos:
www.youtube.com/user/Joomlapolis/playlists

Substitutions:
www.joomlapolis.com/support/tutorials/107-use-cases/18353-using-substitutions-throughout-cb


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