Kunena 6.3.0 released

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

This category contains miscellaneous, uncategorised user contributions, (templates, modules, plugins and hacks) relating to older versions of Kunena that are no longer supported.

The topics in this category are for historical interest only. Owing to the structural changes that occurred in K 2.0, many of the ideas in these topics will not work with later versions and, for that reason, the topics are locked.

Question Image Attachments - How to show just the thumbnail?

More
10 years 11 months ago - 10 years 11 months ago #1 by WoodMutt
Which file would I edit to remove everything except the thumbnail, when attached images are displayed in the post?

I'm using Kunena 2.0.4, the attached image explains it better.

Thanks :)

Like woodworking? So do we! woodmutts.com
Attachments:
Last edit: 10 years 11 months ago by WoodMutt.

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

More
10 years 11 months ago #2 by Matias
It's in one template file, if I recall it right:

components/com_kunena/template/xxx/html/topic/default_message.php

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

More
10 years 11 months ago #3 by WoodMutt
Here's what I find in that file....
Code:
<div class="kmsgattach"> <?php echo JText::_('COM_KUNENA_ATTACHMENTS');?> <ul class="kfile-attach"> <?php foreach($this->attachments as $attachment) : ?> <li> <?php echo $attachment->getThumbnailLink(); ?> <span> <?php echo $attachment->getTextLink(); ?> </span> </li> <?php endforeach; ?> </ul> </div> </div>

I can comment out what I don't what to display, such as JText and getTextLink, but I don't know where getThumbnailLink is pulled from.

Like woodworking? So do we! woodmutts.com

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

More
10 years 11 months ago - 10 years 11 months ago #4 by WoodMutt
Update... got it working :)

I'm using a Gantry template (RocketTheme.com Afterburner2) so I just added ...
Code:
#Kunena ul.kfile-attach li a img, #Kunena ul.kfile-attach-editing li a img { max-height: 180px; max-width: 180px; } #Kunena ul.kfile-attach li { padding-left: 0px; background: none; }

to my custom css

I also commented out JText and getTextLink like so ...
Code:
<div class="kmsgattach"> <?php //echo JText::_('COM_KUNENA_ATTACHMENTS'); ?> <ul class="kfile-attach"> <?php foreach($this->attachments as $attachment) : ?> <li> <?php echo $attachment->getThumbnailLink(); ?> <span> <?php //echo $attachment->getTextLink(); ?> </span> </li> <?php endforeach; ?> </ul> </div> </div>

And the result is this....


Like woodworking? So do we! woodmutts.com
Attachments:
Last edit: 10 years 11 months ago by WoodMutt.

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

Time to create page: 0.511 seconds