Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
WOL - IP Whois Look Up Details »»
WOL - IP Whois Look Up
Version: 1.00, by BGN64 BGN64 is offline
Developer Last Online: Jul 2019 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.2.0 Rating:
Released: 09-07-2012 Last Update: Never Installs: 17
Template Edits
Re-useable Code  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
fookaa

Comments
  #2  
Old 09-08-2012, 01:51 PM
GhostHunter2010 GhostHunter2010 is offline
 
Join Date: Nov 2010
Location: London UK
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 09-08-2012, 03:31 PM
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Location: Scotland
Posts: 1,229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea. Thanks
Reply With Quote
  #4  
Old 08-03-2015, 01:05 PM
Darkman7030 Darkman7030 is offline
 
Join Date: Nov 2014
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:21 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03940 seconds
  • Memory Usage 2,247KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (1)post_thanks_box_bit
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete