Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Really simple Active Users mod, help me build it!
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

spyordie007
Junior Member

USA
408 Posts

Posted - 26 June 2003 :  16:07:58  Show Profile  Visit spyordie007's Homepage  Send spyordie007 an AOL message
Hey guys I thought I could do this myself because it's so simple but I dont know the code (or asp) well enough and I was hoping I could get someone's help with this.

I would like to alter my Active Users page so that when it displays the user's IP address it also links to a whois lookup (so I can see where they are visiting from). I already have the URL string that it would need to point to (http://ws.arin.net/cgi-bin/whois.pl?queryinput=IP) but just need to figure out how to get it to appear as a link. I would like to to be easy to change the URL to the whois lookup so it would be easy to change what whois server to use.

I tried encapsulating the IP address call on line 179 within a URL but that didnt work:
<a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=" & rsAM("AU_IP") & "" target="_blank">" & rsAM("AU_IP") & "</a>

I'm assuming my problem here is that I cant just put a link in like this.

Could anyone help me to get this to work?

Thanks!

-Spy

Power - The only narcotic controlled by the SEC, not the FDA.

Prosperity without pollution! The American Hydrogen Association - http://www.ahanw.org
Questions about Hydrogen? Post them on our forum - http://www.ahanw.org/forum

samyot
Junior Member

Canada
242 Posts

Posted - 26 June 2003 :  16:20:52  Show Profile  Visit samyot's Homepage  Send samyot a Yahoo! Message
Hi,

This is what I did:

response.write " <td bgcolor=""" & CColor & """ align=center valign=middle nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """><a href=http://ws.arin.net/cgi-bin/whois.pl?queryinput=" & rsAM("AU_IP") & ">" & rsAM("AU_IP") & "</font></td>" & VBNewLine

Sylvain Amyot
Forum | Home

MY OTHER SITES:
http://www.mypcsecurity.ca
http://www.mynature.ca
http://www.myworkshop.ca
http://www.toptechsites.com
http://www.topsportsites.com
http://www.mysportsforums.net
Go to Top of Page

spyordie007
Junior Member

USA
408 Posts

Posted - 26 June 2003 :  16:30:01  Show Profile  Visit spyordie007's Homepage  Send spyordie007 an AOL message
that was it thanks, I just added in the target (target=_blank)

-Spy

Power - The only narcotic controlled by the SEC, not the FDA.

Prosperity without pollution! The American Hydrogen Association - http://www.ahanw.org
Questions about Hydrogen? Post them on our forum - http://www.ahanw.org/forum
Go to Top of Page

spyordie007
Junior Member

USA
408 Posts

Posted - 26 June 2003 :  16:33:00  Show Profile  Visit spyordie007's Homepage  Send spyordie007 an AOL message
hmm, it stopped working immediatly after I pasted the same code on line 224 (IP addresses for guests) what should be changed for that line?

-Spy

Power - The only narcotic controlled by the SEC, not the FDA.

Prosperity without pollution! The American Hydrogen Association - http://www.ahanw.org
Questions about Hydrogen? Post them on our forum - http://www.ahanw.org/forum
Go to Top of Page

spyordie007
Junior Member

USA
408 Posts

Posted - 26 June 2003 :  16:41:46  Show Profile  Visit spyordie007's Homepage  Send spyordie007 an AOL message
The error when I add in the exact same thing on line 224 (listing of guests):
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'rsAM'
/forum/active_users.asp, line 224


Nevermind that it lists their IP just fine if I leave it:
" & rsAM("AU_IP") & "

-Spy

Power - The only narcotic controlled by the SEC, not the FDA.

Prosperity without pollution! The American Hydrogen Association - http://www.ahanw.org
Questions about Hydrogen? Post them on our forum - http://www.ahanw.org/forum
Go to Top of Page

spyordie007
Junior Member

USA
408 Posts

Posted - 26 June 2003 :  16:46:12  Show Profile  Visit spyordie007's Homepage  Send spyordie007 an AOL message
Nevermind I figured it out, it's supposed to be rsAG for the guests, so if anyone else wants to do this replace line 179:
response.write "                <td bgcolor=""" & CColor & """ align=center valign=middle nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """>" & rsAM("AU_IP") & "</font></td>" & VBNewLine

with this:
response.write "                <td bgcolor=""" & CColor & """ align=center valign=middle nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """><a href=http://ws.arin.net/cgi-bin/whois.pl?queryinput=" & rsAM("AU_IP") & " target=_blank>" & rsAM("AU_IP") & "</font></td>" & VBNewLine

And also replace line 224:
response.write "                <td bgcolor=""" & CColor & """ align=center valign=middle nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """>" & rsAG("AU_IP") & "</font></td>" & VBNewLine

with this:
response.write "                <td bgcolor=""" & CColor & """ align=center valign=middle nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """><a href=http://ws.arin.net/cgi-bin/whois.pl?queryinput=" & rsAG("AU_IP") & " target=_blank>" & rsAG("AU_IP") & "</font></td>" & VBNewLine


Cheers!

-Spy

Power - The only narcotic controlled by the SEC, not the FDA.

Prosperity without pollution! The American Hydrogen Association - http://www.ahanw.org
Questions about Hydrogen? Post them on our forum - http://www.ahanw.org/forum
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.43 seconds. Powered By: Snitz Forums 2000 Version 3.4.07