vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - WOL - IP Whois Look Up (https://vborg.vbsupport.ru/showthread.php?t=287612)

BGN64 09-07-2012 10:00 PM

WOL - IP Whois Look Up
 
1 Attachment(s)
This a very small template edit that shows a link to a Whois look up of the user IP on WOL. Something I had with my old forum software before migrating to vB... I missed it!

Go To: AdminCP>Edit templates>WHOSONLINE

Find:
Code:

              <vb:if condition="$userinfo['show']['ip']">
                <td class="whoinfo">
                  <vb:if condition="$userinfo['show']['ajax_resolve']">
                    <a href="online.php?{vb:raw session.sessionurl}do=resolveip&amp;ipaddress={vb:raw userinfo.host_encoded}" id="resolveip_{vb:raw count}" title="{vb:rawphrase resolve_ip_address}">{vb:raw userinfo.host}</a>
                  <vb:else />
                    {vb:raw userinfo.host}
                  </vb:if>

Add Code in RED:
Code:

              <vb:if condition="$userinfo['show']['ip']">
                <td class="whoinfo">
                  <vb:if condition="$userinfo['show']['ajax_resolve']">
                    <a href="online.php?{vb:raw session.sessionurl}do=resolveip&amp;ipaddress={vb:raw userinfo.host_encoded}" id="resolveip_{vb:raw count}" title="{vb:rawphrase resolve_ip_address}">{vb:raw userinfo.host}</a> - <a href="http://whois.domaintools.com/{vb:raw userinfo.host}" target="_blank">Whois</a>
                  <vb:else />
                    {vb:raw userinfo.host}
                  </vb:if>

Again, super simple, and something I wanted for myself and thought some other non-coders like me might be interested in. If any one knows of a mod that provides a whois look up similar to this please let me know. I would love to install it instead of editing the template :)

GhostHunter2010 09-08-2012 01:51 PM

well i dont need to test this :) but i know how it works i use to have it long time ago :) an im sure it works fine

Gemma 09-08-2012 03:31 PM

Nice idea. Thanks :)

Darkman7030 08-03-2015 01:05 PM

Thanks


All times are GMT. The time now is 09:17 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.00967 seconds
  • Memory Usage 1,716KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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