Kunena 7.0.5 & Kunena 6.4.11 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.5 [K 7.0.5] 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 eleventh 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 Hide User List From Non-Registered?

More
16 years 10 months ago #23064 by Mr Haddock
Hi,

Is it possible to do this?

Thanks

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

More
16 years 10 months ago #23070 by sozzled
No, it's not possible to hide the user list display from non-registered users. You can choose not to display certain details, if you wish, but those settings apply to all users, those who are logged-in and those who are just visiting. This would be a useful feature request for a future version of Kunena.

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

More
16 years 10 months ago #23109 by Matias
There's an easy way to hack this. Links to all our pages are currently created in one place (lib/kunena.links.php). Adding a test if user is anonymous to one function is enough to accomplish this (removes the link). Another way to do this is to keep the link and add check (with unauthorized message) to user list page.

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

More
16 years 10 months ago #23675 by europower
Hi everyone,
I had the same problem and fixed it by adding following code to components\com_kunena\template\default\plugin\userlist\userlist.php around line 29
Code:
if ($kunena_my->id != "" && $kunena_my->id != 0) { list_users(); } else { echo '<b>'. _COM_A_REGISTERED_ONLY.'</b><br />'; echo _FORUM_UNAUTHORIZIED2 ; }

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

More
16 years 10 months ago #24189 by Kurenai
Thanks a lot Europower, I've just tried it and it works well!

To be precise, it's on line 30.
What has to be replaced is:
Code:
list_users();

by Europower's code:
Code:
if ($kunena_my->id != "" && $kunena_my->id != 0) { list_users(); } else {  echo '<b>'. _COM_A_REGISTERED_ONLY.'</b><br />';    echo _FORUM_UNAUTHORIZIED2 ; }

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

More
15 years 5 months ago #77664 by bornakke
Thanks for the tip.
For people dealing with the same problem in 1.6 the file have change slightly. I got it to work by adding the following code
Code:
$user =& JFactory::getUser(); if ($user->guest) { $this->allow = false; } else { $this->allow = true; }

replacing the line
Code:
$this->allow = true;

in components\com_kunena\funcs\userlist.php around line 95

It is not pretty, but it do work :)

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

Time to create page: 0.230 seconds