[BETA] Advanced IP Tools Pack

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply
User avatar
pentapenguin
Former Team Member
Posts: 11030
Joined: Thu Jul 01, 2004 4:15 am
Location: GA, USA

[BETA] Advanced IP Tools Pack

Post by pentapenguin »

Advanced IP Tools Pack
This MOD will save users' IP and hostname information on signup. Includes additional IP features and extensions.

Features (all for administrators and moderators only!):
  • View Profile Additions:
    • Records IP and hostname* on registration.
      (* Note: hostname is recorded instead of just using gethostbyaddr() because hostnames may change over time.)
    • User's actual email address is displayed even if sending email via board is enabled.
    • IP and hostname of signup is displayed.
    • All other users registering under that IP address are displayed in a list. New! The time is also displayed.
    • All IP addresses the user has posted from are displayed in a list along with links to find the posts from that specific IP address.
    • New! Every login by the user is recorded along with the IP address, browser user agent string, and time.
    • New! If the IP wasn't recorded, there's now a message in the view profile page instead of a blank line.
    • New! Full pagination support for the other users registering under this IP, posts, and logins sections.
  • Search Additions:
    • You can now search for posts by IP address and optionally limit the results by search terms and/or username.
    • Wildcard searching in IPs
  • View Topic Additions:
    • Quick view of IP: IP address is displayed in the tooltip when you mouse over the IP button.
  • View Online Additions:
    • New! The IP address, browser, and Whois links are displayed underneath the username.
  • Miscellaneous Additions:
    • New! If someone enters a bad user id number (like tampering with the URL) instead of blank fields on the profile page, there's now an error message.
Screenshots
Viewonline:
Image
Search:
Image
Profile:
Image
Profile:
Image
Profile:
Image

FAQs
Q: Will this MOD install with Easy MOD?
A: Probably! Please let me know if you have any problems installing with it. Also, if you don't have problems, let me know that too!

Q: I don't use subSilver. Can you help?
A: Download the ZIP and see if instructions for your style are in the Styles directory. If not, just tell me what template you use, and I'll do my best to help you use this MOD with it. Be sure to include a link to the style if it's a harder to find one.

Q. How do I upgrade?
A. Simply use the mini-MOD found in the update directory.

Q. How come no IP addresses show up on the view profile page?
A. Unfortunately, IP addresses for users who signed up before you added this MOD weren't recorded and there's no way to do it.


Download from SourceForge.net

Any feedback is greatly appreciated!
Enjoy! :mrgreen:

Post last updated on October 8, 2006
- Updated version t0 0.3.3 for full support of phpBB 2.0.21. Also added MODX installation file.
Last edited by pentapenguin on Sun Oct 08, 2006 8:17 pm, edited 9 times in total.
Support Resources: Support Request Template
If you need professional assistance with your board, please contact me for my reasonable rates.

deny
Registered User
Posts: 565
Joined: Wed May 14, 2003 9:14 am
Location: Find-Ip-Address.org
Contact:

Post by deny »

Just installed and works great on 2.0.4 phpbb board.Excellent and thanks!

User avatar
beggers
Registered User
Posts: 1257
Joined: Fri Nov 23, 2001 8:19 pm
Location: Las Vegas
Contact:

Post by beggers »

Does it support wildcard searches, such as 111.222.*.*

User avatar
pentapenguin
Former Team Member
Posts: 11030
Joined: Thu Jul 01, 2004 4:15 am
Location: GA, USA

Post by pentapenguin »

beggers wrote: Does it support wildcard searches, such as 111.222.*.*

Hi!
No, sorry, it doesn't.
I'll see if it's possible to do that as the IPs in the database are encoded.
Though that sounds like a great feature addition! :D
Support Resources: Support Request Template
If you need professional assistance with your board, please contact me for my reasonable rates.

richard_5421
Registered User
Posts: 521
Joined: Tue Dec 30, 2003 12:57 am

Post by richard_5421 »

Im using the profilecp and can't see any user's IP on the profile page ..

The search IP works from the search ..


This is my profile_view_body.tpl

Code: Select all

 
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
  <tr> 
	<td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
  </tr>
</table>

<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0" align="center">
  <tr> 
	<th class="thHead" colspan="2" height="25" nowrap="nowrap">{L_VIEWING_PROFILE}</th>
  </tr>
  <tr> 
	<td class="catLeft" width="40%" height="28" align="center"><b><span class="gen">{L_AVATAR}</span></b></td>
	<td class="catRight" width="60%"><b><span class="gen">{L_ABOUT_USER}</span></b></td>
  </tr>
  <tr> 
	<td class="row1" height="6" valign="top" align="center">{AVATAR_IMG}<br /><span class="postdetails">{POSTER_RANK}</span></td>
	<td class="row1" rowspan="3" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="3">
		<tr> 
		  <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_JOINED}:&nbsp;</span></td>
		  <td width="100%"><b><span class="gen">{JOINED}</span></b></td>
		</tr>
		<tr> 
		  <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_TOTAL_POSTS}:&nbsp;</span></td>
		  <td valign="top"><b><span class="gen">{POSTS}</span></b><br /><span class="genmed">[{POST_PERCENT_STATS} / {POST_DAY_STATS}]</span> <br /><span class="genmed"><a href="{U_SEARCH_USER}" class="genmed">{L_SEARCH_USER_POSTS}</a>{ADD_USER_NOTE}<br /><a href="{U_PERSONAL_GALLERY}" class="genmed">{L_PERSONAL_GALLERY}</a></span></td>
		</tr>
		<tr> 
		  <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_LOCATION}:&nbsp;</span></td>
		  <td><b><span class="gen">{LOCATION}</span></b></td>
		</tr>
		<tr> 
		  <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_WEBSITE}:&nbsp;</span></td>
		  <td><span class="gen"><b>{WWW}</b></span></td>
		</tr>
		<tr> 
		  <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_OCCUPATION}:&nbsp;</span></td>
		  <td><b><span class="gen">{OCCUPATION}</span></b></td>
		</tr>
		<tr> 
		  <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_INTERESTS}:&nbsp;</span></td>
		  <td> <b><span class="gen">{INTERESTS}</span></b></td>
		</tr>
<!-- BEGIN switch_upload_limits -->
		<tr> 
			<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_UPLOAD_QUOTA}:&nbsp;</span></td>
			<td> 
				<table width="175" cellspacing="1" cellpadding="2" border="0" class="bodyline">
				<tr> 
					<td colspan="3" width="100%" class="row2">
						<table cellspacing="0" cellpadding="1" border="0">
						<tr> 
							<td bgcolor="{T_TD_COLOR2}"><img src="templates/subSilver/images/spacer.gif" width="{UPLOAD_LIMIT_IMG_WIDTH}" height="8" alt="{UPLOAD_LIMIT_PERCENT}" /></td>
						</tr>
						</table>
					</td>
				</tr>
				<tr> 
					<td width="33%" class="row1"><span class="gensmall">0%</span></td>
					<td width="34%" align="center" class="row1"><span class="gensmall">50%</span></td>
					<td width="33%" align="right" class="row1"><span class="gensmall">100%</span></td>
				</tr>
				</table>
				<b><span class="genmed">[{UPLOADED} / {QUOTA} / {PERCENT_FULL}]</span> </b><br />
				<span class="genmed"><a href="{U_UACP}" class="genmed">{L_UACP}</a></span></td>
			</td>
		</tr>
<!-- END switch_upload_limits -->
	 <!-- BEGIN switch_user_sig_block -->
		<tr> 
		  <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_SIGNATURE}:&nbsp;</span></td>
		  <td> <span class="postbody">{USER_SIG}</span></td>
		</tr>
        <!-- END switch_user_sig_block -->
	  </table>
	</td>
  </tr>
  <tr> 
	<td class="catLeft" align="center" height="28"><b><span class="gen">{L_CONTACT} {USERNAME} </span></b></td>
  </tr>
  <tr> 
	<td class="row1" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="3">
		<tr> 
		  <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_EMAIL_ADDRESS}:</span></td>
		  <td class="row1" valign="middle" width="100%"><b><span class="gen">{EMAIL_IMG}</span></b></td>
		</tr>
		<tr> 
		  <td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_PM}:</span></td>
		  <td class="row1" valign="middle"><b><span class="gen">{PM_IMG}</span></b></td>
		</tr>
		<tr> 
		  <td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_MESSENGER}:</span></td>
		  <td class="row1" valign="middle"><span class="gen">{MSN}</span></td>
		</tr>
		<tr> 
		  <td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_YAHOO}:</span></td>
		  <td class="row1" valign="middle"><span class="gen">{YIM_IMG}</span></td>
		</tr>
		<tr> 
		  <td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_AIM}:</span></td>
		  <td class="row1" valign="middle"><span class="gen">{AIM_IMG}</span></td>
		</tr>
		<tr> 
		  <td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_ICQ_NUMBER}:</span></td>
		  <td class="row1"><script language="JavaScript" type="text/javascript"><!-- 

		if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 )
			document.write(' {ICQ_IMG}');
		else
			document.write('<table cellspacing="0" cellpadding="0" border="0"><tr><td nowrap="nowrap"><div style="position:relative;height:18px"><div style="position:absolute">{ICQ_IMG}</div><div style="position:absolute;left:3px;top:-1px">{ICQ_STATUS_IMG}</div></div></td></tr></table>');
		  
		  //--></script><noscript>{ICQ_IMG}</noscript></td>
		</tr>
	  </table>
	</td>
  </tr>
<!-- BEGIN switch_user_admin_or_mod --> 
 <tr> 
  <th class="thHead" colspan="2" align="center">{L_MODERATOR_IP_INFORMATION}</th> 
 </tr> 
  
 <tr> 
  <td class="row1" colspan="2"><span class="gen">{L_EMAIL_ADDRESS}: <a href="mailto:{USER_EMAIL_ADDRESS}">{USER_EMAIL_ADDRESS}</a></span></td> 
 </tr> 
  
 <tr> 
  <td class="row1" colspan="2"><span class="gen">{L_REGISTERED_IP_ADDRESS}: <a href="http://whois.sc/{USER_IP_ADDRESS}" target="_blank">{USER_IP_ADDRESS}</a></span></td> 
 </tr> 
  
 <tr> 
  <td class="row1" colspan="2"><span class="gen">{L_REGISTERED_HOSTNAME}: {USER_REGISTERED_HOSTNAME}</span></td> 
 </tr> 
  
 <tr> 
  <th class="thHead" colspan="2" align="center">{L_OTHER_REGISTERED_IPS}</th> 
 </tr> 
  
 <!-- BEGIN OTHER_REGISTERED_IPS --> 
 <tr> 
  <td class="row1"><span class="gen"><a href="{switch_user_admin_or_mod.OTHER_REGISTERED_IPS.U_PROFILE}">{switch_user_admin_or_mod.OTHER_REGISTERED_IPS.USER_NAME}</a></span></td> 
  <td class="row1"><span class="gen">{switch_user_admin_or_mod.OTHER_REGISTERED_IPS.USER_HOSTNAME}</span></td>           
 </tr> 
 <!-- END OTHER_REGISTERED_IPS --> 
  
 <tr> 
  <th class="thHead" colspan="2" align="center">{L_OTHER_IPS}</th> 
 </tr> 
  
 <!-- BEGIN ALL_IPS_POSTED_FROM --> 
 <tr> 
  <td class="row1" colspan="2"><span class="gen"><a href="http://whois.sc/{switch_user_admin_or_mod.ALL_IPS_POSTED_FROM.POSTER_IP}" target="_blank">{switch_user_admin_or_mod.ALL_IPS_POSTED_FROM.POSTER_IP}</a> [ <a href="{switch_user_admin_or_mod.ALL_IPS_POSTED_FROM.U_POSTS_LINK}">{switch_user_admin_or_mod.ALL_IPS_POSTED_FROM.POSTS}</a> ] </span></td> 
 </tr> 
 <!-- END ALL_IPS_POSTED_FROM --> 
  
<!-- END switch_user_admin_or_mod -->
  
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
	<td align="right"><span class="nav"><br />{JUMPBOX}</span></td>
  </tr>
</table>

Now I worked out that profilecp has all its own files ... but could not
find the ones to do with the files, I looked at them all

avatar_body.tpl
birthday_popup.tpl
board_config_body.tpl
buddy_body.tpl
buddy_box.tpl
home_body.tpl
index.htm
privmsgs_body.tpl
privmsgs_box.tpl
profil_avatar_body.tpl
profil_signature_body.tpl
profilcp_footer.tpl
profilcp_header.tpl
public_base_body.tpl
public_groups_body.tpl
register_body.tpl
Web Request - Virtual Shared / Reseller / VPS / Dedicated
Multiple Domain Hosting .... 24/7 Technical Support - UK Website

User avatar
pentapenguin
Former Team Member
Posts: 11030
Joined: Thu Jul 01, 2004 4:15 am
Location: GA, USA

Post by pentapenguin »

richard_5421, I guess I didn't explain well enough. :(
phpBB doesn't record IP addresses on signup.
This MOD is designed to fix that along with other things.
In other words, to get the most out of this MOD, your users will have to register AFTER you install this MOD.

Register a new test user and see if it works properly then as your code looks okay.
If not, PM me with any details you think would be helpful. :)
Support Resources: Support Request Template
If you need professional assistance with your board, please contact me for my reasonable rates.

richard_5421
Registered User
Posts: 521
Joined: Tue Dec 30, 2003 12:57 am

Post by richard_5421 »

lol ok it does say 'This MOD will save users' IP and hostname information
on signup along with IP'

Maybe you should re-word that, anyway I removed it around 3 hours
after installing it I had a big white page saying General error

Sessions, cannt write here and there :wink:


Its okay I have an IP search from my admin .. you would have to

look into how the profilecp wors because I have no idea where the code is
Web Request - Virtual Shared / Reseller / VPS / Dedicated
Multiple Domain Hosting .... 24/7 Technical Support - UK Website

User avatar
pentapenguin
Former Team Member
Posts: 11030
Joined: Thu Jul 01, 2004 4:15 am
Location: GA, USA

Post by pentapenguin »

richard_5421 wrote: anyway I removed it around 3 hours
after installing it I had a big white page saying General error

Sessions, cannt write here and there

That's a common error that happens sometimes that is completely unrelated. ;)
To fix it, just go to phpMyAdmin->select your database->click the SQL tab->and enter this:

Code: Select all

TRUNCATE TABLE phpbb_sessions;
Now, you only modify two template files: profile_view_body.tpl and search_body.tpl and your profile_view_body.tpl looks fine.
Can you PM me a screenshot of the profile page of a new user you registered?
Support Resources: Support Request Template
If you need professional assistance with your board, please contact me for my reasonable rates.

richard_5421
Registered User
Posts: 521
Joined: Tue Dec 30, 2003 12:57 am

Post by richard_5421 »

Nothing at all new, only the search works, its becaused profilecp does not
use those files, I think it uses completely different ones

http://premium.uploadit.org/musicmatters/ne748gvc.JPG


http://www.phpbb.com/phpBB/viewtopic.ph ... 25&start=0
Web Request - Virtual Shared / Reseller / VPS / Dedicated
Multiple Domain Hosting .... 24/7 Technical Support - UK Website

User avatar
pentapenguin
Former Team Member
Posts: 11030
Joined: Thu Jul 01, 2004 4:15 am
Location: GA, USA

Post by pentapenguin »

richard_5421, what template are you using?
Let me know and I'll PM you a premodded version. :)
Support Resources: Support Request Template
If you need professional assistance with your board, please contact me for my reasonable rates.

richard_5421
Registered User
Posts: 521
Joined: Tue Dec 30, 2003 12:57 am

Post by richard_5421 »

mmm, okay but I think the best idea you use my files because I have
many mods added..

Im using charcoal.. the normal not the latest one that come out ...


Have a look at the profilecp and let me know what files you need ..


Question:

So this will show all the username's or IP's from the users profile so
I can easily idenfiy if they have multiple accounts, when its up and
running im sure I will have lots of more features for you to add :wink:
Web Request - Virtual Shared / Reseller / VPS / Dedicated
Multiple Domain Hosting .... 24/7 Technical Support - UK Website

User avatar
onigumo
Registered User
Posts: 1755
Joined: Fri Oct 31, 2003 2:32 am
Contact:

Post by onigumo »

Is there a way to install this without having to go into page_header.php?
I write articles on community building
@ The Infinity Program.

FinalFantasy
Registered User
Posts: 277
Joined: Mon Oct 04, 2004 4:34 am
Location: Give Me 100 million Gil and ill tell you
Contact:

Post by FinalFantasy »

hey gotta give u props on this mod. i love it. but the only things i find not working are:

Not EasyMod 0.1.13 compatiable
And Does Not Let You See Who Else Post From This IP Thingy.
<!-- Sig Removed Cause Graham Didn't Like Em :( -->
RPG Guru's
Veneficium

User avatar
pentapenguin
Former Team Member
Posts: 11030
Joined: Thu Jul 01, 2004 4:15 am
Location: GA, USA

Post by pentapenguin »

onigumo wrote: Is there a way to install this without having to go into page_header.php?

Short answer: no.
Reason?
There's no administrator or moderator switches by defualt like there is with say user logged in/logged out swtiches.
The admin/mod switch only shows the IP address if the user is an admin or mod.
That's the only thing the edit to page_header.php does.

If you can't modify it, I think you would be able to acheive the same effect if you wrapped the code in PHP if/else tags if you have CyberAlien's eXtreme Styles MOD installed which allows PHP in templates.
Support Resources: Support Request Template
If you need professional assistance with your board, please contact me for my reasonable rates.

User avatar
pentapenguin
Former Team Member
Posts: 11030
Joined: Thu Jul 01, 2004 4:15 am
Location: GA, USA

Post by pentapenguin »

FinalFantasy wrote: hey gotta give u props on this mod. i love it.

Thanks! :D
FinalFantasy wrote: Not EasyMod 0.1.13 compatiable

Sorry! :(
Funny because that's the version I used to install.
Do you have other styles installed?
If so, that's the likely problem.
If not, can you post the exact error message so I can take a look?
FinalFantasy wrote: And Does Not Let You See Who Else Post From This IP Thingy.

Sorry but I don't understand. :oops:
Can you run that by me again? :)
Include a screenshot if something looks funny.
Support Resources: Support Request Template
If you need professional assistance with your board, please contact me for my reasonable rates.

Post Reply

Return to “[2.0.x] MODs in Development”