Skip to Content Skip to Menu

CB Integration - Avatar - Cobalt CCK

12 years 1 month ago - 12 years 1 month ago #210902 by pepperstreet
CB Integration - Avatar - Cobalt CCK was created by pepperstreet
Hello,
I am looking for a hint, how to get the correct default Avatar image in the Cobalt CCK component . Its the successor and total rewrite of MightyExtensions Resources.

It will be full integrated later, but currently it just supports the user avatar and profile link. There is a little issue with the Default Avatar image (nophoto_n.png). The integration plugin always points to the DEFAULT template.

Example standard CB Default template image path:
.../components/com_comprofiler/plugin/templates/default/images/avatar/nophoto_n.png

That is not correct... if the admin or user selects another CB template, it should use the Avatar from his selected template:
.../components/com_comprofiler/plugin/templates/MyCurrentTemplate/images/avatar/nophoto_n.png


How to get the current template?
Can you help out or give a hint how to improve it?
I attached the current php file.

Thanks in advance.


File Attachment:

File Name: cobalt_int....php.zip
File Size:1 KB
Attachments:
Last edit: 12 years 1 month ago by pepperstreet.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8280
  • Karma: 1443
12 years 1 month ago #210930 by krileon
Replied by krileon on topic Re: CB Integration - Avatar - Cobalt CCK
You'll need to use the getField API. Please see the below tutorials as you'll first need to load in CBs API for usage.

Include API:
www.allmysocials.com/directory/tutorials/item/231-include-api-externally

getFields API:
www.allmysocials.com/directory/tutorials/item/235-obtaining-field-values-through-api


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: pepperstreet

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

Moderators: beatnantkrileon
Powered by Kunena Forum