×
Kunena 5.1 Beta 1 Released (05 Oct 2017)

The Kunena team is pleased to announce Kunena 5.1.0 Beta 1 [K 5.1 Beta 1].
Please read the blog post for information: www.kunena.org/blog/188-kunena-5-1-beta-released

× 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.

Solved K1.7.2 userlist - do not show blocked users

More
5 years 6 months ago - 5 years 6 months ago #1 by xdave78
xdave78 created the topic: K1.7.2 userlist - do not show blocked users
Hi there,

I´ve got a little prob with that Kunena userlist. I want it NOT to show the blocked users anymore. I looked up the userlist.php in the func folder. But I´m not that good in php to fix this. Perhaps someone of you is able to help me with that. I´m pretty sure its just a lottle CODE Snipped for one of you out there.

I tried for testing to change this
// Total
		$this->db->setQuery ( "SELECT COUNT(*) FROM #__users WHERE {$where}" );
		$this->total = $this->db->loadResult ();
		KunenaError::checkDatabaseError();

to that
// Total
		$this->db->setQuery ( "SELECT COUNT(*) FROM #__users WHERE WHERE 'block=0'" );
		$this->total = $this->db->loadResult ();
		KunenaError::checkDatabaseError();

But with no Effect on the List itself.
Please help me.

Regards Dave
Last Edit: 5 years 6 months ago by sozzled. Reason: Change topic icon

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

More
5 years 6 months ago #2 by LittleJohn
LittleJohn replied the topic: Userlist Problem K1.7.2
I believe what you are looking for, is the configuration option for this.

Go to backend.
Go to Kunena 'Forum Configuration' - Tab 'Frontend'
Look in the bottom for the setting 'User Count Contains'
Choose 'Only Active Users'

Does this help?
The following user(s) said Thank You: xdave78

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

More
5 years 6 months ago #3 by xdave78
xdave78 replied the topic: Userlist Problem K1.7.2
Oh, thanks a lot. In the german translation the title of this Option is not so clear as in the english Version. Typical case of "Lost in Translation" i guess ;)

OK it works now. Thanks a lot.

Regards

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Time to create page: 0.156 seconds