Kunena 7.0.6 & Kunena 6.4.12 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.6 [K 7.0.6] in stable which is now available for download as a native Joomla extension for J! 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.

The Kunena team is also pleased to announce the twelfth version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.0.

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Two problems with online-list

More
16 years 10 months ago - 16 years 10 months ago #25688 by SoS
Hello.
I have two problems since the new version 1.5.4
Users, which have set there options to be hidden are shown to everyone as hidden users.
Normaly it should only be seen by moderators.
[IMG


And if I click on "online" on the screen, I come to the list, which shows, where my users are online.
There are the IPs shown also to everybody. That should also just be seen by moderators.
[IMG


so, it seems like there is somewhere a little bug inside, which makes evereybody to a moderator in the "online-section".

Would be nice, if someone could help me,
maybe in german? :D

sry for my bad english.

Edit:
found the lines in the files. the important thing is
if ( $kunena_my->gid > 1 )
which is, and i don't know why, always true..

where is gid set?
i tried to change it to if ( $kunena_my->moderator > 0 ) but it doesn't work..

maybe someone of you could help me,
thanks

Edit2 and solution!:
\components\com_kunena\template\default\plugin\who\who.php
#104:
if ($kunena_my->gid > 1 && $is_Moderator)

\components\com_kunena\template\default\plugin\who\whoisonline.php
#99:
<?php if ( $kunena_my->gid > 1 && $is_Moderator){

#116:
<?php if ( $user->showOnline < 1 && $kunena_my->gid > 1 && $is_Moderator){ ?>

Would be nice if you could fix it? ;)
Greets, SoS
Last edit: 16 years 10 months ago by SoS.

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

More
16 years 10 months ago #25778 by xillibit
Hello,

Thanks for reporting this, I will report this to the DEVs and it will check this when they have time.

I don't provide support by PM, because this can be useful for someone else.

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

More
16 years 10 months ago #26444 by pweb
Temporary solution:

edit file:
components/com_kunena/template/default/plugin/who/whoisonline.php

change line 99 to:
Code:
$kunena_db->setQuery("SELECT moderator FROM #__fb_users WHERE userid=".$kunena_my->id); $kunena_isModerator = $kunena_db->loadResult(); if ( $kunena_isModerator > 0 ){
remove line 107

add to line 125:
Code:
<?php } ?>


edit file:
components/com_kunena/template/default/plugin/who/who.php

add to line 72:
Code:
$kunena_db->setQuery("SELECT moderator FROM #__fb_users WHERE userid=".$kunena_my->id); $kunena_isModerator = $kunena_db->loadResult();
change line 104 to:
Code:
if ($kunena_isModerator > 0)

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

More
16 years 9 months ago #26880 by Ratman
SoS wrote:

Edit2 and solution!:
\components\com_kunena\template\default\plugin\who\who.php
#104:
if ($kunena_my->gid > 1 && $is_Moderator)

\components\com_kunena\template\default\plugin\who\whoisonline.php
#99:
<?php if ( $kunena_my->gid > 1 && $is_Moderator){

#116:
<?php if ( $user->showOnline < 1 && $kunena_my->gid > 1 && $is_Moderator){ ?>

Hi SoS!

Thanks a lot for this quick solution, it works very nice!!
:woohoo:

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

Time to create page: 0.230 seconds