Kunena 7.0.9 & Kunena 6.4.14 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.9 [K 7.0.9] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.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 Who's Online in Category

More
13 years 10 months ago #136512 by hakan28
I had a question about the who's online by Kunena
I have only one forum category and in this category I want to show "who is online" from kunena.
as a template I use the free template JF Corporate...

www.futbolturka.eu/futbolturka/forum

i have add this code in the default.php, but it works not....
Code:
<div class="kblock kwhoisonline"> <div class="kheader"> <span class="ktoggler"><a class="ktoggler close" title="<?php echo JText::_('COM_KUNENA_TOGGLER_COLLAPSE') ?>" rel="kwhoisonline"></a></span> <h2><span><span class="ktitle km"><?php echo JText::_('COM_KUNENA_VIEW_COMMON_WHO_TITLE') ?></span></span></h2> </div> <div class="jf-kunena-header-shadow"></div> <div class="kcontainer" id="kwhoisonline"> <div class="kbody"> <table class = "kblocktable"> <tr class = "krow2"> <td class = "kcol-first"> <div class="kwhoicon"></div> </td> <td class = "kcol-mid km"> <div class="kwhoonline kwho-total ks"><?php echo JText::sprintf('COM_KUNENA_VIEW_COMMON_WHO_TOTAL', $this->membersOnline) ?></div> <div> <?php foreach ($this->onlineList as $user) : ?> <?php echo $user->getLink() ?> <?php endforeach ?> <?php if (!empty($this->hiddenList)) : ?> <br /> <span class="khidden-ktitle ks"><?php echo JText::_('COM_KUNENA_HIDDEN_USERS'); ?>: </span> <br /> <?php foreach ($this->hiddenList as $user) : ?> <?php echo $user->getLink() ?> <?php endforeach ?> <?php endif; ?> </div> <div class="kwholegend ks"> <span><?php echo JText::_('COM_KUNENA_LEGEND'); ?> :: </span>&nbsp; <span class = "kwho-admin" title = "<?php echo JText::_('COM_KUNENA_COLOR_ADMINISTRATOR'); ?>"> <?php echo JText::_('COM_KUNENA_COLOR_ADMINISTRATOR'); ?></span>,&nbsp; <span class = "kwho-globalmoderator" title = "<?php echo JText::_('COM_KUNENA_COLOR_GLOBAL_MODERATOR'); ?>"> <?php echo JText::_('COM_KUNENA_COLOR_GLOBAL_MODERATOR'); ?></span>,&nbsp; <span class = "kwho-moderator" title = "<?php echo JText::_('COM_KUNENA_COLOR_MODERATOR'); ?>"> <?php echo JText::_('COM_KUNENA_COLOR_MODERATOR'); ?></span>,&nbsp; <span class = "kwho-banned" title = "<?php echo JText::_('COM_KUNENA_COLOR_BANNED'); ?>"> <?php echo JText::_('COM_KUNENA_COLOR_BANNED'); ?></span>,&nbsp; <span class = "kwho-user" title = "<?php echo JText::_('COM_KUNENA_COLOR_USER'); ?>"> <?php echo JText::_('COM_KUNENA_COLOR_USER'); ?></span>,&nbsp; <span class = "kwho-guest" title = "<?php echo JText::_('COM_KUNENA_COLOR_GUEST'); ?>"> <?php echo JText::_('COM_KUNENA_COLOR_GUEST'); ?></span> </div> </td> </tr> </table> </div> </div> </div>

get the following error message
Code:
Warning: Invalid argument supplied for foreach() in /www/htdocs/w00fb541/components/com_kunena/template/jf_corporate/html/category/default.php on line 136

Here is the Forum www.futbolturka.eu/futbolturka/forum

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

More
13 years 10 months ago #136523 by sozzled
Replied by sozzled on topic Who's Online in Category
I'm sorry but what you've written as PHP is not PHP. If you want to learn how to write PHP there are many good online references as well as a number of good books. I don't know how the PHP statements you've written might work, but the syntax is all wrong.

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

More
13 years 10 months ago #136529 by hakan28
Replied by hakan28 on topic Who's Online in Category
i have copied it from the php file from jf corporate...

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

More
13 years 10 months ago - 13 years 10 months ago #136542 by hakan28
Replied by hakan28 on topic Who's Online in Category
can you help me somehow, as it is right?
or how to do it, it works ...
Last edit: 13 years 10 months ago by hakan28.

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

Time to create page: 0.226 seconds