×
K5.1.1 is released (10 Jun 2018)

The Kunena team is pleased to announce Kunena 5.1.1 [K 5.1.1].
Please read the blog post for information:

× Please note: The Kunena project team takes NO responsibility for maintaining nor supporting anything in this category.

Solved Remove BBCode from Description Post of Latest Module

  • Trony
  • Trony's Avatar Topic Author
  • Offline
  • Junior Member
  • Music and Electronic Devices Designer.
More
2 years 5 months ago - 2 years 5 months ago #1 by Trony
In Description of Latest Module there are BBCode.
Example: [image] text of post.

In default_row.php (I use this display), I added this:
<?php $text = preg_replace("~\\[([^\\]]+?)(=[^\\]]+?)?\\](.+?)\\[/\\1\\]~", '', $this->topic->last_post_message); ?>
<li class="klatest-preview-content"><?php echo KunenaHtmlParser::stripBBCode($text, $this->params->get('lengthcontentcharacters')); ?></li>
<?php endif; ?>

What do you think ?!?

Music and Electronic Devices Designer. Drum and Bass Addict. Creative Mind as Lifestyle. Cat in past Life. Soccer, Ice Hockey and Snowboard Lover.

Last edit: 2 years 5 months ago by Trony.

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

More
2 years 5 months ago #2 by 9themestore
Hi,

What do you think if use CSS to hidden it?
Ex:
li.klatest-preview-content {
  display: none;
}

- Please provide your site url if it has been lived.
- Please share tip if it worked fine with you.
- Don't be shy about using the "Thanks" button below if you found my comment helpful :)

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

  • Trony
  • Trony's Avatar Topic Author
  • Offline
  • Junior Member
  • Music and Electronic Devices Designer.
More
2 years 4 months ago #3 by Trony
I prefere show Description:
* User have an Idea about Topic;
* It's good for Google Bot (SEO).

Naturally it depends about Website.

If check mine, in Home I've Latest Module.
More Words, More "Attractive" to Search Engines.

Music and Electronic Devices Designer. Drum and Bass Addict. Creative Mind as Lifestyle. Cat in past Life. Soccer, Ice Hockey and Snowboard Lover.

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Time to create page: 0.090 seconds