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 DEV-Group
 DEV Discussions (General)
 Subsribe when posting
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 5

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 09 January 2002 :  08:33:07  Show Profile  Visit HuwR's Homepage
are you using windows and IIS ? or another OS/webserver combination.

Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 09 January 2002 :  08:39:05  Show Profile  Visit Webbo's Homepage
Yes to the first Huw its a Windows Nt server


I've got to go to work now so can I leave it with you and I'll get back later,

Cheers, Dave

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 09 January 2002 :  08:55:19  Show Profile  Visit HuwR's Homepage
ok, give me a shout later

Go to Top of Page

retro
Junior Member

123 Posts

Posted - 09 January 2002 :  10:02:59  Show Profile
Hey Webbo,

I had EXACTLY the same problem. Take out the comment lines that says "Subscribe checkbox begin" and "Subscribe checkbox end". It worked fine form me when I removed those lines.

If it still doesn't work, let me know and I'll post my code exactly when i get back home this evening.



Sean

Edited by - Retro on 10 May 2002 16:50:17
Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 09 January 2002 :  21:40:07  Show Profile  Visit Webbo's Homepage
Hi Sean and HuwR,

I did that in post.asp and it now works fine for 'Reply to Topic' however in 'New Topic' I'm getting the following error within the page:

Microsoft OLE DB Provider for ODBC Drivers error '80040e09'

[TCX][MyODBC]You have an error in your SQL syntax near 'AND S.FORUM_ID = 1 AND S.CAT_ID = 1' at line 1

/clubforums/inc_subscription.asp, line 133


Line 133 reads: rsWatch.open strSql, my_Conn
if that helps.

I have left everything as is if you want to take a look www.maggotdrowning.com/clubforums

Thanks, Dave




Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 10 January 2002 :  04:44:02  Show Profile  Visit Webbo's Homepage
Hi again,

Here's a quick update:

The error only shows when a poster is logged in. It doesn't show otherwise. This may be down to the fact that I am running 2 boards on the same db with the same members table being used for both.

Dave

-->Update2: It isn't that. I have just altered the code for the forum so that it picks up on it's own members table and the error still shows in the 'post new topic' page where the checkbox would have been.
This only happens though when you are logged in otherwise the 'post' is okay and the checkbox doesn't show which is what I would have expected. Back to the drawing board (sorry for the pun )

Dave


Edited by - Webbo on 10 January 2002 04:58:55
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 10 January 2002 :  05:12:54  Show Profile  Visit HuwR's Homepage
can you put
response.write strSQL

on line 132, above the rsWatch.open strSql, my_Conn line.

Now when you o to post.asp, it should print out the SQL, could you copy it and post here so I can take a quick look.

Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 10 January 2002 :  05:27:54  Show Profile  Visit Webbo's Homepage
Goodmorning? HuwR

I get the following:

Select Count(*) as MemberCheck FROM FORUM2_SUBSCRIPTIONS S WHERE S.MEMBER_ID = 3 AND S.TOPIC_ID = AND S.FORUM_ID = 1 AND S.CAT_ID = 1
Microsoft OLE DB Provider for ODBC Drivers error '80040e09'

[TCX][MyODBC]You have an error in your SQL syntax near 'AND S.FORUM_ID = 1 AND S.CAT_ID = 1' at line 1

/clubforums/inc_subscription.asp, line 134

Dave


Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 10 January 2002 :  05:44:32  Show Profile  Visit HuwR's Homepage
Ok, can you email me the file, i will fix it, it is because you are uing MySQL.


to huw@forum.snitz.com

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 10 January 2002 :  07:02:14  Show Profile  Visit HuwR's Homepage
in inc_subscriptions, a few lines up from 134, you will find this code


if SubType = "TOPIC" then
strSql = strSql & TopicID
else
strSql = strSql & "0 "
end if

change it to

if SubType = "TOPIC" and TopicID <> "" then
strSql = strSql & TopicID
else
strSql = strSql & "0 "
end if


Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 10 January 2002 :  07:54:22  Show Profile  Visit Webbo's Homepage
Excellent Huw,

It works a treat, thanks very much

Dave

Go to Top of Page

KerryG
Starting Member

USA
41 Posts

Posted - 22 January 2002 :  18:42:15  Show Profile  Visit KerryG's Homepage
I don't see where it includes the checkbox during the post as was originally asked and happens to be what I am looking for right now.

-Kerry

Kerry
http://www.WildHobbies.com
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 22 January 2002 :  19:12:54  Show Profile  Visit HuwR's Homepage
it includes the checkbox where it used to be. make a post on my test forum http://www.magicmushroom.org.uk (make sure the forum allows subscription) :)

Go to Top of Page

KerryG
Starting Member

USA
41 Posts

Posted - 22 January 2002 :  19:34:00  Show Profile  Visit KerryG's Homepage
I see it in yours perfectly. However, I have searched through the three pages included in the zip file and none of them have any code that resembles creating a text box like that. I have two checkboxes on the page, the profile signature and the lock topic after post.

Kerry
WildHobbies.com

Kerry
http://www.WildHobbies.com
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 23 January 2002 :  03:15:47  Show Profile  Visit HuwR's Homepage
the code which creates the checkbox is in inc_subscription.asp

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