×
Kunena 5.1.15 Released (27 Oct 2019)

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

× This category is for the module developed, endorsed, maintained and supported by the Kunena project team. The topics in this category only relate to the plugin developed for K 3.0 and later versions.

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 Display Category Icons in Kunena Latest module

More
5 years 11 months ago #1 by jthrongard
I've dug through the code of this module but I can't for the life of me figure out a way to display the topic's category icon instead of the topic's icon. Anyone have any suggestions?

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

More
5 years 11 months ago - 5 years 11 months ago #2 by Jiminimonka
Hi jthrongard,

What exactly are you trying to achieve?

Have you looked at the wiki page Category Icons ?

Please read the FAQ.
Only one question per topic.
Search before you ask a question.
Last edit: 5 years 11 months ago by Jiminimonka.

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

More
5 years 11 months ago #3 by Matias
Interesting question -- I think nobody has never thought about that.

It should be pretty easy to make custom template that displays category icons on topics, but it does need some PHP skills to do that.

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

More
5 years 11 months ago - 5 years 11 months ago #4 by jthrongard
Yeah like I say I've opened the file modules/mod_kunenalatest/tmpl/posts_row.php and found the following line:
<?php elseif ( $this->params->get ( 'sh_topiciconoravatar' ) == 0 ) : ?>
<li class="klatest-topicicon"><?php echo $this->getTopicLink ( $this->topic, 'unread', '[K=TOPIC_ICON ]' ) ?></li>
<?php endif; ?>

Which seems easy enough to switch over to something like:
<?php elseif ( $this->params->get ( 'sh_topiciconoravatar' ) == 0 ) : ?>
<li class="klatest-topicicon"><?php echo $this->getTopicLink ( $this->topic, 'unread', '[K=CATEGORY_ICON ]' ) ?></li>
<?php endif; ?>

But that does nothing. Any suggestions?


Edit:

Well that's weird, in my above to snippets K=TOPIC_ICON is missing from the two quotes in the first and K=CATEGORY_ICON from the second, yet if I go to edit the post they show in the preview as they should....another bug? Or apparently brackets aren't allowed?
Last edit: 5 years 11 months ago by Matias.

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

More
5 years 11 months ago #5 by Matias
I don't think it works as the second variable isn't rendered in that code. Actually now that you did this, I'm not sure if category icon code is available in that view.

Nonetheless, I like the idea and added it into my growing idea list.

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

More
5 years 11 months ago #6 by jthrongard
So would it not be possible to make the category icon available in that view (sorry but rudimentary PHP skills)?

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.080 seconds