Skip to Content Skip to Menu

Export CB Profile Picture to K2

  • sabroso
  • sabroso
  • OFFLINE
  • Posts: 29
  • Thanks: 5
  • Karma: 1
9 years 6 months ago #263078 by sabroso
Export CB Profile Picture to K2 was created by sabroso
Hi there,

I'm just starting with CB but I have to admit that the more I dig into it the more I like it. It is brilliant.

CB Auto Actions is genius, but now I'm stuck at a point and I hope you can guide me.

I use K2 for article publishing and I show standard K2 Author profiles. However now I'm looking to integrate CB as a general user management software, specially to manage registration workflows as a starting point.

Working with CB Auto Actions and the K2 Type I can export CB user data into the following K2's user fields: User Group, Gender, Description, URL and Notes. I got this working OK.

However I'm missing an elegant way of exporting the CB user profile picture into the K2 profile picture.

Going through the forums I found some potential options but none of them convinces me:

1) I know there is a K2 setting to integrate with CB that would import the avatar and also replace the K2 profile by the CB Profile. However I don't want to replace the K2 Author profile by the CB profile for now and I have seen in the forum that this K2 option is giving people some problems and might be based on the old CB version. So discarded.

2) CB Auto Actions and the K2 Type does not offer me the option to export the avatar to K2. This would have been perfect, are you looking into incorporating this option?

3) I have seen that with CB Content Bot I could access CB data from K2 templates, however this would mean CB is controlling the avatar and, when rendered, this could break my K2's template formatting/styling. And I think K2 manipulates the original picture in order to create some copies according to K2 size parameters, and then these copies are rendered in order to maintain a consistent layout.

So I don't see a clear way forward and would love to hear your suggestions, many thanks
The following user(s) said Thank You: nant

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 #263127 by krileon
Replied by krileon on topic Export CB Profile Picture to K2

1) I know there is a K2 setting to integrate with CB that would import the avatar and also replace the K2 profile by the CB Profile. However I don't want to replace the K2 Author profile by the CB profile for now and I have seen in the forum that this K2 option is giving people some problems and might be based on the old CB version. So discarded.

Why do you want to keep both profiles? That seams like it'd be confusing for the users to maintain 2 different profiles.

2) CB Auto Actions and the K2 Type does not offer me the option to export the avatar to K2. This would have been perfect, are you looking into incorporating this option?

Nope, there are no plans to add that as it'd result in duplicate files across the file system.

3) I have seen that with CB Content Bot I could access CB data from K2 templates, however this would mean CB is controlling the avatar and, when rendered, this could break my K2's template formatting/styling. And I think K2 manipulates the original picture in order to create some copies according to K2 size parameters, and then these copies are rendered in order to maintain a consistent layout.

K2 doesn't manipulate CBs images when the K2 CB integration is enabled. It's calling our getField API to render the avatar. K2 is displaying the userlist reason though, which is the thumbnail version of the profile image. My guess is you're substituting in the full size image. The below substitution will display the thumbnail sized avatar.

[cb:userfield field="avatar" reason="list" /]


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.

  • sabroso
  • sabroso
  • OFFLINE
  • Posts: 29
  • Thanks: 5
  • Karma: 1
9 years 6 months ago #263187 by sabroso
Replied by sabroso on topic Export CB Profile Picture to K2
Thank you.

I sorted it out using Cb's API and rendering the CB fields I needed from the K2 template.

The reason I use the K2 profile is because it allows me to template override it and style it with the look and feel of my website. Visual integration in the public area is of paramount importance and we don't all use bootstrap...

For now CB profiles remain private only to its owner but I'd like to be able to template override them as any other Joomla extension to potentially replace the K2 profiles and have a more consistent approach as you suggest.I think I saw some posts where this capability was announced for CB 2.1? what's the roadmap for Cb 2.1? When can we expect it released?

thanks!

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 #263238 by krileon
Replied by krileon on topic Export CB Profile Picture to K2

For now CB profiles remain private only to its owner but I'd like to be able to template override them as any other Joomla extension to potentially replace the K2 profiles and have a more consistent approach as you suggest.I think I saw some posts where this capability was announced for CB 2.1? what's the roadmap for Cb 2.1? When can we expect it released?

We don't have template overrides until we're using our XML engine on frontend and most templates will just be XML. I've no idea when we'll get around to implementing that as we've some refactoring to do for other stuff first.


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

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

Moderators: beatnantkrileon
Powered by Kunena Forum