Skip to Content Skip to Menu

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

[SOLVED] Sidebar in CB Forums

11 years 7 months ago - 11 years 5 months ago #222282 by whitetigeritaly
[SOLVED] Sidebar in CB Forums was created by whitetigeritaly
I'm sorry for the trivial question.
In CB Forums there are tree box about "Input substitution supported sidebar display for registered/anonymous/deleted users".

What it means?
Information about my profile (for example) showed to registered/anonymous/deleted user or information about the profile of the user if this is registered/anonymous/deleted ?

Thanks in advance
Last edit: 11 years 5 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 7 months ago #222308 by krileon
Replied by krileon on topic Sidebar in CB Forums
It's the same a using "Advanced" sidebar display in Forum integration plugin. You supply substitution support HTML for the sidebars. There are 3 sidebars depending on the user as Kunena keeps posts for deleted and anonymous users so you can configure all 3 to display differently based off this. Example sidebar as follows.

Registered:
Code:
<ul class="kpost-profile"> <li class="kpost-username">[cb:userfield field="formatname" reason="list" /]</li> <li class="kpost-avatar"><span class="kavatar">[cb:userfield field="avatar" reason="list" /]</span></li> <li>[cb:userfield field="onlinestatus"/]</li> <li class="kpost-userrank">[cb:userfield field="forumrank"/]</li> <li class="kpost-userposts">Posts: [cb:userfield field="forumposts"/]</li> <li class="kpost-karma">Karma: [cb:userfield field="forumkarma"/] [karmaminus] [karmaplus]</li> </ul>

Leaving sidebars blank uses default Kunena display.


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, herzenssache

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

11 years 5 months ago #227745 by herzenssache
Replied by herzenssache on topic Sidebar in CB Forums
Dear Kyle,

thank you for the post. I spend quite some time to figure out to achieve exactly the sidebar that you use here in the CB forum.
Basically I want to have
the real name,
the image,
the CBSubs images,
The Total Posts
and Thank you received
no karma.

I read through the forum and your advise to read through substitution tutorials etc.

My config is CB and CBSubs latest on J2.5 with CBForums 3.0.
I did play with your example code, the example code looks like the picture attached. Needless to say not anything your great sidebar looks like :) Interestingly enough the post count is not populated nor does the karma function work and the online is grey instead of green...

I did not figure out were to find the tutorial for the substitution usage and an more advanced example code (specifically the CBSubs image).

Would you mind pointing me in the right direction where to find a more advanced example code and/or the tutorial?
Thank you,
M
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 5 months ago #227755 by krileon
Replied by krileon on topic Sidebar in CB Forums
Karma, Post Count, and Rank only work if "Forum integration" plugin is enabled as they're fields provided by it. Your alternative is using CB Forums map those values to new CB fields that you create (could even be delimiter fields I believe) then use those new fields in your substitutions.


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

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

11 years 5 months ago - 11 years 5 months ago #227775 by herzenssache
Replied by herzenssache on topic Sidebar in CB Forums
Thanks Kyle, understood and it works. B)

One last question though:
What is the syntax to get the cbsubs plan images?

e.g. <li class="kpost-userposts">Posts: [cb:userfield field="forumposts"/]</li>

thanks,
Matt
Last edit: 11 years 5 months ago by herzenssache.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 5 months ago #227787 by krileon
Replied by krileon on topic Sidebar in CB Forums
That's a CBSubs Plan Image field. You need to have the plugin installed and your plans configured to have an image. Once done just substitute in the field like you do any other.


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

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

Moderators: beatnantkrileon
Powered by Kunena Forum