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 Bug Reports (Closed)
 (v3.4.01) BUG+FIX: post_info.asp (Sticky Topics)
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 25 August 2002 :  16:15:26  Show Profile

post_info.asp



On line #797 find the following:

		if ForumChkSkipAllowed = 1 then
			strSql = strSql & ", T_STICKY"
		end if


and change it to:

		strSql = strSql & ", T_STICKY"



then on line #824 find the following:

		if ForumChkSkipAllowed = 1 then
			if Request.Form("sticky") = 1 then
				strSql = strSql & ", 1 "
			else
				strSql = strSql & ", 0 "
			end if
		end if


and change it to look like this:

		if ForumChkSkipAllowed = 1 then
			if Request.Form("sticky") = 1 then
				strSql = strSql & ", 1 "
			else
				strSql = strSql & ", 0 "
			end if
		else
			strSql = strSql & ", 0 "
		end if

CodeName
Junior Member

296 Posts

Posted - 25 August 2002 :  16:21:36  Show Profile
Thanks Richard Thanks Thanks Thanks!
Ýts Fixed!
Go to Top of Page

Wyrlin
Starting Member

USA
13 Posts

Posted - 27 August 2002 :  01:48:22  Show Profile  Visit Wyrlin's Homepage
Richard, after appling the above fix I also had to go in to the db and add 0 to the fields already missing it. Could this not be done in Update forum counts? Just a thought.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 27 August 2002 :  02:26:07  Show Profile
It shouldn't affect that many people. And it is going to be fixed in v3.4.02

I'll add a step on the setup for v3.4.02 that will set the field to 0 if it's NULL.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 28 August 2002 :  22:59:41  Show Profile
fixed in v3.4.02
Go to Top of Page

Mortikhi
Starting Member

35 Posts

Posted - 30 August 2002 :  12:50:30  Show Profile  Visit Mortikhi's Homepage
quote:
Originally posted by Wyrlin

Richard, after appling the above fix I also had to go in to the db and add 0 to the fields already missing it. Could this not be done in Update forum counts? Just a thought.




you know it would be cool if you would have told us where you made the changes in the database.

right now after the fix i cant post anything.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 30 August 2002 :  13:11:20  Show Profile
quote:

Also, the topics you have already posted, they need to be updated.

if you goto your Admin Options and then choose:

Alternative MOD Setup

Then enter the following in the box:

Update T_STICKY Field
[UPDATE]
TOPICS
T_STICKY#0#(T_STICKY IS NULL)
[END]


(make sure it looks exactly like it does above, there should be 5 lines of code)

and click on Submit.

this will update the existing topics that have the wrong value.
Go to Top of Page

Mortikhi
Starting Member

35 Posts

Posted - 30 August 2002 :  13:17:01  Show Profile  Visit Mortikhi's Homepage
quote:

Also, the topics you have already posted, they need to be updated.

if you goto your Admin Options and then choose:

Alternative MOD Setup

Then enter the following in the box:

Update T_STICKY Field
[UPDATE]
TOPICS
T_STICKY#0#(T_STICKY IS NULL)
[END]


(make sure it looks exactly like it does above, there should be 5 lines of code)

and click on Submit.

this will update the existing topics that have the wrong value.

AHA!
When i looked on the admin page, I did not know that (alternative....) was its own hyperlink. I thought it was part of the mod link.

EDIT: nope, my page is broke again. looks like i'll have to go back to the old post_info.asp.

EDIT2: ok it worked this time. when i cut and pasted the code for line 824 earlier i put it in notepad and formatted it (sure looked purty). well, it didnt work when i did that so i just cut and pasted from the board straight to the page...and even though it looks like hell in the source code now, it works.

thanks.

Edited by - Mortikhi on 30 August 2002 13:42:59
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked  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