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 (Open)
 BUG + FIX (moderation, post_info.asp)
 New Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 26 February 2009 :  17:39:28  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
If a normal member edits an approved reply in a moderated forum, the last post info in the forum and the topic is not updated. This happens because the last post info is updated only if the following condition is met:

if (mLev <> 4 and Moderation = "No") Then

regardless of the status of the post being edited. On a moderated forum, for a regular member, Moderation=Yes, so the last post info is never updated. To fix it,

Find the following code, around line #354:


        txtMessage = ChkString(Request.Form("Message"),"message")
	
	Err_Msg = ""

	if txtMessage = " " then 
		Err_Msg = Err_Msg & "<li>You Must Enter a Message for your Reply</li>"
	end if


Replace it by:


        strSql = "SELECT R_STATUS FROM " & strActivePrefix & "REPLY WHERE REPLY_ID=" & Reply_ID

	Set rcFix = my_Conn.Execute (strSql)

	If Not rcFix.EOF Then
	  strReplyStatus = rcFix(0)
	End If

	rcFix.Close
        Set rcFix = nothing


	txtMessage = ChkString(Request.Form("Message"),"message")
	Err_Msg = ""

	if txtMessage = " " then 
		Err_Msg = Err_Msg & "<li>You Must Enter a Message for your Reply</li>"
	end if


A bit below, around line# 378 (before the fix), find

        if mLev <> 4 and Moderation = "No" then

Replace it by

        if (mLev <> 4 and Moderation = "No") Or  (strReplyStatus = 1 and mlev <> 4) then


This only affects forums that use post moderation.


Snitz 3.4 Readme | Like the support? Support Snitz too

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 27 February 2009 :  03:50:55  Show Profile  Visit MarcelG's Homepage
Well spotted!

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 01 March 2009 16:12:33
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 01 March 2009 :  15:00:42  Show Profile  Send ruirib a Yahoo! Message
Added a correction to the fix.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.11 seconds. Powered By: Snitz Forums 2000 Version 3.4.07