Kunena 7.1.1 & Kunena 6.4.17 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.1.1 [K 7.1.1] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x./6.2.x This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 / K7.0 and issues discovered during the last development stages of K 7.1
Just a reminder: K6.4.17 receives only securities fixes until end of 2026, so it's advised for users to upgrade to K7.1.

This category is for the module developed, endorsed, maintained and supported by the Kunena project team. The topics in this category only relate to the module developed for K 1.6 and later versions.

Question [Solved] Adding ... after Post Text Limit

More
14 years 11 months ago - 14 years 11 months ago #113955 by janaf
I have Post Text and a Post Text Limit set with Kunena Latest and the text truncates right at that number of chars.

Is there something like "....." that I can enable? Or can someone guide me on how to add this at the end of the text string?

Thanks
Last edit: 14 years 11 months ago by janaf.

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

More
14 years 11 months ago - 14 years 11 months ago #114090 by janaf
Found the code:
Code:
<?php if ($this->params->get ( 'sh_firstcontentcharacter' )) : ?> <li class="klatest-preview-content"><?php echo JString::substr(KunenaParser::stripBBCode($item->message), '0', $this->params->get ( 'lengthcontentcharacters' )); ?></li> <?php endif; ?>

As my knowledge of php is minimal, I'd need some help with the syntax for this:
Code:
<?php if ($this->params->get ( 'sh_firstcontentcharacter' )) : ?> <li class="klatest-preview-content"><?php echo JString::substr(KunenaParser::stripBBCode($item->message), '0', $this->params->get ( 'lengthcontentcharacters' )); ?> // Add as pseudocode "IF length of BBstripped message > lengthcontentcharacters then output '...' " </li> <?php endif; ?>

Could someone help with this?
Last edit: 14 years 11 months ago by janaf.

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

More
14 years 11 months ago #114100 by janaf
Finally figured it out B)
Code:
<?php if ($this->params->get ( 'sh_firstcontentcharacter' )) : ?> <li class="klatest-preview-content"><?php echo JString::substr(KunenaParser::stripBBCode($item->message), '0', $this->params->get ( 'lengthcontentcharacters' )); ?> <?php if (strlen(KunenaParser::stripBBCode($item->message)) > $this->params->get ( 'lengthcontentcharacters' )) { echo "..."; } ?> </li> <?php endif; ?>

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

More
14 years 10 months ago #116193 by djvexo
Hello,
i tried to make a code for add "..." after the Subject Text Limit but it doesn't work.
Someone can say me how i can make this.

Regards

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

Time to create page: 0.111 seconds