Kunena Released

The Kunena team has announce the arrival of Kunena [K] which is now available for download as a native Joomla extension for J! 4.2.x. This version addresses most of the issues that were discovered in K 6.0 and issues discovered during the development stages of K 6.0.

Topics must relate to a currently supported version of Kunena. If you are unsure what is the current supported version of Kunena, please go to the download page.

If you are having problems then, for your own benefit, it would save us all a lot of time if you would kindly post your configuration report when you ask for help from this forum. If you do not post your configuration report we will not ask you for it but you will probably not get your problem solved, either.

Question kunena PDF question

1 year 2 weeks ago - 1 year 2 weeks ago #1 by hung
kunena PDF question was created by hung
Hi, my kunena version is 5.2.6 There are two questions
  • If I upload a PDF file, and insert it into post, it will show like this

This browser does not support PDFs. Please download the PDF to view it: Download PDF

but, I don't want it , I want the PDF file show like this 

File Attachment:

File Name: test.txt
File Size:0 KB
How could I set it ?
  • If I insert my files, then in the view, the file lists are disappeared! Even, I remove the inserted file in the post, either. If I want the file appear again, I need remove the file, and upload it again
Last edit: 1 year 2 weeks ago by hung.

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

1 year 1 week ago #2 by realstrannik
Replied by realstrannik on topic kunena PDF question
In the file /components/com_kunena/template/your_template/layouts/attachment/item/general.php I changed the line:
<a href="/<?php echo $attachment->getUrl(); ?>" title="<?php echo $attachment->getFilename(); ?>
on the
<a href="/<?php echo $attachment->getUrl(false, false, true); ?>" title="<?php echo $attachment->getFilename(); ?>
In the file /components/com_kunena/template/system/layouts/bbcode/attachment/default.php I changed the line:
echo $this->render('pdf');
on the
echo $this->render('file');

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

Time to create page: 0.258 seconds