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

Please note: The Kunena project team takes NO responsibility for maintaining nor supporting anything in this category.

Solved How to add icon for subscribe in default_row.php

More
10 years 8 months ago - 10 years 8 months ago #166453 by Armor
Hi ;)
I have a question, how I can add an icon subscribed topic in the list of topics ?


in file blue_eagle/html/category/default_row.php
Code:
<?php if ($this->topic->getUserTopic()->favorite) { echo $this->getIcon ( 'kfavoritestar', JText::_('COM_KUNENA_FAVORITE') ); } if ($this->me->exists() && $this->topic->getUserTopic()->posts) { echo $this->getIcon ( 'ktopicmy', JText::_('COM_KUNENA_MYPOSTS') ); } if ($this->topic->unread) {
I tried to add something like this
Code:
$this->topic->getUserTopic()->subscribe
but does not work. ;)

If you have any suggestions, It will be nice :silly: best regards.
Last edit: 10 years 8 months ago by Armor.

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

More
10 years 8 months ago #166647 by Armor
Is no one tried to do it?

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

More
10 years 8 months ago - 10 years 8 months ago #166651 by 810
Code:
$userTopic = $this->topic->getUserTopic(); if ($userTopic->subscribed) { echo $this->getIcon ( 'ktopicmy', JText::_('COM_KUNENA_MYPOSTS') ); }
Last edit: 10 years 8 months ago by 810.
The following user(s) said Thank You: Armor

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

Time to create page: 0.281 seconds