×
Kunena 5.2.9 released and Kunena 6.0.0 (08 Jun 2022)

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

The Kunena team has announce the arrival of Kunena 6.0.0 [K 6.0.0] which is now available for download as a native Joomla extension for J! 4.1.x. Only the module kunena latest and the discuss plugin which are still in beta are working in Joomla! 4.1 with Kunena 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

More
3 months 3 weeks ago - 3 months 3 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
Attachments:
Last edit: 3 months 3 weeks ago by hung.

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

More
3 months 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:
<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.

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