Kunena 6.2.6 released

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

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
8 years 9 months ago - 8 years 9 months ago #1 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.
Attachments:
Last edit: 8 years 9 months ago by Armor.

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

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

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

More
8 years 9 months ago - 8 years 9 months ago #3 by 810
Code:
$userTopic = $this->topic->getUserTopic(); if ($userTopic->subscribed) { echo $this->getIcon ( 'ktopicmy', JText::_('COM_KUNENA_MYPOSTS') ); }
Last edit: 8 years 9 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.404 seconds