Kunena 6.2.6 released

The Kunena team has announce the arrival of Kunena 6.2.6 [K 6.2.6] which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.2

Question Hiding IP

More
14 years 2 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
14 years 2 months ago - 14 years 2 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
Code:
//Show admins the IP address of the user: if ($is_Moderator) { $msg_ip = $fmessage->ip; }
to
Code:
//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: 14 years 2 months ago by sozzled.

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

More
14 years 2 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
14 years 2 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

Code:
//Show admins the IP address of the user: if ($is_Moderator) { $msg_ip = $fmessage->ip; }
to
Code:
//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
14 years 2 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
14 years 2 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
14 years 2 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
14 years 2 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
14 years 2 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
14 years 2 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.

Time to create page: 0.378 seconds