News:

Wondering if this will always be free?  See why free is better.

Main Menu

View IP Permission

Started by Arantor, December 09, 2009, 04:04:29 AM

Previous topic - Next topic

Sabre™

Dagnabbit!
I just finished writing something similar for my site, but this code is Much better! lol
Thanks :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


azhriel

Any update for SMF 2.0. I really need this mod

Inti31

#22
just set 2.0 in package-info.xml - it works well - just tried that in my testboard

my forum
my testforum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

Spoogs

Could have used version emulate as well... Admin>> Package Manager... scroll down click advanced change 2.0 to 2.0 RC3 then install the mod ;)

azhriel


rebekahc

Hi,

I'm using SMF 2.0.1 (emulated RC3 to install) and am getting the following error:

8: Undefined variable: seeIP
File: /home/food/public_html/Sources/Modlog.php
Line: 433

// IP Info?
if (isset($row['extra']['ip_range']))
if ($seeIP)
$row['extra']['ip_range'] = '<a href="' . $scripturl . '?action=trackip;searchip=' . $row['extra']['ip_range'] . '">' . $row['extra']['ip_range'] . '</a>';
else
$row['extra']['ip_range'] = $txt['logged'];


I think this is where $seeIP would be defined?

// Can they see the IP address?
$see_ownIP = allowedTo('view_ip_address_own');
$see_anyIP = allowedTo('view_ip_address_any');


Otherwise, this mod is working fine.  To fix, do I just need to change this:

// IP Info?
if (isset($row['extra']['ip_range']))
if ($seeIP)
$row['extra']['ip_range'] = '<a href="' . $scripturl . '?action=trackip;searchip=' . $row['extra']['ip_range'] . '">' . $row['extra']['ip_range'] . '</a>';
else
$row['extra']['ip_range'] = $txt['logged'];


to this?

// IP Info?
if (isset($row['extra']['ip_range']))
if ($see_anyIP || ($see_ownIP && $row['id_member'] == $context['user']['id']))
$row['extra']['ip_range'] = '<a href="' . $scripturl . '?action=trackip;searchip=' . $row['extra']['ip_range'] . '">' . $row['extra']['ip_range'] . '</a>';
else
$row['extra']['ip_range'] = $txt['logged'];


Apllicmz

When update dont forget portuguese files




bros

Is there a way to apply this to a specific board or permission profile?

Arantor

No, because it would not work properly even if you could.

bros

Quote from: Sir Cumber-Patcher on February 01, 2014, 09:46:56 PM
No, because it would not work properly even if you could.

Darn.

I have the Anonymous Board mod and it'd be nice to make it so certain people with mod/admin powers stop exposing people's identities on the anonymous board.

Arantor

If they can't behave with such, they probably shouldn't have mod/admin powers.

bros

Quote from: Arantor on February 01, 2014, 10:00:39 PM
If they can't behave with such, they probably shouldn't have mod/admin powers.

True.

Thanks for the good mod.

vampire2k5

Dear Arantor
how can i uninnstall view ip permission 1.1.2 for upgrade it to the latest version?

thanks

Vmp

Arantor

You don't need to. The only change in 1.1.3 was compatibility for 2.0.7 and that was literally just changing the install instructions to say it was compatible with 2.0.7.

vampire2k5

ah oks..
in these days i got these error:

8: Undefined index: member


File: /web/htdocs/forum.clubvolvoitalia.com/home/Sources/Who.php
Row: 194
I thought it was something related to the 2.0.7 update... i  think i need to update your package..

Arantor

Seeing how literally NOTHING changed in the package, any update of the package would be a total waste of your time.

Try changing line 194 to read id_member instead of member.

Advertisement: