Skip to Content Skip to Menu

🍾 Happy New Year! Great Savings on Professional and Developer Memberships! Get 25% off now with code NEWYEAR-2026!

Add label to article comments

  • zumbador
  • zumbador
  • OFFLINE
  • Posts: 9
  • Thanks: 0
  • Karma: 0
  • Add-ons
4 weeks 1 day ago #342584 by zumbador
Add label to article comments was created by zumbador
Is there a way to add a label/heading to the article comments box? It's easy to miss at the bottom of the article.
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49986
  • Thanks: 8543
  • Karma: 1466
4 weeks 11 hours ago #342592 by krileon
Replied by krileon on topic Add label to article comments
You'd have to make a custom template for CB Activity, edit the template file, and then yes it'd display whatever header/footer/etc.. you'd like. To do this navigate to the following directory.

/components/com_comprofiler/plugin/user/plug_cbactivity/templates

Create a new folder. For the purpose of this example we'll just call it "custom", but you can name it whatever you like (letters and numbers only). So now we should have the following folders in this directory.

/components/com_comprofiler/plugin/user/plug_cbactivity/templates/default
/components/com_comprofiler/plugin/user/plug_cbactivity/templates/custom

Navigate into the following folder.

/components/com_comprofiler/plugin/user/plug_cbactivity/templates/default

Then copy the below folder

/components/com_comprofiler/plugin/user/plug_cbactivity/templates/default/article

To your new folder below.

/components/com_comprofiler/plugin/user/plug_cbactivity/templates/custom

Now within the following folder.

/components/com_comprofiler/plugin/user/plug_cbactivity/templates/custom/article

You can freely edit "display.php" however you like. It's responsible for that display you see in your article. In a future release these will just be Joomla template layout overrides though so will get easier later.


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.

  • zumbador
  • zumbador
  • OFFLINE
  • Posts: 9
  • Thanks: 0
  • Karma: 0
  • Add-ons
4 weeks 11 hours ago #342594 by zumbador
Replied by zumbador on topic Add label to article comments
Ok, thanks. I will give it a try. My workaround was to create the desired header in a custom HTML module and drop the shortcode [cbactivity: comments id="COMMENT_ID" /] just below it. Then I can easily insert the module into the article. Seems the shortcodes will not render in the custom HTML module??

Bright

 

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49986
  • Thanks: 8543
  • Karma: 1466
4 weeks 10 hours ago #342596 by krileon
Replied by krileon on topic Add label to article comments
That won't work since the article comments stream needs information from the article to render properly. If you had CB Auto Actions you'd be able to act on the same event CB Activity is to insert its comments stream to insert custom HTML in the same location, but I don't think Joomla has a module position for inserting inside the article.

Is inserting text there exactly necessary or do you just need some further visibility improvements. Like making the comments appear larger? Article comment UX is pretty much the same across all site (at the bottom) so I don't think your users should have a hard time finding this. Making it bigger however should be relatively trivial using some CSS. For example the below will increase the scale of the comments by 25%.
Code:
.cbActivityArticleComments { zoom: 1.25; }

Maybe this would work better for you instead? You can apply custom CSS to CB using the below or using Joomla's user.css template file.

www.joomlapolis.com/blog/kyle/18711-template-css-overrides-made-easy


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.

Moderators: beatnantkrileon
Powered by Kunena Forum