Kunena 6.2.5 & module Kunena Latest 6.0.7 released

The Kunena team has announce the arrival of Kunena 6.2.5 [K 6.2.5] which is now available for download as a native Joomla extension for J! 4.3.x/4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.2

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

More
2 years 2 weeks ago - 2 years 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: 2 years 2 weeks ago by hung.

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

More
2 years 2 weeks 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:
Code:
<a href="/<?php echo $attachment->getUrl(); ?>" title="<?php echo $attachment->getFilename(); ?>
on the
Code:
<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:
Code:
echo $this->render('pdf');
on the
Code:
echo $this->render('file');

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

Time to create page: 0.484 seconds