Kunena 6.4.7 Released

The Kunena team has announce the arrival of Kunena 6.4.7[K 6.4.7] in stable which is now available for download as a native Joomla extension for J! 5.0.x/5.1.x/5.2.x/5.3.x/5.4.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 6.4
Important note: Go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated. This is particularly necessary for major version jumps so that the table changes are adapted.

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 3 months ago #1 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 3 months ago #2 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 3 months ago #3 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 3 months ago #4 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 3 months ago #5 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
14 years 10 months ago #6 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.469 seconds