Poster IP in Viewtopic

Show only administrator - Poster IP in Viewtopic

Show only administrator

by xavierx » Mon Jun 06, 2016 3:52 pm

 
Hi,
How to edit the IP show only administrator?
Thanks.
 
Sorry, my English is very poor.
I use translate.google.sk
Thanks
xavierx
Registered User
Posts: 19
Joined: Sun Jan 03, 2016 3:45 pm

Re: Show only administrator

by RMcGirr83 » Mon Jun 06, 2016 6:25 pm

change this in the listener file

Code: Select all

if ($this->auth->acl_gets('a_''m_') && !empty($poster_ip)) 


to this

Code: Select all

if ($this->auth->acl_get('a_') && !empty($poster_ip)) 
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22092
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Show only administrator

by xavierx » Tue Jun 07, 2016 6:15 pm

Ok, this is good work!
Thanks.
Sorry, my English is very poor.
I use translate.google.sk
Thanks
xavierx
Registered User
Posts: 19
Joined: Sun Jan 03, 2016 3:45 pm

Re: Show only administrator

by YOUAREtehSCENE » Tue Jun 14, 2016 11:02 pm

Does this extention have the option of not showing admins IPS and just the users? I don't want my IP out there, but I don't care about my users though.
YOUAREtehSCENE
Registered User
Posts: 194
Joined: Wed Feb 11, 2009 3:35 am
Location: Boston, Mass

Re: Show only administrator

by RMcGirr83 » Wed Jun 15, 2016 9:40 am

Only admins and mods will see the IP addresses
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22092
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Show only administrator

by mrgtb » Tue Dec 06, 2016 1:04 pm

How can I add a custom group to also see the IP's. One I've added extra used as a basic mod group.

As I see it doesn't use the group ID number in code, such as like this for admin and global mod group, so you could add another group ID:

Code: Select all

if ($this->auth->acl_gets('5_', '4_') && !empty($poster_ip))
User avatar
mrgtb
Registered User
Posts: 603
Joined: Wed Oct 03, 2007 10:51 am

Re: Show only administrator

by RMcGirr83 » Tue Dec 06, 2016 7:02 pm

And that has zero to do with this topic.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22092
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr