IP-address in topic for phpBB3

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: IP-address in topic for phpBB3

Post by ChriZathens »

Did you do all the edits?
In templates folder there are also changes in viewtopic_body.html that need to be done.
If you've made changes in viewtopic_body.html, then have you purged your cache?
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...
Xaman
Registered User
Posts: 135
Joined: Wed May 09, 2007 9:15 pm

Re: IP-address in topic for phpBB3

Post by Xaman »

ChriZathens wrote:Did you do all the edits?
In templates folder there are also changes in viewtopic_body.html that need to be done.
If you've made changes in viewtopic_body.html, then have you purged your cache?
Yes, I did all that, several times, and still nothing. :(
datkeoniguy
Registered User
Posts: 150
Joined: Sat Jan 24, 2004 8:11 pm

Re: IP-address in topic for phpBB3

Post by datkeoniguy »

Is this compatible with phpbb v 3.0.3? Some of the code looks very different.
rxu
Extensions Development Team
Posts: 3392
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: IP-address in topic for phpBB3

Post by rxu »

Just checked the 3.0.3 code regarding this MOD and it's absolutely the same. So the MOD has to be fully compatible with phpBB 3.0.3. :)
chebli
Registered User
Posts: 61
Joined: Mon Nov 24, 2008 6:56 pm

Re: IP-address in topic for phpBB3

Post by chebli »

works good in phpbb3.0.3 i have it installed with no problems thanks .
howler6120
Registered User
Posts: 1
Joined: Thu Dec 04, 2008 7:41 am
Contact:

Re: IP-address in topic for phpBB3

Post by howler6120 »

Yes it works on 3.03

Im using the Hermes skin.

Edited
root/viewtopic.php
and
root/styles/hermes/template/viewtopic_body.html

Hermes looks more like subsilver2 so i used this code:

Code: Select all

<!-- IF postrow.POSTER_IP --><br /><b>{L_IP}:</b> {postrow.POSTER_IP}<!-- ENDIF -->
That's all she wrote.

:D
User avatar
DutchToxophilite
Registered User
Posts: 175
Joined: Fri Dec 14, 2007 9:59 pm
Location: Venlo - The Netherlands
Contact:

Re: IP-address in topic for phpBB3

Post by DutchToxophilite »

Hi.

Great, easy and simple MOD.

But would it be possible to also show the IP on the result of a "search list".

I want to be able to very quickly see if a user uses different IP addresses, by simply "searching" on the users topics.

thanx.

grtz,
Twan
You are never to old to be stubern.....
rxu
Extensions Development Team
Posts: 3392
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: IP-address in topic for phpBB3

Post by rxu »

Thanks.
If you need only to find out if some user uses different IP addresses, you can do it by clicking on "Post details" icon in any of the user's posts. ;)
User avatar
DutchToxophilite
Registered User
Posts: 175
Joined: Fri Dec 14, 2007 9:59 pm
Location: Venlo - The Netherlands
Contact:

Re: IP-address in topic for phpBB3

Post by DutchToxophilite »

Hi RXU.

I knew of this option, but I would still like to have the IP shown in the "search list"....

grtz,
Twan
You are never to old to be stubern.....
User avatar
muggins
Registered User
Posts: 1183
Joined: Fri Feb 22, 2008 5:12 pm
Location: Texas
Name: Donovan
Contact:

Re: IP-address in topic for phpBB3

Post by muggins »

sevenalive wrote:A little mod to this mod to make it better.

Do the following to make the IP address a link, when you click that link it does an ip trace!

Open: prosilver/template/viewtopic_body.html
Find:

Code: Select all

		<!-- IF postrow.POSTER_IP --><dd><strong>{L_IP}:</strong> {postrow.POSTER_IP}</dd><!-- ENDIF -->
Replace:

Code: Select all

		<!-- IF postrow.POSTER_IP --><dd><strong>{L_IP}:</strong> <a href="http://en.utrace.de/?query={postrow.POSTER_IP}">{postrow.POSTER_IP}</a></dd><!-- ENDIF -->
Open: subsilver/template/viewtopic_body.html
Find:

Code: Select all

					<!-- IF postrow.POSTER_FROM --><br /><b>{L_LOCATION}:</b> {postrow.POSTER_FROM}<!-- ENDIF -->
Replace:

Code: Select all

					<!-- IF postrow.POSTER_IP --><br /><b>{L_IP}:</b> <a href="http://en.utrace.de/?query={postrow.POSTER_IP}">{postrow.POSTER_IP}</a><!-- ENDIF -->
Refresh Templates, purge cache
Now just click the ip to run a trace.
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 -->  

I added this functionality to the 'Who is online' page and to the ACP User Overview.

In root/styles/prosilver/template/viewonline_body.html, find:

Code: Select all

            <td>{user_row.USERNAME_FULL}<!-- IF user_row.USER_IP --> <span style="margin-left: 30px;">{L_IP}: <a href="{user_row.U_USER_IP}">{user_row.USER_IP}</a> &#187; <a href="{user_row.U_WHOIS}" onclick="popup(this.href, 750, 500); return false;">{L_WHOIS}</a></span><!-- ENDIF -->  
Replace with:

Code: Select all

            <td>{user_row.USERNAME_FULL}<!-- IF user_row.USER_IP --> <span style="margin-left: 30px;">{L_IP}: <a href="{user_row.U_USER_IP}">{user_row.USER_IP}</a> &#187; <a href="{user_row.U_WHOIS}" onclick="popup(this.href, 750, 500); return false;">{L_WHOIS}</a> &nbsp;&bull;&nbsp; <a href="javascript:void(0)" onclick="window.open('http://en.utrace.de/?query={user_row.USER_IP}' , 'popup','width=800,height=620,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=30,top=30'); return false">Map</a></span><!-- ENDIF -->  
And similarly, in root/adm/style/acp_users_overview.html, find:

Code: Select all

<!-- IF S_USER_IP -->
<dl>
    <dt><label>{L_REGISTERED_IP}:</label></dt>
    <dd><a href="{U_SHOW_IP}">{REGISTERED_IP}</a></dd>
    <dd>[ <a href="{U_WHOIS}" onclick="popup(this.href, 700, 500, '_whois'); return false;">{L_WHOIS}</a> ]</dd>
</dl>
<!-- ENDIF --> 
Replace with:

Code: Select all

<!-- IF S_USER_IP -->
<dl>
    <dt><label>{L_REGISTERED_IP}:</label></dt>
    <dd><a href="{U_SHOW_IP}">{REGISTERED_IP}</a></dd>
    <dd>[ <a href="{U_WHOIS}" onclick="popup(this.href, 700, 500, '_whois'); return false;">{L_WHOIS}</a> ]</dd>
    <dd>[ <a href="javascript:void(0)" onclick="window.open('http://en.utrace.de/?query={REGISTERED_IP}' , 'popup','width=800,height=620,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=30,top=30'); return false">Map</a> ]</dd>
</dl>
<!-- ENDIF --> 
Muggins
daredevil33
Registered User
Posts: 74
Joined: Tue Nov 18, 2008 10:56 pm

Re: IP-address in topic for phpBB3

Post by daredevil33 »

What will the changes will do? does it work with 3.0.4?
rxu
Extensions Development Team
Posts: 3392
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: IP-address in topic for phpBB3

Post by rxu »

You'll see users' IP addresses in their miniprofiles viewing topics (like posts counts or join dates).
And yes, it should work with 3.0.4.
User avatar
muggins
Registered User
Posts: 1183
Joined: Fri Feb 22, 2008 5:12 pm
Location: Texas
Name: Donovan
Contact:

Re: IP-address in topic for phpBB3

Post by muggins »

Here's a screenshot from my board of the "Who is online" page, with a map trace pop-up:
Screenshot.png
Screenshot.png (838.65 KiB) Viewed 902 times
Muggins
daredevil33
Registered User
Posts: 74
Joined: Tue Nov 18, 2008 10:56 pm

Re: IP-address in topic for phpBB3

Post by daredevil33 »

muggins wrote:Here's a screenshot from my board of the "Who is online" page, with a map trace pop-up:
So, i dont need to do what is posted in zip file? And follow your instruction from

"I added this functionality to the 'Who is online' page and to the ACP User Overview."

I am just confused what to do with so many modifications. Can you please tell me from scratch what i need to do?

Thanks a lot.
rxu
Extensions Development Team
Posts: 3392
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: IP-address in topic for phpBB3

Post by rxu »

The thing muggins talks about actually isn't related to this MOD. "IP-address in topic" MOD shows only posters' IP addresses in topics (as per the MOD title). :)
Locked

Return to “[3.0.x] MOD Database Releases”