×
Kunena 5.2 RC3 Released (Yesterday)

The Kunena team is thrilled to announce the third public release candidate of Kunena 5.2, a native Joomla extension for Joomla 3.9. This is a development release and should be only be used for testing; this version is not recommended for live websites at this stage.

The purpose of this release is to encourage testing by downloading, installing and identifying any problems or shortcomings that people may discover. K 5.2.0 RC3 is stable and we are aware that people will discover defects. We encourage you to use the forum to report defects, as soon as they are discovered, so that the development team can work through the problems before the release of K 5.1 as a stable product. Reporting defects does not mean that the problems can or will be fixed. The Kunena team is looking forward to hearing your feedback on how well we have achieved our design goals.

Question Hiding IP

More
10 years 10 months ago #1 by OurIslamic
Hiding IP was created by OurIslamic
Just wondering, is it possible to hide the IP for moderators on the site? Like, make them visible for only super admins?

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

More
10 years 10 months ago - 10 years 10 months ago #2 by sozzled
Replied by sozzled on topic Re:Hiding IP
Yes, it's possible to do this but there is no configuration setting for it. You will have to hack the code and you will have a non-standard, unsupported website. You will probably need to modify the file ../components/com_kunena/template/default_ex/view.php at about line 1038, change
//Show admins the IP address of the user:
                                if ($is_Moderator)
                                {
                                    $msg_ip = $fmessage->ip;
                                }
to
//Show admins the IP address of the user:
                                if ($uIsAdm)
                                {
                                    $msg_ip = $fmessage->ip;
                                }
... but heaven-only-knows why you want to change it. BTW, I haven't tested this. I hope it does what you want.

To the moderators: please move this discussion to Hacks, Tricks and Tips
Last edit: 10 years 10 months ago by sozzled.

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

More
10 years 10 months ago #3 by OurIslamic
Replied by OurIslamic on topic Re:Hiding IP
Thanks, again :). I'll test it out on my test forum and tell you how it goes.

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

More
10 years 9 months ago #4 by mildsilber
Replied by mildsilber on topic Re:Hiding IP
sozzled wrote:

Yes, it's possible to do this but there is no configuration setting for it. You will have to hack the code and you will have a non-standard, unsupported website. You will probably need to modify the file ../components/com_kunena/template/default_ex/view.php at about line 1038, change

//Show admins the IP address of the user:
                                if ($is_Moderator)
                                {
                                    $msg_ip = $fmessage->ip;
                                }
to
//Show admins the IP address of the user:
                                if ($uIsAdm)
                                {
                                    $msg_ip = $fmessage->ip;
                                }
... but heaven-only-knows why you want to change it. BTW, I haven't tested this. I hope it does what you want.

To the moderators: please move this discussion to Hacks, Tricks and Tips


Hello

thats not work on Kunena 1.5.9 :S
please fix

thanks !

K 2.0.1

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

More
10 years 9 months ago #5 by xillibit
Replied by xillibit on topic Re:Hiding IP
Hello,

Why this doesn't work ?

There are no changes on the file /components/com_kunena/template/default_ex/view.php between K1.5.8 and K1.5.9.

I don't provide support by PM, because this can be useful for someone else.

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

More
10 years 9 months ago #6 by mildsilber
Replied by mildsilber on topic Re:Hiding IP
hello and thanks for the answer!

I can see my own iP as super-administrator but no other Ip's


Then I'v try this
if ($is_administrator)

but this also doesn't work :side:

K 2.0.1

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

More
10 years 9 months ago #7 by sozzled
Replied by sozzled on topic Re:Hiding IP
Who said anything about using "if ($is_administrator)" ? :S

I gave no guarantees that my idea would work - I said that I had not tested the code - I was only trying to help someone write their own solution. This is the hacks area, where nothing is guaranteed. :lol: As I also said, I can't see any benefit in changing the existing, quite satisfactory system. That's just my opinion, of course. :)

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

More
10 years 9 months ago #8 by mildsilber
Replied by mildsilber on topic Re:Hiding IP
hello

$is_administrator was my experiment B) :laugh:

//Show admins the IP address of the user:
if ($uIsAdm)
{
$msg_ip = $fmessage->ip;
}

is not working on Kun 1.5.9

I'm a novice in PHP :S :silly:

K 2.0.1

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

More
10 years 9 months ago #9 by sozzled
Replied by sozzled on topic Re:Hiding IP
I didn't say that my idea would work and OurIslamic, who asked the question, didn't say that he'd successfully solved the problem either. I haven't the need, nor the time, to investigate this thoroughly. Sorry. I'm sure someone will come along later with the correct answer.

BTW, hacking PHP code is not something novices should play with. You can get yourself into more trouble than Flash Gordon! ;)

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

More
10 years 9 months ago #10 by xillibit
Replied by xillibit on topic Re:Hiding IP
mildsilber wrote:

hello

$is_administrator was my experiment B) :laugh:

//Show admins the IP address of the user:
if ($uIsAdm)
{
$msg_ip = $fmessage->ip;
}

is not working on Kun 1.5.9

I'm a novice in PHP :S :silly:

Or, you can just look was i have made in the past for this : www.kunena.com/forum/144-hacks-tricks-an.../34015-hide-ip#34024

I don't provide support by PM, because this can be useful for someone else.

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.125 seconds