Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: Dave J on March 01, 2024, 03:43:24 AM

Title: RIPE whois not working on any SMF sites I'm admin on!
Post by: Dave J on March 01, 2024, 03:43:24 AM
See attachment of what happens when looking up an IP with RIPE

Early last year I changed the Ripe search option for 'IPLOCATION (Europe, the Middle East and parts of Africa and Asia)' the reason for this is because the results from Ripe were very minimal.

For those who want to change also here's how.

Backup first.

Sources>Profile.View.php

find

'ripe' => array(
                'name' => $txt['whois_ripe'],
                'url' => 'https://apps.db.ripe.net/search/query.html?searchtext=' . $context['ip'],

replace with

            'iplocation' => array(
                'name' => $txt['whois_iplocation'],
                'url' => 'http://www.iplocation.net/?query=' . $context['ip'],

Default>languages>Profile.English.php

Find

$txt['whois_ripe'] = 'RIPE (Europe, the Middle East and parts of Africa and Asia)';
replace with

$txt['whois_iplocation'] = 'IPLOCATION (Europe, the Middle East and parts of Africa and Asia)';
One last thing is that you would not need any of the other IP options as IPlocation does worldwide.

As I previously said I've been using this for quite some time and the results are quite comprehensive.