Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount! Get 20% off now with code SPOOKY-2024!

How to use CB Gravatar without standard Avatar

12 years 2 months ago - 12 years 2 months ago #207115 by whitetigeritaly
How to use CB Gravatar without standard Avatar was created by whitetigeritaly
I need some suggest about CB Gravatar.
If I put the field in the Portrait Tab, then I see the content of the standard Avatar field and the image related to Gravatar.

How I can disable the field avatar?
With Gravatar it is not more important the standard CB field for avatar/portrait.

Thanks in advance.
Last edit: 12 years 2 months ago by whitetigeritaly.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
12 years 2 months ago #207138 by krileon
Place a Gravatar field in the same position as the avatar field and then use CB Privacy to disable the edit display of the avatar field and set it to not show on profile.


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.

12 years 2 months ago #207142 by whitetigeritaly
Replied by whitetigeritaly on topic Re: How to use CB Gravatar without standard Avatar
Thanks.
Another question: if the user has not a gravatar, how he can select a image?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
12 years 2 months ago - 12 years 2 months ago #207149 by krileon
It uses the default gravatar image. If they don't have a gravatar I guess they'd need to get one if you replaced the normal avatar field with a gravatar field that is. You could probably use a delimiter field with substitution IF statement and substitutions of the avatar and gravatar fields to display either/or I suppose so you could use both methods.


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.
Last edit: 12 years 2 months ago by krileon.

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

12 years 2 months ago #207162 by whitetigeritaly
Replied by whitetigeritaly on topic Re: How to use CB Gravatar without standard Avatar

krileon wrote: It uses the default gravatar image. If they don't have a gravatar I guess they'd need to get one if you replaced the normal avatar field with a gravatar field that is. You could probably use a delimiter field with substitution IF statement and substitutions of the avatar and gravatar fields to display either/or I suppose so you could use both methods.


I'm reading only now about the substitution and so I don't understand well what you are saying?
It is need a third field that checks if Avatar field or Gravatar fields are empty?
There are some examples?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
12 years 2 months ago #207169 by krileon

I'm reading only now about the substitution and so I don't understand well what you are saying?

You'd have 3 fields. The Avatar and Gravatar fields would be on a tab in a not shown on profile position. This is because we just need the edit modes of those fields. Next you need a delimiter field that's in the normal profile position and using substitutions this will handle the actual display.

It is need a third field that checks if Avatar field or Gravatar fields are empty?

Yes, basically you'd add the substitutions to a delimiter field that'd check if Avatar is empty, if it is then use Gravatar.

There are some examples?

Please see substitution usage information below. There are several IF substitution usage examples provided as well.

www.allmysocials.com/directory/tutorials/item/233-substitution-usage


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.
The following user(s) said Thank You: whitetigeritaly

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

Moderators: beatnantkrileon
Powered by Kunena Forum