Kunena 7.0.2 Released

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

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
12 years 10 months ago - 12 years 10 months ago #143646 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
Last edit: 12 years 10 months ago by WoodMutt.

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

More
12 years 10 months ago #143662 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
12 years 10 months ago #143726 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
12 years 10 months ago - 12 years 10 months ago #143731 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
Last edit: 12 years 10 months ago by WoodMutt.

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

Time to create page: 0.344 seconds