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) BUG+FIX: Sticky Topics
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

pweighill
Junior Member

United Kingdom
453 Posts

Posted - 21 August 2002 :  11:32:08  Show Profile
If I copy the post form at edit it to add a sticky topic checkbox and use that edited post form to post a new topic, I can create a sticky topic.

There should be some checking to see if you are allowed to create sticky topics.

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 21 August 2002 :  12:15:43  Show Profile
post_info.asp



on line #539 find the following:

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


then make it look like this (adding the lines in red):

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



on line #797 find this:

		strSql = strSql & ", T_STICKY"


then make it look like this (adding the lines in red)

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



on line #826 find this:

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


change it to look like this (adding the lines in red)

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


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.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07