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)
 MOD: Ban Users by IP
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 7

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 24 March 2001 :  18:16:13  Show Profile
New Topic Here: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=17296

MisterVB
Junior Member

274 Posts

Posted - 24 March 2001 :  18:20:56  Show Profile  Visit MisterVB's Homepage
the link is dead
... I just changed the asp ending to zip... Might want to fix that.


Edited by - MisterVB on 24 March 2001 18:23:51
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 March 2001 :  18:35:14  Show Profile
Davio, I fixed the link in your post above.
Go to Top of Page

MisterVB
Junior Member

274 Posts

Posted - 24 March 2001 :  18:57:07  Show Profile  Visit MisterVB's Homepage
i installed it and got this error... New so i don't know what it is telling me....

Adding Column...
ALTER TABLE FORUM_CONFIG ADD COLUMN C_BAN_IP text(255) NULL DEFAULT 000.000.000.000|
-2147467259 | Syntax error in number in table-level validation expression.


Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 24 March 2001 :  19:14:05  Show Profile  Visit rick7165's Homepage
I got the same error


quote:

i installed it and got this error... New so i don't know what it is telling me....

Adding Column...
ALTER TABLE FORUM_CONFIG ADD COLUMN C_BAN_IP text(255) NULL DEFAULT 000.000.000.000|
-2147467259 | Syntax error in number in table-level validation expression.






Test Site
www.eastpasco.com
Running on HuwR's SR4 release. Colors and Graphic scheme done by Richard Kinser.
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 24 March 2001 :  19:33:02  Show Profile
Ok, now I'm puzzled. I installed the database field without any default value for the C_BAN_IP field. But when I have an array access the empty field, it throws an error. What i did was just enter in "000.000.000.000|" manually into the database and everything was ok. So I figured that the field needs a default field so the array won't throw an error. Even though the field has the NULL option.
Guys, did it install the other tables? I will put up a link for a setup script to only create that field, without any default value. But then you would have to manually enter it in your database using a database editor. Because you are gonna get an error accessing the Ban Users administration for the first time if there is nothing in the field.
Unless you can wait until I find away around it.
You both are using Access right?

Go to Top of Page

MisterVB
Junior Member

274 Posts

Posted - 24 March 2001 :  19:44:56  Show Profile  Visit MisterVB's Homepage
yes i'm using access and as far as editing the dbase where would i enter the new field?

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 March 2001 :  19:48:06  Show Profile
Davio,

try changing this line:


ADD#C_BAN_IP#varchar(255)#NULL#000.000.000.000|


to this:


ADD#C_BAN_IP#varchar(255)#NULL#'000.000.000.000|'
Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 24 March 2001 :  19:53:06  Show Profile  Visit rick7165's Homepage
Richard that worked, but I get this now

Microsoft VBScript runtime error '800a005e'

Invalid use of Null: 'Split'

/forums/admin_ban_ip.asp, line 148


Test Site
www.eastpasco.com
Running on HuwR's SR4 release. Colors and Graphic scheme done by Richard Kinser.
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 24 March 2001 :  20:01:32  Show Profile
Ok, thanks Richard.
rick, you would have to do the same for
"ADD#C_BAN_IPRANGE#varchar(255)#NULL#"
to this
ADD#C_BAN_IPRANGE#varchar(255)#NULL#'000.000.000|'
And that should fix it.

Go to Top of Page

MisterVB
Junior Member

274 Posts

Posted - 24 March 2001 :  20:05:42  Show Profile  Visit MisterVB's Homepage
could you tell me where i would change that please.

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 24 March 2001 :  20:11:15  Show Profile
MisterVB, download this file, extract it to your forum folder, and run the mod_dbsetup.asp file from your browser. Select the "Ban IP Fix" from the dropdown box and click update. It will delete the 2 fields and re-create them with the proper values.

<link removed>
Go to Top of Page

MisterVB
Junior Member

274 Posts

Posted - 24 March 2001 :  20:13:06  Show Profile  Visit MisterVB's Homepage
Thank and sorry for the newbie questions..I'll learn sometime int he next 600 years. lol

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 24 March 2001 :  20:16:57  Show Profile
I just tried it and it installed them ok for me.
Rick, download the file I posted for MisterVB and follow the instructions. It will delete the tables and re-create them.

Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 24 March 2001 :  21:37:48  Show Profile  Visit rick7165's Homepage
Davio... Got it to work..

Thanks for the Mod


Rick


Test Site
www.eastpasco.com
Running on HuwR's SR4 release. Colors and Graphic scheme done by Richard Kinser.
Go to Top of Page

Giapai
New Member

92 Posts

Posted - 27 March 2001 :  13:43:31  Show Profile  Visit Giapai's Homepage  Send Giapai an ICQ Message
quote:


SETUP
Extract all files into your forum folder. If you have made any changes to your other files you will need to copy and paste the code into your files. All code that has been added is clearly commented. Just do a search for "Ban IP Mod" or look for this:
' ####################### Ban IP Mod #######################




hi owk i admit am blonde lol now i start copy the code there but untill what point?
and.. about those two lines that needed to be changed is that fixed or do i still need to do that?
greetings ladylee

Go to Top of Page
Page: of 7 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.22 seconds. Powered By: Snitz Forums 2000 Version 3.4.07