Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] 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

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 Restrict IP Addresses view on post to Joomla Super Administrators

More
16 years 6 months ago #32036 by Super_Fly
Hello, first of all thank you for this great component.

I wanted to know how the Joomla SuperAdmins are defined on Kunena. I understand that the moderators are defined by: $is_Moderator So I wonder if the superadmins are defined with something else and if not how can I define them to restrict the IP Address view on posts restricted to them.

I have already tried $is_Admin and $is_Administrator but it didn't work.

That's all I guess.

Thank you in advance.

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

More
16 years 6 months ago #32041 by Matias
Admins and super admins are considered to be in the same group.

$is_admin is what you need.. If you're in a function scope, you need to say "global $is_admin;" before using it.

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

More
16 years 6 months ago #32045 by Super_Fly
Hmm, so if I want to change the line if ($is_Moderator) how can I do that ?

if ($is_admin) ?

I have already tried if ($is_Admin) as I said before but it didn't work, should I type that in sensitive case ?

Thanks for the reply.

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

More
16 years 6 months ago #32048 by Matias
Try it. If it does not work, add that global before if.

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

More
16 years 6 months ago #32052 by Super_Fly
Great, worked as a charm.

Thank you :)

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

Time to create page: 0.222 seconds