Author |
Topic |
|
Kal Corp
Average Member
USA
878 Posts |
Posted - 07 October 2000 : 12:50:43
|
I had to update some code to get NT working with 3.1 Final. I dont know if it was correct to do and if it will stop db form working, Please check it out <img src=icon_smile.gif border=0 align=middle>
Some things I have noticed
<b>In Default.asp</b>
sub ForumAdminOptions() if (mLev = 4) or (chkForumModerator(rsForum("FORUM_ID"), <font color=red>Session(strCookieURL & "username")</font id=red>)= "1") or (chkForumModerator(rsForum("FORUM_ID"), Request.Cookies(strCookieURL & "User")("Name")) = "1") or (lcase(strNoCookies) = "1") then
<b>I think should be, Because Admin Icons not showing if not updated</b>
sub ForumAdminOptions() if (mLev = 4) or (chkForumModerator(rsForum("FORUM_ID"), <font color=red>Session(strCookieURL & "userID")</font id=red>)= "1") or (chkForumModerator(rsForum("FORUM_ID"), Request.Cookies(strCookieURL & "User")("Name")) = "1") or (lcase(strNoCookies) = "1") then
<b>Every where in Post_info.asp</b>
if strAuthType="nt" and chkForumModerator(Request.Form("FORUM_ID"), <font color=red>session ("userid")</font id=red>) = "0" then
Go_Result "Only Admins, Moderators and the Author can change this post", 0
end if
<b>I think should be, Can not save Changes from EditForum without this </b>
if strAuthType="nt" and chkForumModerator(Request.Form("FORUM_ID"), <font color=red>Session(strCookieURL & "userID")</font id=red>) = "0" then
Go_Result "Only Admins, Moderators and the Author can change this post", 0
end if
<b>In post.asp, I had to make to updates on 2 lines. Do a search for chkForumModerator</b>
(chkForumModerator(strRqForumId, <font color=red>Session(strCookieURL & "userid")</font id=red>) = "1"))
Edited by - kal corp on 07 October 2000 13:04:15 |
|
Kal Corp
Average Member
USA
878 Posts |
Posted - 07 October 2000 : 13:43:58
|
<b>also in Pop_profile.asp
Addedd to case "EditIt" so that users could edit there profiles</b>
strSql = strSql & " WHERE M_NAME = '" & Request.Form("Name") & "' " <font color=red>if strAuthType = "db" then </font id=red> strSql = strSql & " AND M_PASSWORD = '" & Request.Form("Password-d") & "'" <font color=red>end if</font id=red> my_Conn.Execute(strSql) |
|
|
Kal Corp
Average Member
USA
878 Posts |
Posted - 11 October 2000 : 16:40:22
|
<b>In post_info.asp
had to update , Was getting errors in NT mode. </b>
'## Forum_SQL - Update Last Post strSql = " UPDATE " & strTablePrefix & "FORUM" strSql = strSql & " SET F_LAST_POST = '" & DateToStr(strForumTimeAdjust) & "'" strSql = strSql & ", F_LAST_POST_AUTHOR = " & getMemberID(<font color=red>Session(strCookieURL & "username")</font id=red>) strSql = strSql & " WHERE FORUM_ID = " & Request.Form("FORUM_ID")
my_Conn.Execute (strSql) '## Forum_SQL - Update Last Post strSql = " UPDATE " & strTablePrefix & "TOPICS" strSql = strSql & " SET T_LAST_POST = '" & DateToStr(strForumTimeAdjust) & "'" strSql = strSql & ", T_LAST_POST_AUTHOR = " & getMemberID(<font color=red>Session(strCookieURL & "username")</font id=red>) strSql = strSql & " WHERE TOPIC_ID = " & Request.Form("TOPIC_ID")
my_Conn.Execute (strSql)
test Signature |
|
|
Kal Corp
Average Member
USA
878 Posts |
|
|
Topic |
|