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

woffie 01-25-2010 02:51 PM

Real nice! Thanks!

TheSupportForum 01-25-2010 06:39 PM

$find = '';
$add_before = "". PHP_EOL;
$output = str_replace($find,$add_before.$find, $output);
}

i would liek to use

this with it

Code:

<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>

TimberFloorAu 01-25-2010 07:10 PM

Could you explain Simon. Sorry its early here in Brizzy and its "Australia Day" Yayyy

jonty 01-25-2010 07:27 PM

(not very well coded) change to show the external (proxy) IP if using Paul's Proxy to Real IP conversion (https://vborg.vbsupport.ru/showthread.php?t=231873).

Apologies if it's cheap and nasty.

PHP Code:

<!--yobromofo ip tracer-->
<
vb:if condition="can_moderate()">
   <
vb:if condition="$post['proxyip']==null">
      <
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:else />
      <
a href="http://www.dnsstuff.com/tools/ipall/?tool_id=67&token=&toolhandler_redirect=0&ip={vb:raw post.proxyip}" 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 of yobromofo ip tracer--> 


TheSupportForum 01-25-2010 08:21 PM

Quote:

Originally Posted by TimberFloorAu (Post 1966408)
Could you explain Simon. Sorry its early here in Brizzy and its "Australia Day" Yayyy



well in php you can you $find $add_before etc...

but not sure how to use it correctly

it will search for a code in vbulletin and place the code where you want it

MarceloS 01-26-2010 11:42 AM

Awesome. Please make ti show a map with the location of the ip. It would be perfect.

TimberFloorAu 01-26-2010 05:48 PM

Quote:

Originally Posted by MarceloS (Post 1966979)
Awesome. Please make ti show a map with the location of the ip. It would be perfect.

Add MAP version to instructions ( see attachments 1st post )

Enjoy.

Ste

TheSupportForum 01-26-2010 06:03 PM

REQUEST:

to turn this into a product.xml file

i would like to see this auto inserted into postbit_legacy
this wasy it can be removed by unistalling the product

TimberFloorAu 01-26-2010 06:17 PM

Our code is reusable, and if anyone wants to do a product for it, then please feel free. I have no idea how to make product.xml files

jonty 01-27-2010 12:56 PM

1 Attachment(s)
Quote:

Originally Posted by TimberFloorAu (Post 1967306)
Our code is reusable, and if anyone wants to do a product for it, then please feel free. I have no idea how to make product.xml files

I've created and attached one here.
I've never created one before, so any and all disclaimers apply :D

TimberFloorAu 01-27-2010 06:00 PM

Quote:

Originally Posted by jonty (Post 1967950)
I've created and attached one here.
I've never created one before, so any and all disclaimers apply :D

Looks good to me mate :up:

Have upgraded the mod accordingly, many thanks. Ste

TimberFloorAu 02-03-2010 06:03 PM

4th Feb 2010:

Updated Product Readme.
Updated GEO code
Re packaged Mod.

Mark Install if you use.

* PLEASE NOTE *

This is an either / or Hack.

Either: import the product ( you are done )

Or: do manual template edits as per readme. ( you are done )

Dont do Both !

gbechtel 02-03-2010 07:48 PM

This is only checking my ip... every user I check has my ip??? Anyone else having this issue?

TimberFloorAu 02-03-2010 08:12 PM

What version did you install? Product or Manual Template edits.

What version VB have you got.

gbechtel 02-03-2010 08:18 PM

(vBulletin 4.0.0 Patch Level 1https://vborg.vbsupport.ru/external/2010/02/73.jpg)

The issue was with Paul's Real IP Detection. When clicking on your mod I would get the new window and the URL would look like
HTML Code:

http://www.infosniper.net/index.php?ip_address=PROXYIP&map_source=1&two_maps=1&overview_map=1&lang=1&map_type=1&zoom_level=12
Even with Paul's mod disabled it would still say PROXYIP and default to who evers IP was clicking on your mod

After uninstalling Real IP Detection it now uses the posters real IP address

HTML Code:

http://www.infosniper.net/index.php?ip_address=151.203.XXX.XX&map_source=1&two_maps=1&overview_map=1&lang=1&map_type=1&zoom_level=12

TimberFloorAu 02-03-2010 08:26 PM

Ahh okies, perhaps Paul has updated his mod. Or there could be a glitch. Glad you got it working.

I and my MOD team think its the coolest feature EVER !

gbechtel 02-03-2010 08:31 PM

Quote:

Originally Posted by Dr.osamA (Post 1965927)
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

How would your addition work, it's not pulling a IP from a post if the link is on the forum home?

TimberFloorAu 02-03-2010 08:40 PM

Quote:

Originally Posted by gbechtel (Post 1974178)
How would your addition work, it's not pulling a IP from a post if the link is on the forum home?

This amendment does not work, as the users IP isnt parsed until they have posted. And as it is forum home, it doesnt actually function.

misericorde 10-16-2011 08:25 PM

Thank you

Installed

Nice

alhidaya 02-16-2012 08:51 PM

Hello,

It s ok for vb 4.1.1.0 ?


All times are GMT. The time now is 04:53 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.01337 seconds
  • Memory Usage 1,838KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_html_printable
  • (3)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete