Skip to Content Skip to Menu

[SOLVED] Display canvas-image-url in other content or module?

9 years 9 months ago - 9 years 8 months ago #257745 by avateamcom
Hello,

I try to display a canvas-image somewhere else in other module/content. Ho do I have to substitute this with CB 2.0.5 and CB Subs bot?
I used

[canvas]
and
{cb}[cb:userfield field="canvas"]{/cb}

but this doesn't work at all.
Thanks for your help in advance!

-Stefan
Last edit: 9 years 8 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 9 months ago #257772 by krileon
CBSubs provides no such feature. For Joomla content you need to have CB Content Bot installed. Once installed you can use the below usages in Joomla content.

{cb}SUBSTITUTIONS HERE{/cb}

For modules you need to have CB Content Module installed then create a CB Content Module and supply it with whatever substitutions you want (no need for {cb} usage for the module).


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.

9 years 9 months ago #258038 by avateamcom
Hi Kyle,

thank you for your answer. Unfortunately I didn't get it working. Sorry for explaining not correctly: I certainly do not use the CB subs module or anything with cb subs here, I meant a "CB substitution-possibility"..

To be more concrete: I want to show the image which is used by the user as backgroundimage in his profile (userfield "canvas") in another module. I have a position called slider which shows other images on other pages. I want to use the users image here. How can I get the url of the user canvase image in a separate module?

I found a substition [cb:userfield field="canvas" /], but it doesn't show anything at all..
I also tried the cb content module and added this substitution to it, bos this doesn't work, too.

How can this be done?
Thank you!

Best regards, Stefan

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

  • chanteur94
  • chanteur94
  • OFFLINE
  • Posts: 302
  • Thanks: 13
  • Karma: 1
9 years 9 months ago - 9 years 9 months ago #258040 by chanteur94
Hi Kyle and avateamcom

[cb:userfield field="canvas" /] works fine for me with use of cbcontent.
(same for [cb:userfield field="avatar" /] )

But effectively, in an article,
{cb}[cb:userfield field="avatar" /]{/cb} works fine but not {cb}[cb:userfield field="canvas" /]{/cb}

Strange.


Best regards.
Last edit: 9 years 9 months ago by chanteur94.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 9 months ago #258102 by krileon
The canvas field has strict styling to it. It's a DIV with a background image. This is what allows it to properly scale. You probably will need to surround it in CBs template class as follows.

Code:
{cb}<div class="cb_template">[cb:userfield field="canvas" /]</div>{/cb}

Once done you need to tell CB Content Bot to load in CBs template CSs, which is done by editing Content - Community Builder within Joomla > Plugin Manager then under Advanced tab set "Load Template" to "Yes".


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

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

9 years 9 months ago #258118 by avateamcom
Hi Kyle, hi chanteur94,

I just tried exactly as you said, but it doesn't work at all. The I tried with "avatar" as chanteur94 proposed, and well, that works fine. Is there a special thing with canvas I don't see?

It would be enough for me to get the image-url of the canvas-image. Is there any other posibility without having to change code? The surrounding div within styles can be set separately..

Thanks for your help!
Best regards, Stefan

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

Moderators: beatnantkrileon
Powered by Kunena Forum