Skip to Content Skip to Menu

[CB ACTIVITY] how to change chars limit of activity message to display

  • robster80
  • robster80
  • OFFLINE
  • Posts: 46
  • Thanks: 5
  • Karma: 0
5 years 2 months ago #313978 by robster80
Hello,
I can't find how to change chars limit of messages to display (not limit for entire message) before 'see more' at activity stream :(
best regards,
r.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48547
  • Thanks: 8290
  • Karma: 1445
5 years 2 months ago #313980 by krileon
There's no parameter to change that. It will trigger a Show More usage if the post is consumes more than 800px in height to prevent large strings of text or images from pushing the page down. Most posts should not trigger the Show More behavior.


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.

  • robster80
  • robster80
  • OFFLINE
  • Posts: 46
  • Thanks: 5
  • Karma: 0
5 years 2 months ago - 5 years 2 months ago #314002 by robster80
Can you tell me how to get around this? Where I can change this in code? I have some users which like to make loooong posts and comments. I would like to change the height to around 300px.
But what about pictures then...? It would be simpler to set this by number of chars.
Last edit: 5 years 2 months ago by robster80.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48547
  • Thanks: 8290
  • Karma: 1445
5 years 2 months ago #314003 by krileon

Can you tell me how to get around this? Where I can change this in code? I have some users which like to make loooong posts and comments. I would like to change the height to around 300px.

There is no option to get around it. The limit check is 400px with a tolerance up to 800px depending on the viewing space available. You can however override it entirely with CSS. Example as follows.

Code:
.cb_template .cbActivity .cbMoreLess.cbMoreLessClosed .cbMoreLessContent { max-height: 300px !important; }

You can add your custom CSS to the page using the built in CSS Overrides feature shown below.

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

It would be simpler to set this by number of chars.

That's already possible by limiting how many characters they can post in a message. It's default set to 400 unless you changed it. Specifically see the "Message Limit" parameter under CB Activity > Parameters > Activity > Create.


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