Welcome, Guest. Please Login or Register.
November 02, 2024, 11:32:09 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [DONE 1.5.3/4] Euro/International Whois « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: [DONE 1.5.3/4] Euro/International Whois  (Read 5155 times)
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

[DONE 1.5.3/4] Euro/International Whois
« on: June 01, 2003, 08:07:23 PM »
Reply with quote

Hi,

99% of my users are from the UK and as such the IP function that refers to the NIC whois database doesnt have the info, and I have to manually go to the RIPE site to get it.

Here is a quick code replace that will switch your site to the RIPE  whois.


<edit Display.php>

<search>
$ipInfo = '<a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . $mip . '" target="_blank"><img src="' . $imagesdir . '/ip.gif" alt="" border="0" /> ' . $mip . '</a>';
</search>


<replace>
$ipInfo = '<a href="http://www.ripe.net/perl/whois?form_type=simple&full_query_string=&searchtext=' . $mip .'&do_search=Search'. '" target="_blank"><img src="' . $imagesdir . '/ip.gif" alt="" border="0" /> ' . $mip . '</a>';
</replace>

</edit>


Its such a small change, and doesnt interfere with anything else - so I have declared it 'Done'


I have also created a MOD that can be got from:

Click Here
« Last Edit: September 17, 2003, 08:41:54 AM by Coyote » Logged

To the world - you are just one person, but to one person you are the world!
::cyber::
Noobie
*
Posts: 12


I'm [i]not[/i] a llama!

ICQ - 36388783ben_sloan@hotmail.com WWW
Re:[Code 1.5.x Done] European Whois (Ripe)
« Reply #1 on: June 06, 2003, 10:02:41 PM »
Reply with quote

That's a great mod.. from posts.

However, you need some code to change the clickable link from within profiles, as well =)

Cheeeers
Logged
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Code 1.5.x Done] European Whois (Ripe)
« Reply #2 on: June 06, 2003, 10:07:52 PM »
Reply with quote

Ok, Ill add it.... give me a little while, just finishing something off and then I'll post up the code for it.

Thanks for letting me know.

Logged

To the world - you are just one person, but to one person you are the world!
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Code 1.5.x Done] European Whois (Ripe)
« Reply #3 on: June 06, 2003, 10:36:54 PM »
Reply with quote

<edit Sources/Display.php>

<search>
$ipInfo = '<a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . $mip . '" target="_blank"><img src="' . $imagesdir . '/ip.gif" alt="" border="0" /> ' . $mip . '</a>';
</search>

<replace>
$ipInfo = '<a href="http://www.ripe.net/perl/whois?form_type=simple&full_query_string=&searchtext=' . $mip .'&do_search=Search'. '" target="_blank"><img src="' . $imagesdir . '/ip.gif" alt="" border="0" /> ' . $mip . '</a>';
</replace>

<edit Sources/Profile.php>

<search>
<font size="2"><a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . $memberIP . '" target="_blank">' . $memberIP . '</a></font>
</search>

<replace>
<font size="2"><a href="http://www.ripe.net/perl/whois?form_type=simple&full_query_string=&searchtext=' . $memberIP .'&do_search=Search'. '" target="_blank">'.$memberIP.'</a></font>
</replace>

</edit>


Thanks Cyber,

This now works in messages and in profiles.

If I have missed anything, please let me know.

Its pretty small, and probably not worth making a full mod out of it, If I add anymore then I will probably make a small mod out of it.



Logged

To the world - you are just one person, but to one person you are the world!
Aquilo
The Black Llama
Sr. Member
****
Posts: 416


Would'nt you like to be a llama too?

WWW
Re:[Code 1.5.x Done] European Whois (Ripe)
« Reply #4 on: June 07, 2003, 08:14:11 AM »
Reply with quote

is there a way to tell which whois database is responsible for an ip range?? this would be great if YaBB could place the right link! I will look in to it because this would be handy since my boards are not aimed geographically.

Aquilo
Logged

[td][/td]
[td]
[/td][td][/td][/table]
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Code 1.5.x Done] European Whois (Ripe)
« Reply #5 on: June 07, 2003, 10:03:56 AM »
Reply with quote

I thought about that :) but not sure if introducing more queries would slow things down.

I also thought about having little flags - ie one for the States/NIC and one for the European Union.

Logged

To the world - you are just one person, but to one person you are the world!
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[Code 1.5.x Done] European Whois (Ripe)
« Reply #6 on: June 07, 2003, 04:53:10 PM »
Reply with quote

Yeah, if you check the range the ip is in you should be able to determine whether to use NIC or RIPE.
Logged

Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Code 1.5.x done] European Whois (Ripe)
« Reply #7 on: June 07, 2003, 11:29:48 PM »
Reply with quote

Ok,

Ive done a little research.

From what I have found out, there are 4 main internet registries......

These being.....

RIPE NCC
Réseaux IP Européens Network Coordination Centre
http://www.ripe.net
 
ARIN
American Registry for Internet Numbers
http://www.arin.net
 
APNIC
Asia Pacific Network Information Centre
http://www.apnic.net
 
LACNIC
Latin American and Caribbean IP address Regional Registry
http://lacnic.net



Each registry holds numbers on each contry - they are distributed like this......

http://www.ripe.net/ripencc/mem-services/general/rir-areas.html




Aquilo, you mentioned looking into this - are you gonna write the mod? as I would like to, although I dont have alot of time at the moment.

If you dont wish to, then I will continue it although this 'Enhanced' Whois mod may take a couple of weeks to finish.

Let me know ;)



« Last Edit: June 07, 2003, 11:30:19 PM by Coyote » Logged

To the world - you are just one person, but to one person you are the world!
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Code 1.5.x Done] European Whois (Ripe)
« Reply #8 on: June 08, 2003, 11:50:24 AM »
Reply with quote

Well, I have been playing/researching today and I have something almost working.

It will be a new function in Subs.php and wont require use of the DB.
Logged

To the world - you are just one person, but to one person you are the world!
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Code 1.5.x Done] European Whois (Ripe)
« Reply #9 on: June 08, 2003, 02:56:33 PM »
Reply with quote

I have a completed version that looks up the relevent registry and outputs the result using the YaBB Template.

I will package it up tonight and maybe even do a yabb pack version.

This is my first mod - so go easy on me ;)


Logged

To the world - you are just one person, but to one person you are the world!
Aquilo
The Black Llama
Sr. Member
****
Posts: 416


Would'nt you like to be a llama too?

WWW
Re:[Code 1.5.x Done] European Whois (Ripe)
« Reply #10 on: June 08, 2003, 03:37:07 PM »
Reply with quote

damn! go Coyote! that was fast!! :o

sorry I didn't respond earler but I had to work and go
had it anyway!! ;D

Aquilo
Logged

[td][/td]
[td]
[/td][td][/td][/table]
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Code 1.5.x Done] European Whois (Ripe)
« Reply #11 on: June 08, 2003, 09:39:07 PM »
Reply with quote

I lost a hard drive so am a little behind :(

Should have it wrapped up for tomorrow night ;)

Logged

To the world - you are just one person, but to one person you are the world!
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[Code 1.5.x Done] European Whois (Ripe)
« Reply #12 on: June 08, 2003, 10:58:41 PM »
Reply with quote

From Gobalopper

QuoteAren't there places out there that do the translations themselves?

I *think* this one does:
http://all-nettools.com/cgi-bin/sw.cgi?p=ip.ad.d.ress
Logged

Aquilo
The Black Llama
Sr. Member
****
Posts: 416


Would'nt you like to be a llama too?

WWW
Re:[Code 1.5.x Done] European Whois (Ripe)
« Reply #13 on: June 09, 2003, 04:18:49 AM »
Reply with quote

Quote from: David on June 08, 2003, 10:58:41 PM
From Gobalopper

QuoteAren't there places out there that do the translations themselves?

I *think* this one does:
http://all-nettools.com/cgi-bin/sw.cgi?p=ip.ad.d.ress
um... DANG!!! :o
they do all the ISP tracing for ya too! 8)
although I thought the user was from Ireland, could someone from Ireland have an ISP in london "Tiscali UK"??

I like that, thanks David!

Aquilo
Logged

[td][/td]
[td]
[/td][td][/td][/table]
Ben_S
Disciple of Joe
Support Team
YaBB God
*****
Posts: 1586


I Love YaBB SE!

WWW
Re:[Code 1.5.x Done] European Whois (Ripe)
« Reply #14 on: June 09, 2003, 03:04:01 PM »
Reply with quote

Quote from: Aquilo on June 09, 2003, 04:18:49 AM
could someone from Ireland have an ISP in london "Tiscali UK"??

yes
Logged
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [DONE 1.5.3/4] Euro/International Whois « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.059 seconds with 20 queries.