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)
 Guestbook Addon (Version 2.0)
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 4

SaiyanJin
Junior Member

115 Posts

Posted - 21 February 2001 :  16:57:01  Show Profile
Adding Column...
ALTER TABLE FORUM_GUESTBOOK ADD COLUMN G_VARFIELD1 VARCHAR (100) NULL
-2147217887 | Field 'G_VARFIELD1' already exists in table 'FORUM_GUESTBOOK'.
Adding Column...
ALTER TABLE FORUM_GUESTBOOK ADD COLUMN G_VARFIELD2 VARCHAR (100) NULL
-2147217887 | Field 'G_VARFIELD2' already exists in table 'FORUM_GUESTBOOK'.
Adding Column...
ALTER TABLE FORUM_GUESTBOOK ADD COLUMN G_VARFIELD3 VARCHAR (100) NULL
-2147217887 | Field 'G_VARFIELD3' already exists in table 'FORUM_GUESTBOOK'.
Table(s) updated

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

Creating table(s)...
CREATE TABLE FORUM_GB_OPTIONS( G_ID int IDENTITY (1, 1) NOT NULL , G_VARFIELD1 VARCHAR (100) NULL , G_VARFIELD2 VARCHAR (100) NULL , G_VARFIELD3 VARCHAR (100) NULL , G_V1_SWITCH INT NOT NULL , G_V2_SWITCH INT NOT NULL , G_V3_SWITCH INT NOT NULL )
-2147217900 | Table 'FORUM_GB_OPTIONS' already exists.

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

Adding new records..
INSERT INTO FORUM_GB_OPTIONS (G_V1_SWITCH, G_V2_SWITCH, G_V3_SWITCH, G_VARFIELD1, G_VARFIELD2, G_VARFIELD3) VALUES (0, 0, 0, 'ab', 'ab', 'ab')
-2147217900 | The INSERT INTO statement contains the following unknown field name: 'G_VARFIELD2'. Make sure you have typed the name correctly, and try the operation again.


that's the error I got. What's wrong? I'm not confuse with the first 3 but the forth one is a definite error. I ran it twice, that's why I got that "already exist" message.

Go to Top of Page

SaiyanJin
Junior Member

115 Posts

Posted - 21 February 2001 :  17:10:40  Show Profile
never mind.

I manually changed the mis-spelled column name in the database. stimulator, you should double check and change the spelling on the code to create the database.

Go to Top of Page

milez
Starting Member

USA
19 Posts

Posted - 21 February 2001 :  19:49:44  Show Profile  Send milez an AOL message  Send milez an ICQ Message
Creating table(s)...
CREATE TABLE FORUM_GUESTBOOK( G_ID COUNTER CONSTRAINT PrimaryKey PRIMARY KEY , G_NAME#VARCHAR (50)#NOT NULL# NOT NULL , G_EMAIL#VARCHAR (100)#NOT NULL# NOT NULL , G_WEBSITE#VARCHAR (100)#NULL# NOT NULL , G_ICQ#VARCHAR (30)#NULL# NOT NULL , G_MESSAGE#memo#NOT NULL# NOT NULL , G_DATE#VARCHAR (50)#NOT NULL# NOT NULL , G_VARFIELD1#VARCHAR (100)#NULL# NOT NULL , G_VARFIELD2#VARCHAR (100)#NULL# NOT NULL , G_VARFIELD3#VARCHAR (100)#NULL# NOT NULL )
-2147217900 | Syntax error in field definition.
CREATE TABLE FORUM_GB_OPTIONS( G_ID COUNTER CONSTRAINT PrimaryKey PRIMARY KEY , G_VARFIELD1#VARCHAR (100)#NULL# NOT NULL , G_VARFILED2#VARCHAR (100)#NULL# NOT NULL , G_VARFIELD3#VARCHAR (100)#NULL# NOT NULL , G_V1_SWITCH#INT#NOT NULL# NOT NULL , G_V2_SWITCH#INT#NOT NULL# NOT NULL , G_V3_SWITCH#INT#NOT NULL# NOT NULL , G_V3_SWITCH#INT#NOT NULL# NOT NULL , G_V3_SWITCH#INT#NOT NULL# NOT NULL , G_V3_SWITCH#INT#NOT NULL# NOT NULL )
-2147217900 | Syntax error in field definition.

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

Adding new records..
INSERT INTO FORUM_GB_OPTIONS
-2147217900 | Syntax error in INSERT INTO statement.

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

I get this error when I run the mod_dbsetup.asp. Any idea whats causing this? I'm using Version 3.1 SR4

Go to Top of Page

Björn
Starting Member

19 Posts

Posted - 22 February 2001 :  04:40:01  Show Profile
I tried your mod today and when I ran your mod_dbsetup.asp I got this:
maybe you know what it means

Creating table(s)...
CREATE TABLE FORUM_GUESTBOOK( G_ID int COUNTER NOT NULL , G_NAME VARCHAR (50) NOT NULL , G_EMAIL VARCHAR (100) NOT NULL , G_WEBSITE VARCHAR (100) NULL , G_ICQ VARCHAR (30)
NULL , G_MESSAGE memo NOT NULL , G_DATE VARCHAR (50) NOT NULL , G_VARFIELD1 VARCHAR (100) NULL , G_VARFIELD2 VARCHAR (100) NULL , G_VARFIELD3 VARCHAR (100) NULL )
-2147217900 | [Microsoft][ODBC Microsoft Access Driver] Syntaxfehler in CREATE TABLE-Anweisung.


Creating table(s)...
CREATE TABLE FORUM_GB_OPTIONS( G_ID int COUNTER NOT NULL , G_VARFIELD1 VARCHAR (100) NULL , G_VARFILED2 VARCHAR (100) NULL , G_VARFIELD3 VARCHAR (100) NULL , G_V1_SWITCH INT
NOT NULL , G_V2_SWITCH INT NOT NULL , G_V3_SWITCH INT NOT NULL )
-2147217900 | [Microsoft][ODBC Microsoft Access Driver] Syntaxfehler in CREATE TABLE-Anweisung.


Adding new records..
INSERT INTO FORUM_GB_OPTIONS (G_V1_SWITCH, G_V2_SWITCH, G_V3_SWITCH, G_VARFIELD1, G_VARFIELD2, G_VARFIELD3) VALUES (0, 0, 0, 'ab', 'ab', 'ab')
-2147217865 | [Microsoft][ODBC Microsoft Access Driver] Ausgabetabelle 'FORUM_GB_OPTIONS' nicht gefunden.


Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 22 February 2001 :  15:26:11  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
quote:

Adding Column...
ALTER TABLE FORUM_GUESTBOOK ADD COLUMN G_VARFIELD1 VARCHAR (100) NULL
-2147217887 | Field 'G_VARFIELD1' already exists in table 'FORUM_GUESTBOOK'.
Adding Column...
ALTER TABLE FORUM_GUESTBOOK ADD COLUMN G_VARFIELD2 VARCHAR (100) NULL
-2147217887 | Field 'G_VARFIELD2' already exists in table 'FORUM_GUESTBOOK'.
Adding Column...
ALTER TABLE FORUM_GUESTBOOK ADD COLUMN G_VARFIELD3 VARCHAR (100) NULL
-2147217887 | Field 'G_VARFIELD3' already exists in table 'FORUM_GUESTBOOK'.
Table(s) updated

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

Creating table(s)...
CREATE TABLE FORUM_GB_OPTIONS( G_ID int IDENTITY (1, 1) NOT NULL , G_VARFIELD1 VARCHAR (100) NULL , G_VARFIELD2 VARCHAR (100) NULL , G_VARFIELD3 VARCHAR (100) NULL , G_V1_SWITCH INT NOT NULL , G_V2_SWITCH INT NOT NULL , G_V3_SWITCH INT NOT NULL )
-2147217900 | Table 'FORUM_GB_OPTIONS' already exists.

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

Adding new records..
INSERT INTO FORUM_GB_OPTIONS (G_V1_SWITCH, G_V2_SWITCH, G_V3_SWITCH, G_VARFIELD1, G_VARFIELD2, G_VARFIELD3) VALUES (0, 0, 0, 'ab', 'ab', 'ab')
-2147217900 | The INSERT INTO statement contains the following unknown field name: 'G_VARFIELD2'. Make sure you have typed the name correctly, and try the operation again.


that's the error I got. What's wrong? I'm not confuse with the first 3 but the forth one is a definite error. I ran it twice, that's why I got that "already exist" message.


You sould not need to run the update unless you are upgrading. I've fixed the misspelled field name... I fixed it like 2 minutes after I uploaded cuz I realized it when testing. Sorry about that.

-------
Da_Stimulator
Snitz Forums Dev Team Member
Snitz Test Center
Need a Mod?
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 22 February 2001 :  15:26:32  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
quote:

Creating table(s)...
CREATE TABLE FORUM_GUESTBOOK( G_ID COUNTER CONSTRAINT PrimaryKey PRIMARY KEY , G_NAME#VARCHAR (50)#NOT NULL# NOT NULL , G_EMAIL#VARCHAR (100)#NOT NULL# NOT NULL , G_WEBSITE#VARCHAR (100)#NULL# NOT NULL , G_ICQ#VARCHAR (30)#NULL# NOT NULL , G_MESSAGE#memo#NOT NULL# NOT NULL , G_DATE#VARCHAR (50)#NOT NULL# NOT NULL , G_VARFIELD1#VARCHAR (100)#NULL# NOT NULL , G_VARFIELD2#VARCHAR (100)#NULL# NOT NULL , G_VARFIELD3#VARCHAR (100)#NULL# NOT NULL )
-2147217900 | Syntax error in field definition.
CREATE TABLE FORUM_GB_OPTIONS( G_ID COUNTER CONSTRAINT PrimaryKey PRIMARY KEY , G_VARFIELD1#VARCHAR (100)#NULL# NOT NULL , G_VARFILED2#VARCHAR (100)#NULL# NOT NULL , G_VARFIELD3#VARCHAR (100)#NULL# NOT NULL , G_V1_SWITCH#INT#NOT NULL# NOT NULL , G_V2_SWITCH#INT#NOT NULL# NOT NULL , G_V3_SWITCH#INT#NOT NULL# NOT NULL , G_V3_SWITCH#INT#NOT NULL# NOT NULL , G_V3_SWITCH#INT#NOT NULL# NOT NULL , G_V3_SWITCH#INT#NOT NULL# NOT NULL )
-2147217900 | Syntax error in field definition.

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

Adding new records..
INSERT INTO FORUM_GB_OPTIONS
-2147217900 | Syntax error in INSERT INTO statement.

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

I get this error when I run the mod_dbsetup.asp. Any idea whats causing this? I'm using Version 3.1 SR4


Update your mod_dbsetup.asp to the current version, included in the zip.
quote:

Creating table(s)...
CREATE TABLE FORUM_GUESTBOOK( G_ID int COUNTER NOT NULL , G_NAME VARCHAR (50) NOT NULL , G_EMAIL VARCHAR (100) NOT NULL , G_WEBSITE VARCHAR (100) NULL , G_ICQ VARCHAR (30)
NULL , G_MESSAGE memo NOT NULL , G_DATE VARCHAR (50) NOT NULL , G_VARFIELD1 VARCHAR (100) NULL , G_VARFIELD2 VARCHAR (100) NULL , G_VARFIELD3 VARCHAR (100) NULL )
-2147217900 | [Microsoft][ODBC Microsoft Access Driver] Syntaxfehler in CREATE TABLE-Anweisung.


Creating table(s)...
CREATE TABLE FORUM_GB_OPTIONS( G_ID int COUNTER NOT NULL , G_VARFIELD1 VARCHAR (100) NULL , G_VARFILED2 VARCHAR (100) NULL , G_VARFIELD3 VARCHAR (100) NULL , G_V1_SWITCH INT
NOT NULL , G_V2_SWITCH INT NOT NULL , G_V3_SWITCH INT NOT NULL )
-2147217900 | [Microsoft][ODBC Microsoft Access Driver] Syntaxfehler in CREATE TABLE-Anweisung.


Adding new records..
INSERT INTO FORUM_GB_OPTIONS (G_V1_SWITCH, G_V2_SWITCH, G_V3_SWITCH, G_VARFIELD1, G_VARFIELD2, G_VARFIELD3) VALUES (0, 0, 0, 'ab', 'ab', 'ab')
-2147217865 | [Microsoft][ODBC Microsoft Access Driver] Ausgabetabelle 'FORUM_GB_OPTIONS' nicht gefunden.


Change the strConnString in your config.asp to the access 2000 connstring.

-------
Da_Stimulator
Snitz Forums Dev Team Member
Snitz Test Center
Need a Mod?
Go to Top of Page

Björn
Starting Member

19 Posts

Posted - 22 February 2001 :  17:07:20  Show Profile
Hej Da_Stimulator,

I changed the string to Access2000 as you told me but now I got the misspelling mistake:

Adding new records..
INSERT INTO FORUM_GB_OPTIONS (G_V1_SWITCH, G_V2_SWITCH, G_V3_SWITCH, G_VARFIELD1, G_VARFIELD2, G_VARFIELD3) VALUES (0, 0, 0, 'ab', 'ab', 'ab')
-2147217900 | The INSERT INTO statement contains the following unknown field name: 'G_VARFIELD2'. Make sure you have typed the name correctly, and try the operation again.

Downloaded your guestbook.zip again but the wrong spelling hasn't been fixed so far. Can you send me the update for the mod_dbsetup.asp because I don't know where to change so that everything will work?

Thanks,
Björn



Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 22 February 2001 :  17:15:57  Show Profile  Visit rick7165's Homepage
What I did is deleted the FORUM_GB_OPTIONS then ran the guestbook_update.dbs and it worked fine.

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

Björn
Starting Member

19 Posts

Posted - 22 February 2001 :  17:59:35  Show Profile
Hello Rick,

that worked fine, thanks. The guestbook is running now.
Just a further question. Is it possible to integrate the guestbook with the normal forums - so one can see them together on one html-page? But you don't have to register for posting inside the guestbook?

Björn

Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 22 February 2001 :  18:06:56  Show Profile  Visit rick7165's Homepage
You can do that, but your forums would get very long...
I would just set it up like Da_Stimulator said... I put
a link to it in my inc_top.asp file.

You can reset the number of guest sign the book in guestbook.asp
file on line 8 strGuestbookPageSize = 10 I moved mine up to
25.. Slows down some but keeps from going thru so many pages.



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

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 22 February 2001 :  18:25:47  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
Ok, zip updated with mispelling fix. Sorry about that guys. If you need to fix this, download drop.dbs To drop the Config table, then run the update from mod_dbsetup.asp.

The zip is also updated with the latest mod_dbsetup.asp, which you need to drop the table. I recommend only doing this if you are having one of the above errors.

The guestbook was made to be separate from the forums, but it contains the same look and feel. Just link to it from inc_top.asp or something, It cannot be run outside of snitz because of the functions and database use. You are not required to register to view/sign the guestbook.


-------
Da_Stimulator
Snitz Forums Dev Team Member
Snitz Test Center
Need a Mod?
Go to Top of Page

blackinwhite
Average Member

Turkey
657 Posts

Posted - 22 February 2001 :  21:06:01  Show Profile
Thanks Da_Stimulator. It worked fine.

Go to Top of Page

Oudie
New Member

Taiwan
70 Posts

Posted - 22 February 2001 :  22:38:30  Show Profile  Visit Oudie's Homepage  Send Oudie an ICQ Message
I have some suggest. I think it can put some picture(like our picture or .....) in message's right.

¤d¨½¬î¤ô¤@Àþ¶¡,
¤Ñ¦a¿W§Ú¼Ö¯«¥P;
²ö°Ý¬õ¹Ð·Ð´o¨Æ,
³p»»¨«¹M¤Ñ¥~¤Ñ...
Go to Top of Page

Björn
Starting Member

19 Posts

Posted - 23 February 2001 :  04:27:12  Show Profile
Now it's working fine, thanks Da_Stimulator .
Just another question. Is it possible to change the link colour only for the guestbook or does it always have to be the same as in the "normal" forums? And if it's possible,how?
I'm questioning since I have problems seeing the links due to my colour choices.

Björn

Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 23 February 2001 :  08:06:13  Show Profile  Visit rick7165's Homepage
Da_Stimulator sorry to bother you once again, but I'm trying to convert
in the guestbook where the user name is... Right now if you click it your
email client will open up. I wanted to use the CDONTS client, but I figured
a better way for this to work for me. and in the process of learning I
keep screwing up the guestbook.asp file. What I want that to do instead
of opening email is to open thier profile.

Can you help me with this?

BTW.. I have the guestbook locked for members only.

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

Edited by - rick7165 on 23 February 2001 08:08:58
Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Previous Page | 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.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07