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] CB Forums: Sidebar field documentation

  • gjschaller
  • gjschaller
  • OFFLINE
  • Posts: 169
  • Thanks: 21
  • Karma: 7
8 years 10 months ago #275100 by gjschaller
Replied by gjschaller on topic CB Forums: Sidebar field documentation
Online / Offline works fine.

I noticed there is no action to map Rank in the CB Forums Plugin for Kunena 3.0. The HTML is there in the output, but there is nothing inside the <li></li> fields.

Still no luck getting the following to work, for any group (incl. Registered):

[cb:if usergroup includes "28”]<li>Rules Marshal</li>[/cb:if]

From what I see in the HTML, there is no <li> at all for this, leading me to believe it's an issue with the If statement.

Code *after* this still passes normally, though - it seems if a line cannot be processed, it is skipped, and the next line is parsed. (I have a non-conditional line "<li>Test</li>" printed to test this).

Geoffrey Schaller
Technical Officer
www.knightrealms.com

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

  • gjschaller
  • gjschaller
  • OFFLINE
  • Posts: 169
  • Thanks: 21
  • Karma: 7
8 years 10 months ago #275101 by gjschaller
Replied by gjschaller on topic CB Forums: Sidebar field documentation
I can provide access to a test environment if it helps.

Geoffrey Schaller
Technical Officer
www.knightrealms.com

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 10 months ago #275102 by nant
Replied by nant on topic CB Forums: Sidebar field documentation
Please read again the entire Chapter 8 of the CB Primer Book.

Exercise
Tip
Create a cb_gender radio button field and sync it with the Kunena Gender field in your CB Plugin Management  CB Forums  Parameters  Forums  Profile tab. Then create 4 Forum Status type fields cb_posts, cb_rank and cb_karma. You can then display these Kunena calculated fields on your user profile pages. This exercise will help you understand the Sidebar sub-tab usage discussion that follows.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 10 months ago - 8 years 10 months ago #275103 by nant
Replied by nant on topic CB Forums: Sidebar field documentation

gjschaller wrote: Online / Offline works fine.

I noticed there is no action to map Rank in the CB Forums Plugin for Kunena 3.0. The HTML is there in the output, but there is nothing inside the <li></li> fields.


Hmm - sorry, I just noticed this.

Will check.

Update:

You need to create a new CB Field of type Forum Status and configure it for ranking.
Last edit: 8 years 10 months ago by nant.

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

  • gjschaller
  • gjschaller
  • OFFLINE
  • Posts: 169
  • Thanks: 21
  • Karma: 7
8 years 10 months ago #275122 by gjschaller
Replied by gjschaller on topic CB Forums: Sidebar field documentation
This still doesn't explain how to do Usergroups. From the guide:

[cb:if usergroup includes "2"]I have Registered Usergroup[/cb:if]

This is the only thing I am confused on - it's not returning anything, even when the user is a member of the Registered (2) group. I don't see a way map usergroups to CB fields.

Geoffrey Schaller
Technical Officer
www.knightrealms.com

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 10 months ago #275129 by nant
Replied by nant on topic CB Forums: Sidebar field documentation

gjschaller wrote: This still doesn't explain how to do Usergroups.


Correct, but is does explain the other issue you posted.

From the guide:

[cb:if usergroup includes "2"]I have Registered Usergroup[/cb:if]

This is the only thing I am confused on - it's not returning anything, even when the user is a member of the Registered (2) group. I don't see a way map usergroups to CB fields.


You can test this substitution in a Custom HTML field.
I just did and it works just fine.

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

Moderators: beatnantkrileon
Powered by Kunena Forum