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)
 Help debugging AU mod
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

StephenD
Senior Member

Australia
1044 Posts

Posted - 06 June 2003 :  00:48:50  Show Profile  Send StephenD a Yahoo! Message
Can someone please help me debug the following 2 lines from Active_users.asp

I've tried to modify it so that it will jump directly to an IP search.

Around line 180...
response.write "                <td bgcolor=""" & CColor & """ align=center valign=middle nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """><a href=""http://www.dnsstuff.com/tools/whois.ch?ip=""" target="_blank"">http://www.dnsstuff.com/ns-lookup.shtml?ip=</a>" & ChkString(rsAM("AU_IP"), "display") & """ target=""_blank"">" & ChkString(rsAM("AU_IP"), "display") & "</a></font></td>" & VBNewLine


and around line 225...
response.write "                <td bgcolor=""" & CColor & """ align=center valign=middle nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """><a href=""<a href="http://www.dnsstuff.com/tools/whois.ch?ip=" target="_blank">http://www.dnsstuff.com/ns-lookup.shtml?ip=</a>" & ChkString(rsAG("AU_IP"), "display") & """ target=""_blank"">" & ChkString(rsAG("AU_IP"), "display") & "</a></font></td>" & VBNewLine


Kind regards

Steve D.
Average Member

USA
640 Posts

Posted - 06 June 2003 :  01:07:40  Show Profile  Visit Steve D.'s Homepage  Send Steve D. a Yahoo! Message
what's does the url that you need look like? It appears as though you've pasted some info in the wrong place? And what do you want the link to read?

Swing Dancing Video Clips - It's All Swing! Forum
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 06 June 2003 :  01:16:01  Show Profile  Send StephenD a Yahoo! Message
I'm trying to get a url setup in the active users page table so that when you hit the IP address displayed for a guest/visitor it will allow you to run the IP search without having to open Neotrace or go to the site directly and paste in the IP. Hope I'm making sense.
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 06 June 2003 :  01:26:23  Show Profile  Send StephenD a Yahoo! Message
I get you .. the first link http://www.dnsstuff.com/tools/whois.ch?ip= is the one I should be using.

response.write "                <td bgcolor=""" & CColor & """ align=center valign=middle nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """><a href=""http://www.dnsstuff.com/tools/whois.ch?ip=""" target="_blank"">http://www.dnsstuff.com/tools/whois.ch?ip=</a>" & ChkString(rsAM("AU_IP"), "display") & """ target=""_blank"">" & ChkString(rsAM("AU_IP"), "display") & "</a></font></td>" & VBNewLine


response.write "                <td bgcolor=""" & CColor & """ align=center valign=middle nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """><a href=""<a href="http://www.dnsstuff.com/tools/whois.ch?ip=" target="_blank">http://www.dnsstuff.com/tools/whois.ch?ip=</a>" & ChkString(rsAG("AU_IP"), "display") & """ target=""_blank"">" & ChkString(rsAG("AU_IP"), "display") & "</a></font></td>" & VBNewLine


Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 06 June 2003 :  05:38:49  Show Profile  Visit masterao's Homepage
You forgot to add the ip-variable to the actual url. I've marked the addition green in the code below.

quote:
Originally posted by StephenD


response.write "                <td bgcolor=""" & CColor & """ align=center valign=middle nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """><a href=""http://www.dnsstuff.com/tools/whois.ch?ip=" & ChkString(rsAM("AU_IP"), "display") & """ target="_blank"">http://www.dnsstuff.com/tools/whois.ch?ip=</a>" & ChkString(rsAM("AU_IP"), "display") & """ target=""_blank"">" & ChkString(rsAM("AU_IP"), "display") & "</a></font></td>" & VBNewLine


response.write "                <td bgcolor=""" & CColor & """ align=center valign=middle nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """><a href=""<a href="http://www.dnsstuff.com/tools/whois.ch?ip=" & ChkString(rsAG("AU_IP"), "display") & """ target="_blank">http://www.dnsstuff.com/tools/whois.ch?ip=</a>" & ChkString(rsAG("AU_IP"), "display") & """ target=""_blank"">" & ChkString(rsAG("AU_IP"), "display") & "</a></font></td>" & VBNewLine



Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

Steve D.
Average Member

USA
640 Posts

Posted - 06 June 2003 :  10:03:09  Show Profile  Visit Steve D.'s Homepage  Send Steve D. a Yahoo! Message
close, but there is an extra </a>

http://www.dnsstuff.com/tools/whois.ch?ip=</a>"

remove that from both lines also

Swing Dancing Video Clips - It's All Swing! Forum
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 06 June 2003 :  11:15:27  Show Profile  Visit masterao's Homepage
Not only was there an extra </a>-tag as Steve D. said, there were more faulty code as well.

The following code works for me atleast:


response.write "                <td bgcolor=""" & CColor & """ align=""center"" valign=""middle"" nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """><a href=""http://www.dnsstuff.com/tools/whois.ch?ip=" & ChkString(rsAM("AU_IP"), "display") & """ target=""_blank"">http://www.dnsstuff.com/tools/whois.ch?ip=" & ChkString(rsAM("AU_IP"), "display") & "</a></font></td>" & VBNewLine


response.write "                <td bgcolor=""" & CColor & """ align=center valign=middle nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """><a href=""http://www.dnsstuff.com/tools/whois.ch?ip=" & ChkString(rsAG("AU_IP"), "display") & """ target=""_blank"">http://www.dnsstuff.com/tools/whois.ch?ip=" & ChkString(rsAG("AU_IP"), "display") & "</a></font></td>" & VBNewLine

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 06 June 2003 :  22:01:28  Show Profile  Send StephenD a Yahoo! Message
Excellent, thank you very much guys.
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 07 June 2003 :  07:08:47  Show Profile  Visit masterao's Homepage
You're welcome .

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
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.62 seconds. Powered By: Snitz Forums 2000 Version 3.4.07