Skip to Content Skip to Menu

[SOLVED] User Profile Page "Forums" Tab does not show posts count?

9 years 6 months ago - 9 years 6 months ago #263307 by shibumidesign
Hi, just curious if the forums tab of the user profile should show a forum "posts" count similar to the Articles post count and Blogs post count? I clearly have forum posts as shown in the list below the menu - is CB supposed to be able to pull the post count from Kunena?

Jeff

ShibumiDesignStudios.com - Ottawa.ScionOwners.ca
Joomla v3.4.1 - Kunena v3.0.8 - K2 v2.6.9 - CB v2.0.8
Attachments:
Last edit: 9 years 6 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 6 months ago - 9 years 6 months ago #263326 by krileon
The forums tab can have up to 3 nested tabs. So I otped not to add a counter to it as it'd bring into question what it's counting. It's possible to pull the count using a CB Query Field then substituting that into the forum tab title if you wanted though.

Added a feature ticket to improve the counter usage. Ideally it should just be a substitution so more tabs can use it without it being hardcoded in (e.g. can hide it if you wanted via the tab title string).

forge.joomlapolis.com/issues/5258


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.
Last edit: 9 years 6 months ago by krileon.
The following user(s) said Thank You: nant

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

9 years 6 months ago #263355 by shibumidesign
Hey Kyle, forgive me for being such a "noob" but I am learning CB as I go (fairly quickly too - check out my ottawa.scionowners.ca site) and I am somewhat new to CB (I've been using Joomla since almost the beginning) and don't completely know my way around it yet.

How do I set up a CB Query field? I'm guessing it will just be pulling that users posts? For example, the default Forums tab shows the posts for the user, just need to add the count beside the tab name.

Jeff

ShibumiDesignStudios.com - Ottawa.ScionOwners.ca
Joomla v3.4.1 - Kunena v3.0.8 - K2 v2.6.9 - CB v2.0.8

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 #263384 by krileon
Actually you don't need a CB Query Field at all. I forgot I implemented a new fieldtype for forum status. Create a new field of the type "Forum Status" then under Parameters > Display set "Status" to "Posts". Now just substitute that field into your tab title. Example as follows to have the badge display.

Code:
Forums <span class="badge badge-default">[cb_post_count]</span>

You may want to use a language key though as that maybe too long and get cut off by CB. Example as follows.

Title: FORUM_WITH_COUNT

Language String:
Code:
'FORUM_WITH_COUNT' => 'Forums <span class="badge badge-default">[cb_post_count]</span>',


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

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

9 years 6 months ago #263390 by shibumidesign
Cool! Thanks Kyle, I'll give that a try...

Jeff

ShibumiDesignStudios.com - Ottawa.ScionOwners.ca
Joomla v3.4.1 - Kunena v3.0.8 - K2 v2.6.9 - CB v2.0.8

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

9 years 6 months ago #263466 by shibumidesign
Works like a charm! Thanks again Kyle!

Jeff

ShibumiDesignStudios.com - Ottawa.ScionOwners.ca
Joomla v3.4.1 - Kunena v3.0.8 - K2 v2.6.9 - CB v2.0.8
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum