×
Kunena 5.1 Released (13 May 2018)

The Kunena team is pleased to announce Kunena 5.1.0 [K 5.1.0].
Please read the blog post for information: www.kunena.org/blog/192-kunena-5-1-released

× Topics that are moved into this category are considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Important BBcode [article] - read more link

More
4 years 11 months ago - 4 years 11 months ago #1 by Hunter-nl
When using BBcode
[article=full]123[/article]
then the article is shown, but also a read more link. Even if article does not have a read more section. The article->fulltext field is empty.
I have discovered that the file libraries/kunena/bbcode/bbcode.php contains a bug.
At line 1159, the following section
case 'intro':
  if ( !empty($article->introtext) ) {
    $article->text = $article->introtext;
    $link = '<a href="'.$url.'"class="readon">'.JText::sprintf('COM_KUNENA_LIB_BBCODE_ARTICLE_MORE').'</a>';
    break;
  }
  // continue to link if introtext is empty
must be changed into:
case 'intro':
  if ( !empty($article->introtext) ) {
    $article->text = $article->introtext;
    if ( !empty($article->fulltext) ) { // add read more link
      $link = '<a href="'.$url.'"class="readon">'.JText::sprintf('COM_KUNENA_LIB_BBCODE_ARTICLE_MORE').'</a>';
    }
    else {
      $link = '';
    }
    break;
  }
  // continue to link if introtext is empty

This message contains confidential information

Database collation check: The collation of your table fields are correct

Joomla! SEF: Enabled | Joomla! SEF rewrite: Enabled | FTP layer: Enabled |

This message contains confidential information
htaccess: Exists | PHP environment: Max execution time: 30 seconds | Max execution memory: 128M | Max file upload: 2M

Kunena menu details:

Warning: Spoiler! [ Click to expand ]

Joomla default template details : template | author: production | version: 2.5.1 | creationdate: Unknown

Kunena default template details : Blue Eagle 2.0 | author: Kunena Team | version: 3.0.0 | creationdate: 2013-05-15

Kunena version detailed: Kunena 3.0.0 | 2013-05-15 [ Wanga ]
| Kunena detailed configuration:

Warning: Spoiler! [ Click to expand ]
| Kunena integration settings:
Warning: Spoiler! [ Click to expand ]
| Joomla! detailed language files installed:
Warning: Spoiler! [ Click to expand ]

Third-party components: None

Third-party SEF components: None

Plugins: Search - Kunena Search 3.0.0 | Content - Kunena Discuss 3.0.0

Modules: Kunena Latest 3.0.0 | Kunena Stats 3.0.0 | Kunena Login 3.0.0 | Kunena Search 3.0.0

Last edit: 4 years 11 months ago by Hunter-nl.

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

More
2 years 1 week ago #2 by 810
thnx, just found this topic, will change it on next version.

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.123 seconds