vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - YBMF - GoogleMaps - Geo IP Tracker ( one click ) (https://vborg.vbsupport.ru/showthread.php?t=234082)

TimberFloorAu 01-24-2010 10:00 PM

YBMF - GoogleMaps - Geo IP Tracker ( one click )
 
1 Attachment(s)
If you use CLICK INSTALL
If you use RATE IT
Please

Beta Version:

Q.What does this hack do ?

A. It places for Moderators/Admin staff a clickable IP image link on every forum post by all users. Hidden from all usergroups except mods/admin.

Essentially clicking the Image link, opens a new window. Parsing the members IP into the URL and echoing back their ip details. Displayed on Google Maps
This can be useful in spotting :-
a) spammers
b) unwelcome members
c) members posting nice threads to get post count up, to then begin spamming.

This modification is really a hack, but it works for us. Feel free to update it with better IP services, and I will upgrade the hack accordingly.

PLEASE CLICK INSTALL if you use this. Tested on V4.01

To use:

admincp >> styles and templates >> postbit_legacy

Template EDITS in download folder. When you are done,

You will see the following:

Click this image:
account-

ip-tracker

Ip Tracker opens in new window.
big-window

Have fun

CLICK INSTALL

*changed title of mod from :
YBMF - Admin/Moderator Instant IP Lookup
to
YBMF - Admin/Moderator Instant IP Tracer

JONTY's version if you use Paul's Proxy to Real IP > https://vborg.vbsupport.ru/showpost....2&postcount=14

New MAP version now available.

Open up the readme (map-instructions-ybmf-tracker.txt)

Choose 1 of the 3 versions:
ver1. 1 map
ver2. 2 map
ver3. Jonty/Paul proxy.Real ip version.

Copy the code, and add that to postbit legacy ( instead of code within the zip )

basically open postbit_legacy

find : {vb:raw post.iplogged}
Add the code of the version you want afterwards.

ie:
Code:

<!--yobromofo ip tracer-->
<vb:if condition="can_moderate()"><a href="http://www.infosniper.net/index.php?ip_address={vb:raw post.ip}&map_source=1&overview_map=1&lang=1&map_type=1&zoom_level=7" alt="YoBroMoFo IP Tracker" title="YoBroMoFo IP Tracker"target="_blank"><img src="images/site_icons/account.png" border="0"></a></vb:if>
<!--end of yobromofo ip tracer-->

or try this one: 2 level map
Code:

<!--yobromofo ip tracer-->
<vb:if condition="can_moderate()"><a href="http://www.infosniper.net/index.php?ip_address={vb:raw post.ip}&map_source=1&two_maps=1&overview_map=1&lang=1&map_type=1&zoom_level=7" alt="YoBroMoFo IP Tracker" title="YoBroMoFo IP Tracker"target="_blank"><img src="images/site_icons/account.png" border="0"></a></vb:if>
<!--end of yobromofo ip tracer-->


or Jontys version if you use Pauls proxy to Real IP.

Code:

<!--yobromofo ip tracer-->
<vb:if condition="can_moderate()">
  <vb:if condition="$post['proxyip']==null">
      <a href="http://www.infosniper.net/index.php?ip_address={vb:raw post.ip}&map_source=1&two_maps=1&overview_map=1&lang=1&map_type=1&zoom_level=7" alt="YoBroMoFo IP Tracker" title="YoBroMoFo IP Tracker"target="_blank">
  <img src="images/site_icons/account.png" border="0">
  </a>
  <vb:else />
      <a href="http://www.infosniper.net/index.php?ip_address={vb:raw post.proxyip}&map_source=1&two_maps=1&overview_map=1&lang=1&map_type=1&zoom_level=7" alt="YoBroMoFo IP Tracker" title="YoBroMoFo IP Tracker"target="_blank">
  <img src="images/site_icons/account.png" border="0">
  </a>
  </vb:if>
</vb:if>
<!--end yobromofo ip tracer-->

Click save, and test it out
* MAP Instructions Uploaded * 27th Jan 2010
* product by Jonty Uploaded * 28th Jan 2010
* changed instructions, GEO code and renamed MOD

To Install the product-


admincp > plugins and products > manage products
Add/Import Product
upload this product_ybmf_iptracker.xml ( allow overwrite = yes )

You are done.

To Upgrade from previous ( manual version )
remove manual code added from postbit_legacy ( click save )
Then follow steps to Install the product-

Enjoy and thanks Jonty

Charlie98902 01-25-2010 01:11 AM

Nice I will look into this later.

scan-pa 01-25-2010 02:05 AM

This would be great if it could be used anywhere on the forums for IP lookup, like say adminCP doing new users awaiting moderation.

UpFriends 01-25-2010 02:16 AM

Quote:

Originally Posted by scan-pa (Post 1965776)
This would be great if it could be used anywhere on the forums for IP lookup, like say adminCP doing new users awaiting moderation.

+1 on that. Any chance of seeing this feature added?

TimberFloorAu 01-25-2010 02:52 AM

Perhaps Marco would be happy to combine it into his mod:

https://vborg.vbsupport.ru/showthread.php?t=232270

If you use this please click INSTALL

Makes it worthwhile doing FREE hacks then ;)

Dr.osamA 01-25-2010 06:23 AM

1 Attachment(s)
Hello my friend TimberFloorAu

Thanxx for this nice mod

I just held the following amendment see attachment
If you like the amendment plzzz add to the subject of an upgrade

in template forumhome_loggedinuser and Replace with tis cod

PHP Code:

   <li><vb:if condition="can_moderate()"><a href="http://www.dnsstuff.com/tools/ipall/?tool_id=67&token=&toolhandler_redirect=0&ip={vb:raw post.ip}" alt="YoBroMoFo IP Tracker" title="YoBroMoFo IP Tracker"target="_blank"><img src="images/site_icons/account.png" border="0"></a></vb:if>
{
vb:stylevar dirmark} <class="username" href="{vb:link member, {vb:raw loggedin}}">{vb:raw loggedin.musername}</a>{vb:raw loggedin.invisiblemark}{vb:raw loggedin.buddymark}</li

you well get it in loggedinuser in forumhome as it in pic in attachment :up:

installed + 5 stars
________
Interracial German

TimberFloorAu 01-25-2010 06:33 AM

Doesnt work, cos my code pulls raw user post id

Hornstar 01-25-2010 08:40 AM

What do I need to change to make this work for admins only?

TimberFloorAu 01-25-2010 09:05 AM

chnage code:

Code:

<!--yobromofo ip tracer-->
<vb:if condition="can_moderate()"><a href="http://www.dnsstuff.com/tools/ipall/?tool_id=67&token=&toolhandler_redirect=0&ip={vb:raw post.ip}" alt="YoBroMoFo IP Tracker" title="YoBroMoFo IP Tracker"target="_blank"><img src="images/site_icons/account.png" border="0"></a></vb:if>
<!--end of yobromofo ip tracer-->

to

Code:

<!--yobromofo ip tracer-->
<vb:if condition="$bbuserinfo['userid'] == 1"><a href="http://www.dnsstuff.com/tools/ipall/?tool_id=67&token=&toolhandler_redirect=0&ip={vb:raw post.ip}" alt="YoBroMoFo IP Tracker" title="YoBroMoFo IP Tracker"target="_blank"><img src="images/site_icons/account.png" border="0"></a></vb:if>
<!--end of yobromofo ip tracer-->

I think should work.

May well be:

$muserinfo

Big-Pete 01-25-2010 11:22 AM

Nice!! I used to do this manually (But using whatsmyipaddress), very good!! Installed


All times are GMT. The time now is 01:57 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01084 seconds
  • Memory Usage 1,763KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete