Read before updating: How to Update Kunena Templates - More detail

Limit in number of Characters shown for Last Post

dexter33's Avatar Topic Author
Premium Member Premium Member
  • Posts: 84
  • Thanks: 5

Limit in number of Characters shown for Last Post

9 years 10 months ago - 9 years 10 months ago
#2976
Hi there

There is one small display element in Kunena NTS KSliver that I would like to change if possible.
On the Index page of the Forum, the Last Post displayed for each sub-forum is limited to only 20 characters.
www.moviestudiozen.com/forum/index

I can't find a setting in the Kunena backend that controls this.
Is the 20 character limit a design feature of Kunena 4, or is this a design feature of NTS KSliver?

Do you know how to change this to no character limit or at least a large allowance of characters like 60 to 100?
I can't find where this is coded.

I have attached a screen shot showing area I mean.

Regards
Derek :)

Don't panic!

Attachments:

Last edit: 9 years 10 months ago by dexter33.

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

Huyen Nguyen's Avatar
Moderator Moderator
  • Posts: 558
  • Thanks: 140

Re: Limit in number of Characters shown for Last Post

9 years 10 months ago
#3012
Hi dexter33,

Sorry about delay. If you want to increase characters for last post title, you must change the number in the core of Kunena component. Follow some below steps to change it.

1. Open the view.html.php file in the "[root]/components/com_kunena/views/category/" path.
2. Open that file with a editor program (sublime or Note pad ++,..) and go to about line 171. You will see the below code.
Code:
function getLastPostLink($category, $content = null, $title = null, $class = null, $length = 20) { ... }

3. Change the 20 number to your number 100 or 120,...
4. Last step, save and reload your site to view change.

Hope this helps
Huyen Nguyen
Nice Theme Store's Support Department.
Support email: 9themestore[at]gmail.com
** Please post your site url here if it has been lived **
The following user(s) said Thank You: dexter33

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

sozzled's Avatar
New Member New Member
  • Posts: 15
  • Thanks: 7

Re: Limit in number of Characters shown for Last Post

9 years 10 months ago
#3019
dexter33 wrote: I can't find a setting in the Kunena backend that controls this.
Is the 20 character limit a design feature of Kunena 4, or is this a design feature of NTS KSliver?
I am a little surprised that the idea I submitted to the Kunena developers (nearly a year-and-a-half ago, for K 3.0) was not adopted as a Kunena template setting. However, because the Kunena developers continually make large-scale changes to the core component with each new release of K 4.0, it's already difficult enough to maintain third-party templates.

Thanks, Huyen Nguyen, for your answer and keep up the good work.
The following user(s) said Thank You: Huyen Nguyen

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

dexter33's Avatar Topic Author
Premium Member Premium Member
  • Posts: 84
  • Thanks: 5

Re: Limit in number of Characters shown for Last Post

9 years 10 months ago
#3021
Thank you very much Huyen!

That worked beautifully and was so simple to do.

Cheers :)
Don't panic!

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

Huyen Nguyen's Avatar
Moderator Moderator
  • Posts: 558
  • Thanks: 140

Re: Limit in number of Characters shown for Last Post

9 years 10 months ago
#3022
Hi dexter33,

The NTS KSliver is working fine on your site, so color is not really to match with your main color of your site. Create a file with named nts-ksliver-custom.css and copy / paste below CSS rules to that file.
Code:
#Kunena #ktop #ktopmenu li a span { font-weight: 500; } /* Change color for category icon */ #Kunena .nts-kblock .kcol-category-icon span.kicon .fa { color: #fff; } /* Change border color for replies block */ #Kunena .nts-kblock .kcol-kcatreplies, #Kunena .nts-kblock .kcol-kcattopics { border: 1px solid #0054CC; } #Kunena select { display: inline-block; min-height: 36px; } #Kunena .kblock div.kheader h2, #Kunena .kblock div.kheader h3 { border: 2px solid #0054CC; } #Kunena div.klatest-subject-by span { display: inline-block; margin-right: 10px; }

Save and upload the nts-ksliver-custom.css file to the css folder of the active joomla template (/templates/newstream2/css/).

Hope this helps
Huyen Nguyen
Nice Theme Store's Support Department.
Support email: 9themestore[at]gmail.com
** Please post your site url here if it has been lived **

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

Time to create page: 0.362 seconds