- Posts: 3
- Thank you received: 0
Kunena 7.0.8 Released
The Kunena team has announce the arrival of Kunena 7.0.8 [K 7.0.8] 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
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?
- Mr Haddock
-
Topic Author
- Offline
- New Member
-
Less
More
17 years 1 month ago #23064
by Mr Haddock
Hide User List From Non-Registered? was created by Mr Haddock
Hi,
Is it possible to do this?
Thanks
Is it possible to do this?
Thanks
Please Log in or Create an account to join the conversation.
17 years 1 month ago #23070
by sozzled
Blue Eagle vs. Crypsis reference guide
Read my blog and
Replied by sozzled on topic Re:Hide User List From Non-Registered?
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.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
17 years 1 month ago #23109
by Matias
Replied by Matias on topic Re:Hide User List From Non-Registered?
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.
17 years 4 weeks ago #23675
by europower
Replied by europower on topic Re:Hide User List From Non-Registered?
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
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.
17 years 3 weeks ago #24189
by Kurenai
Replied by Kurenai on topic Re:Hide User List From Non-Registered?
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:
by Europower's code:
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.
15 years 7 months ago #77664
by bornakke
Replied by bornakke on topic Re:Hide User List From Non-Registered?
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
replacing the line
in components\com_kunena\funcs\userlist.php around line 95
It is not pretty, but it do work
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.274 seconds