WestwegoMans' Forum

Computers, Websites & Forums => SMF Forum tips & tricks => Topic started by: WestwegoMan on Jan 23, 2015, 5:11 PM

Title: Add what is my ip address to ip links in SMF
Post by: WestwegoMan on Jan 23, 2015, 5:11 PM
Add what is my ip address to ip links in SMF

Add a link to whatsmyipaddress.com for ip checking.

in Sources\profile-view.php
find:
Code: [Select]
$context['whois_servers'] = array(
add after:
Code: [Select]
'whatisipaddress' => array(
'name' => &$txt['whatis_ipaddress'],
'url' => 'http://whatismyipaddress.com/ip/' . $context['ip'],
'range' => array(),
),

Then in Themes\default\languages\Profile.english.php
find:
Code: [Select]
$txt['whois_title'] = 'Look up IP on a regional whois-server';
And add after:
Code: [Select]
$txt['whatis_ipaddress'] = 'What is my IP address (Whatsmyipaddress.com)';
SimplePortal 2.3.6 © 2008-2014, SimplePortal