Page 10 of 14

Re: IP-address in topic for phpBB3

Posted: Tue Sep 16, 2008 4:38 pm
by rxu
Sure. The 'ip' entry was in the previous MOD version. It's became 'poster_ip' since ver.2.0.0.
There was similar question here and it was answered here ;)

Re: IP-address in topic for phpBB3

Posted: Fri Sep 19, 2008 7:17 am
by Friendly
Nice little mod! Thanks.

It would be very nice if we could click on the user's IP address and be brought to a whois query on them, though this isn't a dire need or anything. I just spent a while trying to figure out how to do it, but I don't understand the workings of PHPBB software well enough to be able to do it.

Re: IP-address in topic for phpBB3

Posted: Wed Sep 24, 2008 8:07 am
by moselekm
Is there a way to restrict this as a specific permission per user-group?
Great mod eitherway!

Re: IP-address in topic for phpBB3

Posted: Wed Sep 24, 2008 1:44 pm
by rxu
Friendly wrote:It would be very nice if we could click on the user's IP address and be brought to a whois query on them
There were some solutions on this... here and here I guess :)
moselekm wrote:Is there a way to restrict this as a specific permission per user-group?
For instance, you could replace the line in viewtopic.php

Code: Select all

		'POSTER_IP'			=> (($auth->acl_get('a_') || $auth->acl_get('m_')) && $user->data['is_registered']) ? $row['poster_ip'] : '',
with the following

Code: Select all

		'POSTER_IP'			=> ($auth->acl_get('m_info') && $user->data['is_registered']) ? $row['poster_ip'] : '',
In this case, you can set an ability to view IP adresses in topic by setting "Can view post details" Misc Global moderator permission for users/groups.

Re: IP-address in topic for phpBB3

Posted: Wed Sep 24, 2008 2:42 pm
by muggins
Спасибо! Very nice, I've been looking for something like that. :D

Re: IP-address in topic for phpBB3

Posted: Thu Sep 25, 2008 11:47 pm
by hellreturn
Was trying to add this in 3.0.1 but i cant find the code:

Code: Select all

<p class="author"><!-- IF S_IS_BOT -->{postrow.MINI_POST_IMG}<!-- ELSE --><a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a><!-- ENDIF -->{L_POST_BY_AUTHOR} <strong>{postrow.POST_AUTHOR_FULL}</strong> {L_POSTED_ON_DATE} {postrow.POST_DATE}</p>
If i am not wrong i need to modify above lines to which are suggested on first page in:
viewtopic.php located in the forums folder.

But i am not able to find it. Any idea where i need to put it? First time installation so obvious u are dealing with newbie ^^

Re: IP-address in topic for phpBB3

Posted: Fri Sep 26, 2008 1:09 am
by kramtronix
Is there a MOD for hiding IP addresses from MODeratorS?

Re: IP-address in topic for phpBB3

Posted: Fri Sep 26, 2008 1:07 pm
by rxu
hellreturn wrote:i need to modify above lines to which are suggested on first page in:viewtopic.php
Actually, that line is from viewtopic_body,html (in /template folder of the style you're using) :)
kramtronix wrote:Is there a MOD for hiding IP addresses from MODeratorS?
You can either try this way or change the part of code of the line in viewtopic.php

Code: Select all

	'POSTER_IP'			=> (($auth->acl_get('a_') || $auth->acl_get('m_')) && $user->data['is_registered']) ? $row['poster_ip'] : '',
to allow to view IP addresses only for users having administrator permissions, for instanse:

Code: Select all

	'POSTER_IP'			=> ($auth->acl_get('a_') && $user->data['is_registered']) ? $row['poster_ip'] : '',

Re: IP-address in topic for phpBB3

Posted: Thu Oct 30, 2008 4:34 pm
by Xaman
I installed this mod and made the necessary changes in the template, but still doesn't show any IP information on the posts.

Re: IP-address in topic for phpBB3

Posted: Thu Oct 30, 2008 4:50 pm
by rxu
So there're no errors showed? Did you purge the cache/refresh template in ACP? Did you edit the template for the style you're using currently?

Re: IP-address in topic for phpBB3

Posted: Fri Oct 31, 2008 2:55 am
by Xaman
rxu wrote:So there're no errors showed? Did you purge the cache/refresh template in ACP? Did you edit the template for the style you're using currently?
Yes, I did all that, no errors. I'm using my own style, so I made the changes on the prosilver and change it to that one. Still nothing. :(

Re: IP-address in topic for phpBB3

Posted: Fri Oct 31, 2008 12:15 pm
by JeRicHoOL
I have installed the mod version 2.0.0 on my phpBB 3.0.2 board. I applied all the instructions, refreshed the template and purged the cache. Nothing has changed. No errors and no IP's. I'm admin and I can't see the IP for admins and for members. Can anyone help me please?

Thanks in advance. ;)

EDIT: Sorry. It works. I thought the IP will appear next to the topic author. I saw it adds the IP to the profile next to the post. Really cool mod. Thank you. :)

EDIT 2: How can I hide the user IP's from moderators so that only admins can see the IP's?

Re: IP-address in topic for phpBB3

Posted: Fri Oct 31, 2008 1:18 pm
by rxu
JeRicHoOL wrote:How can I hide the user IP's from moderators so that only admins can see the IP's?
In viewtopic.php find

Code: Select all

		'POSTER_IP'			=> (($auth->acl_get('a_') || $auth->acl_get('m_')) && $user->data['is_registered']) ? $row['poster_ip'] : '',
and replace it with

Code: Select all

		'POSTER_IP'			=> (($auth->acl_get('a_') && $user->data['is_registered']) ? $row['poster_ip'] : '',
Xaman wrote:I made the changes on the prosilver and change it to that one.
Do you mean it doesn't work for prosilver? It has to be shown in users' miniprofiles beside the posts in viewtopic.

Re: IP-address in topic for phpBB3

Posted: Fri Oct 31, 2008 2:28 pm
by ChriZathens
muggins wrote:Very nice, thanks! I will try making it a pop-up window...

Change the replacement to this:

Code: Select all

<!-- IF postrow.POSTER_IP --><dd><strong>{L_IP}:</strong> <a href="javascript:void(0)" onclick="window.open('http://en.utrace.de/?query={postrow.POSTER_IP}' , 'popup','width=800,height=620,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false">{postrow.POSTER_IP}</a></dd><!-- ENDIF --> 
Nice one, muggins.. :D
Although I would suggest to change
scrollbars=no
to
scrollbars=yes
because it might confuse someone and make them believe that there is something missing there.. :lol:

And by the way, rxu, nice, easy and useful mod, man...Well done!!!

Re: IP-address in topic for phpBB3

Posted: Fri Oct 31, 2008 4:04 pm
by Xaman
It still shows nothing for me. :(