×
Kunena 6.0.5 Released - Security release (21 Nov 2022)

The Kunena team has announce the arrival of Kunena 6.0.5 [K 6.0.5] which is now available for download as a native Joomla extension for J! 4.2.x. This version addresses most of the issues that were discovered in K 6.0 and issues discovered during the development stages of K 6.0. This is a security release.

Question add new kwho-class

More
11 years 1 month ago - 11 years 1 month ago #1 by qontrixz
add new kwho-class was created by qontrixz
Hi there!

my code:
if ($userid == 0) {
			$uclass = 'kwho-guest';
		} else if (CKunenaTools::isAdmin ( $userid )) {
			$uclass = 'kwho-admin';
		} else if (CKunenaTools::isModerator ( $userid, false )) {
			$uclass = 'kwho-globalmoderator';
		} else if (CKunenaTools::isModerator ( $userid )) {
			$uclass = 'kwho-moderator';
		} else if ( ALL USERS OF Joomla Usergroup "V.I.P" ) {
			$uclass = 'kwho-vip';
		} else {
			$uclass = 'kwho-user';
		}
	}


My Problem:
Until now I add all the user manually via
$userid == ID || userid == otherID etc...
this is way to awkward...

Now i want to get ALL User of an Joomla Usergroup (e.G. Usergroup VIP).

Please help me. Thanks ;)
Last edit: 11 years 1 month ago by qontrixz.

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

More
11 years 1 month ago #2 by qontrixz
Replied by qontrixz on topic Re: add new kwho-class
anyone? :(

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

More
11 years 1 month ago #3 by qontrixz
Replied by qontrixz on topic Re: add new kwho-class

qontrixz wrote: anyone? :(

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

More
11 years 1 month ago #4 by qontrixz
Replied by qontrixz on topic Re: add new kwho-class

qontrixz wrote:

qontrixz wrote: anyone? :(


Noone knows how to get all members of an joomla ACL usergroup? really? -.-

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

More
11 years 1 month ago #5 by xillibit
Replied by xillibit on topic Re: add new kwho-class
Hello,

Don't need to bump the topic every hour, this kunena part need to be more user-friendly. There isn't easy ways to fix that, you need to add a check for each usergroup :(

I don't provide support by PM, because this can be useful for someone else.
The following user(s) said Thank You: qontrixz

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

More
11 years 1 month ago #6 by qontrixz
Replied by qontrixz on topic Re: add new kwho-class
finally a answer.. ok

how is it done in the category system? there you can check the usergroups, too

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

More
11 years 1 month ago #7 by qontrixz
Replied by qontrixz on topic Re: add new kwho-class
i'm not that good @PHP... can someone help me?

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

More
11 years 1 month ago #8 by qontrixz
Replied by qontrixz on topic Re: add new kwho-class

qontrixz wrote:

qontrixz wrote: anyone? :(

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

More
11 years 1 month ago #9 by qontrixz
Replied by qontrixz on topic Re: add new kwho-class
File Attachment:

Forever Alone

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

More
11 years 1 month ago #10 by qontrixz
Replied by qontrixz on topic Re: add new kwho-class

qontrixz wrote:


Forever Alone

File Attachment:

Forever Alone

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

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