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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Ban IP Mod - error when calling it
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ra1ney
Junior Member

United Kingdom
113 Posts

Posted - 31 May 2002 :  08:31:55  Show Profile
I had the ‘Ban IP’ mod installed, but have since redesigned my site and removed the login from inc_top and moved it to it’s own file, I keep getting an error when calling the mod. Everything seems to be working fine without the ban ip code added to inc_top, but when I add it I get an error on this line ‘Call banIP()’. I think it must be something to do with me removing the login and navigation info, but I don’t know what??? I have tried moving it around a bit, but it hasn’t helped - can anyone help me get this working again, please :o)

Many thanks

Ra1ney

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 31 May 2002 :  10:50:42  Show Profile
And you're missing the most important piece of information. What is the error???

«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !
Go to Top of Page

Ra1ney
Junior Member

United Kingdom
113 Posts

Posted - 31 May 2002 :  14:42:36  Show Profile
Oop! Sorry Davio

If I add the ban IP code I get this error when I try to view any page:

Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'banIP'
/interactive/inc_top.asp, line 78

Line 78 is: Call banIP()



quote:

And you're missing the most important piece of information. What is the error???

«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !




Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 31 May 2002 :  18:53:46  Show Profile
It means you are missing the BanIP() subroutine that should be in the inc_top.asp file.

«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !
Go to Top of Page

Ra1ney
Junior Member

United Kingdom
113 Posts

Posted - 01 June 2002 :  06:01:21  Show Profile
Line 78 is the Call banIP(). There are only 2 inclusions indicated in the Ban IP mod for inc_top, I have included both but this error is what I get . That's why I wondered if playing around with the rest of my inc_top has caused this because there didn't seem to be a problem before. In the original ban IP inc_top file, the first piece of code goes on line 78 (the same as in my file), the rest of the code goes in just underneath the forum navigation. I have removed my forum nav and used the code elsewhere, so I have simply put the second piece of Ban IP code at the bottom of my inc_top, but clearly it's not working. Should the code be in with the forum navigation code instead?? I have tried putting it at the bottom of my forum nav, but it still doesn't work, any other suggestions?

Thanks


quote:

It means you are missing the BanIP() subroutine that should be in the inc_top.asp file.

«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !




Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 01 June 2002 :  07:30:09  Show Profile
The error means it cannot find it. Yes, it's Calling the Banip() sub, but it can't find it.

Post a link to a txt version of your inc_top.asp file and I'll take a look at it.

«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !
Go to Top of Page

Ra1ney
Junior Member

United Kingdom
113 Posts

Posted - 01 June 2002 :  16:36:00  Show Profile
Thanks Davio!

Here is the link...but it's free hosting and has been down for a while (seems to be okay now) http://www.websamba.com/petsinthecity/inc_top.txt

Let me know if you have any problems viewing it and I'll send it to you.

Thanks again

quote:

The error means it cannot find it. Yes, it's Calling the Banip() sub, but it can't find it.

Post a link to a txt version of your inc_top.asp file and I'll take a look at it.

«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !




Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 01 June 2002 :  18:15:03  Show Profile
I don't see anything in your inc_top.txt file about the BanIP mod. Have you put the code in one of the included files?

«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !
Go to Top of Page

Ra1ney
Junior Member

United Kingdom
113 Posts

Posted - 01 June 2002 :  18:27:37  Show Profile
Sorry! I'm such a dim-wit!! I put up the working file - Doh! I will add the code and put it back up now...this minute...no, this very second

Sorry again...!
quote:

I don't see anything in your inc_top.txt file about the BanIP mod. Have you put the code in one of the included files?

«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !




Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 01 June 2002 :  19:35:26  Show Profile
You're missing the code in red:
    <td width=100%>

<%' ########################### Ban IP Mod ###############################
sub banIP()


«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !
Go to Top of Page

Ra1ney
Junior Member

United Kingdom
113 Posts

Posted - 02 June 2002 :  05:46:03  Show Profile
Thanks Davio, it worked!!!! I thought it'd probably be something simple like that... but as you can tell, I don't know a lot about this coding lark - I am learning though (slowly...) '<%' seem to go at the beginning and end of functions (is that correct?), but that piece of code in the mod file didn't have one at the start and still worked, would it have been using the open (<%) from the code above it (previously the forum nav)? How come it didn't have one of it's own in the original code? Sorry about the extra questions, just trying to understand

Much gratitude

Ra1ney

quote:


You're missing the code in red:
    <td width=100%>

<%' ########################### Ban IP Mod ###############################
sub banIP()


«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !




Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 02 June 2002 :  22:21:20  Show Profile
These tags <% %> are the opening and closing tags for the VBScript. It is needed to seperate the HTML from the VBScript. Since the Forum Nav was VBScript it already had an opening tag. The BanIP sub just came after it. It didn't need the opening tag again.

But since you added the BanIP sub after some HTML you need to use an opening ASP tag to tell the server that what comes next is VBScript and not HTML.

«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !
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.41 seconds. Powered By: Snitz Forums 2000 Version 3.4.07