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/Code)
 Another Ban IP Mod
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

DHT
Starting Member

37 Posts

Posted - 27 May 2001 :  20:24:18  Show Profile
I hope this one is easier to setup than Davio's version :)

You need insert only 2 lines into the file that you want to block. I setup this Mod to block Users want to Post or Reply only. But you can setup it in other features as you like.

A little bit trouble that when you add line <% end if %> at the end page, you must test this line should go before or after line <!--#INCLUDE FILE="inc_footer.asp" -->. I don't know why ! But it works.

You can block a class C by using * .
For Ex: 255.255.255.*

The Admin Configuration is easier to maintain.

Hope you enjoy this Mod.

Download Mod at : http://www.vnvntest.com/BanIPMod.zip


Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 29 May 2001 :  09:13:45  Show Profile
Put this on, real simple to add, just a bit of coding incorrect in the admin_config_banIP.asp file. Refers to admin_config_ipbanned.asp where it needs this admin_config_banIP.asp. It is located in 2 places. Thought that you might like to know.

quote:

I hope this one is easier to setup than Davio's version :)

You need insert only 2 lines into the file that you want to block. I setup this Mod to block Users want to Post or Reply only. But you can setup it in other features as you like.

A little bit trouble that when you add line <% end if %> at the end page, you must test this line should go before or after line <!--#INCLUDE FILE="inc_footer.asp" -->. I don't know why ! But it works.

You can block a class C by using * .
For Ex: 255.255.255.*

The Admin Configuration is easier to maintain.

Hope you enjoy this Mod.

Download Mod at : http://www.vnvntest.com/BanIPMod.zip






Regards,

Webmaster @ Classic Motor Cycling
Classic Motor Cycling
Go to Top of Page

DHT
Starting Member

37 Posts

Posted - 29 May 2001 :  13:32:15  Show Profile
Ooppss! Sorry for that mess up :) It already fixed.

Thank you.

Go to Top of Page

krillin47
Starting Member

USA
20 Posts

Posted - 01 June 2001 :  11:28:15  Show Profile
I'm getting this message everytime I try to go to post a message

quote:
ADODB.Recordset error '800a0bb9'

The application is using arguments that are of the wrong type, are out of acceptable range, or are in conflict with one another.

/inc_banIP.asp, line 14



If anyone can help me, that would be great.

Go to Top of Page

DHT
Starting Member

37 Posts

Posted - 01 June 2001 :  18:32:10  Show Profile
In the Post.asp file, you need to add line <!--#INCLUDE FILE="inc_banIP.asp" --> after line <!--#INCLUDE FILE="inc_top.asp" -->

In my sample Post.asp, I move line <!--#INCLUDE FILE="inc_top.asp" --> to the top. In the original asp, you must roll down few lines to get it.



Edited by - DHT on 01 June 2001 18:37:05
Go to Top of Page

krillin47
Starting Member

USA
20 Posts

Posted - 01 June 2001 :  21:25:37  Show Profile
quote:

In the Post.asp file, you need to add line <!--#INCLUDE FILE="inc_banIP.asp" --> after line <!--#INCLUDE FILE="inc_top.asp" -->

In my sample Post.asp, I move line <!--#INCLUDE FILE="inc_top.asp" --> to the top. In the original asp, you must roll down few lines to get it.



Edited by - DHT on 01 June 2001 18:37:05



I did that and it came up with this

quote:

Microsoft VBScript compilation error '800a0411'

Name redefined

/inc_top.asp, line 39

dim mLev, strLoginStatus
----^



Go to Top of Page

krillin47
Starting Member

USA
20 Posts

Posted - 01 June 2001 :  21:31:17  Show Profile
well I figured out that problem, but I have this one now.

quote:

ADODB.Recordset error '800a0bb9'

The application is using arguments that are of the wrong type, are out of acceptable range, or are in conflict with one another.

/inc_banIP.asp, line 14



and this is what I have on line 13 and 14 of that file.

quote:

set rsIP = Server.Createobject("ADODB.recordset")
rsIP.open "SELECT * FROM FORUM_BANNED", my_Conn



Go to Top of Page

DHT
Starting Member

37 Posts

Posted - 01 June 2001 :  23:51:27  Show Profile
There are two reasons may have from your error:
- Database (= my_Conn) has not exist.
- or table FORUM_BANNED has not exist.

my_Conn is defined in inc_top.asp; that's why you have to add after include file=inc_top.asp

Can you check the table FORUM_BANNED exists in the database or not ? I tested this mod with Access database only !

Go to Top of Page

hawkster
Starting Member

4 Posts

Posted - 05 June 2001 :  14:38:11  Show Profile
I get this error when I run the mod_dbsetup.asp


Banned Mod

Creating table(s)...
CREATE TABLE FORUM_BANNED( B_ID COUNTER CONSTRAINT PrimaryKey PRIMARY KEY , B_IP#varchar (20)#NULL# NOT NULL , B_REASON#varchar(200)#NULL# NOT NULL )
-2147217900 | Syntax error in field definition.

--------------------------------------------------------------------------------



Where did I screw up?




Go to Top of Page

DHT
Starting Member

37 Posts

Posted - 05 June 2001 :  21:30:37  Show Profile
I guess you're using the different version of mod_dbsetup with the one I have. Try to download the one I'm using now: http://www.vnvntest.com/mod_dbsetup.zip

How about you add dirrectly table FORUM_BANNED into database ? If you use Access Database, it's simple to add.

Go to Top of Page

krillin47
Starting Member

USA
20 Posts

Posted - 06 June 2001 :  00:38:23  Show Profile
if that doesn't work, try downloading this file, and putting it into the directory, and then running the mod_dbsetup.asp page

http://www.not-found.net/bannedIP.dbs

I Edited the dbs file, and got it to work, for some reason when it has the # in the file it doesn't work, so I put ; instead of #.

Edited by - krillin47 on 06 June 2001 00:39:15
Go to Top of Page

hawkster
Starting Member

4 Posts

Posted - 06 June 2001 :  08:36:44  Show Profile
quote:

I guess you're using the different version of mod_dbsetup with the one I have. Try to download the one I'm using now: http://www.vnvntest.com/mod_dbsetup.zip

How about you add dirrectly table FORUM_BANNED into database ? If you use Access Database, it's simple to add.





This didn't work. Got an error saying "Page cannot be displayed"


quote:

if that doesn't work, try downloading this file, and putting it into the directory, and then running the mod_dbsetup.asp page

http://www.not-found.net/bannedIP.dbs

I Edited the dbs file, and got it to work, for some reason when it has the # in the file it doesn't work, so I put ; instead of #.

Edited by - krillin47 on 06 June 2001 00:39:15



Now, this worked! Thanks a lot.

Go to Top of Page

hawkster
Starting Member

4 Posts

Posted - 06 June 2001 :  08:38:03  Show Profile
quote:

I guess you're using the different version of mod_dbsetup with the one I have. Try to download the one I'm using now: http://www.vnvntest.com/mod_dbsetup.zip

How about you add dirrectly table FORUM_BANNED into database ? If you use Access Database, it's simple to add.





This didn't work. Got an error saying "Page cannot be displayed"


quote:

if that doesn't work, try downloading this file, and putting it into the directory, and then running the mod_dbsetup.asp page

http://www.not-found.net/bannedIP.dbs

I Edited the dbs file, and got it to work, for some reason when it has the # in the file it doesn't work, so I put ; instead of #.

Edited by - krillin47 on 06 June 2001 00:39:15



Now, this worked! Thanks a lot.

Go to Top of Page

krillin47
Starting Member

USA
20 Posts

Posted - 06 June 2001 :  21:01:54  Show Profile
No Problem. I was just messing around, and it was bugging me that I couldn't get it to work, so I looked into the files that I had, and made the file how the ones that worked did. Glad I could help.

kRiLLiN47

Go to Top of Page

IoNPhLuX
Starting Member

6 Posts

Posted - 24 June 2001 :  23:18:22  Show Profile
I made some changes!!

In the Inc_Top.asp
At the bottom include this line:
<!--#INCLUDE FILE="inc_banIP.asp"-->
Make sure you remove the other stuff DHT did adding all the include files in all the files you want protected.

Open inc_banip.asp, Underneath Else
Put: End If

And there you go, it will protect everything.
If you have a problem email me and i will help you out!

Go to Top of Page

IoNPhLuX
Starting Member

6 Posts

Posted - 24 June 2001 :  23:33:22  Show Profile
Ok Oops

In admin_config_banip.asp
<!--#INCLUDE FILE="inc_top.asp"-->
Change To:
<!--#INCLUDE FILE="inc_top-BanMod.asp"-->

And then open inc_top.asp then where we added the <!--#INCLUDE FILE="inc_banip.asp"--> Delete it! Then Save As: inc_top-BanMod.asp

If you don't make this change you will get this:
Microsoft VBScript compilation error '800a0411'

Name redefined

admin_config_banIP.asp, line 45

Dim rsIP
----^



Edited by - IoNPhLuX on 24 June 2001 23:35:41

Edited by - IoNPhLuX on 24 June 2001 23:36:55
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.46 seconds. Powered By: Snitz Forums 2000 Version 3.4.07