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

This category contains miscellaneous, uncategorised user contributions, (templates, modules, plugins and hacks) relating to older versions of Kunena that are no longer supported.

This category may also contain a few topics relating to K 1.6 that may have been moved here possibly by mistake.

The topics in this category are for historical interest only. Owing to the structural differences between K 1.6 and K 1.7, these ideas in these topics will not work with later versions and, for that reason, the topics are locked.

Question How to hide the Super Admin from the User List

More
17 years 1 month ago #11568 by simonjoomla
Dear all,

I would like to consult you on the User List.

I realised that I as the Super Administrator has been listed under User List in kunena forum. What worry me is that under the Summary of my Personal Info, it shows not only my Username but also my User Type as "Super Administrator".

In other words, I have already exposed my identity, and everyone will know that I am using this username to log in to my joomla backend. The only things some one will need to find out is my password. Thus, it increases the risk of being hacked.

Currently I have switched the whole Forum stat off as I couldn't find a setting that can just turn off the User List alone. Both are linked. In fact, the User List is nice, I wish to use it too.

So, is there any suggestion or solution that I can just exclude the person who is Super Administrator or Administrator in the list? Thanks in advance.

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

More
17 years 1 month ago - 17 years 1 month ago #11575 by skillless
What about something like this? (pseudo code)
Code:
<tr> <?php if ($juserinfo->usertype != admin or sa) echo "" else echo <td><b><?php echo _KUNENA_MYPROFILE_USERTYPE; ?></b> </td> <td><?php echo $juserinfo->usertype; ?></td> ?> </tr>


it's in
/components/com_kunena/template/default/plugin/myprofile/myprofile_summary.php
Last edit: 17 years 1 month ago by skillless.

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

More
17 years 1 month ago - 17 years 1 month ago #11579 by simonjoomla
Thanks. I have just tested several times. But it didn't work. Nothing happened. The Super Admin still listed unchanged. And when I clicked at "My Profile" tab, it showed error message:

Parse error: syntax error, unexpected T_ELSE, expecting ',' or ';' in /home/xxxxx/public_html/components/com_kunena/template/default/plugin/myprofile/myprofile_summary.php on line 72


Any more ideas?
Last edit: 17 years 1 month ago by simonjoomla. Reason: provide more info

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

More
17 years 1 month ago #11590 by skillless
Of course it's still listed, when YOU are logged in as admin or superadmin. It is just hidden, when another usertype watches your profile. So, just admins can see usertypes, other users cannot.
Do not take the posted code 1:1 in your php-file. I just wanted to show you how to disable the usertype-view for other users than the admin.

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

More
17 years 1 month ago #11593 by Lintzy

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

More
17 years 1 month ago #11675 by simonjoomla
Thanks skillless. In fact I did test it by logging in as an ordinary user. But even if so, the Super Admin still remained seen in the list by user.

However, Lintzy has given the solution that is exactly I have been looking for. I wish the coming new release will provide an option to turn it off at the backend. Otherwise I will have to repeat the step every time when I upgrade from one version to another.

As for now, I have peace of mind to use the forum stat. Thanks both !! :laugh:Cheers!

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

Time to create page: 0.258 seconds