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)
 Edited by - post_info
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Etymon
Advanced Member

United States
2385 Posts

Posted - 09 May 2004 :  01:12:13  Show Profile  Visit Etymon's Homepage
Not sure if this is a bug.

At the bottom of a topic or of a reply where it can say ... Edited by ... there seems to be an exception when the admin is editing the post.

When I edit the post as the admin the Edited by does not show that I edited it.

On lines 364 - 367 of post_info.asp (Snitz 3.4.04)

		if mLev < 4 and strEditedByDate = "1" then
			strSql = strSql & ", R_LAST_EDIT = '"  & DateToStr(strForumTimeAdjust) & "'"
			strSql = strSql & ", R_LAST_EDITBY = "  & MemberID
		end if


I changed the code to:

		if mLev < 4 and strEditedByDate = "1" then
			strSql = strSql & ", R_LAST_EDIT = '"  & DateToStr(strForumTimeAdjust) & "'"
			strSql = strSql & ", R_LAST_EDITBY = "  & MemberID
		elseif mLev = 4 and strEditedByDate = "1" then
			strSql = strSql & ", R_LAST_EDIT = '"  & DateToStr(strForumTimeAdjust) & "'"
			strSql = strSql & ", R_LAST_EDITBY = "  & MemberID
		end if


and on lines 549 - 552 of post_info.asp

		if mLev < 4 and strEditedByDate = "1" then
			strSql = strSql & ", T_LAST_EDIT = '"  & DateToStr(strForumTimeAdjust) & "'"
			strSql = strSql & ", T_LAST_EDITBY = "  & MemberID
		end if


I changed to code to

		if mLev < 4 and strEditedByDate = "1" then
			strSql = strSql & ", T_LAST_EDIT = '"  & DateToStr(strForumTimeAdjust) & "'"
			strSql = strSql & ", T_LAST_EDITBY = "  & MemberID
		elseif mLev = 4 and strEditedByDate = "1" then
			strSql = strSql & ", T_LAST_EDIT = '"  & DateToStr(strForumTimeAdjust) & "'"
			strSql = strSql & ", T_LAST_EDITBY = "  & MemberID
		end if


These changes resolved the issue for me though I am unsure if this was code had a specific purpose or was it just an oversight?


Edited by - Davio on 13 May 2004 14:41:24

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 09 May 2004 :  01:57:37  Show Profile
No, this is not a bug. It is by design. The Edited By line does not appear when an Admin edits a post.
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 13 May 2004 :  14:40:47  Show Profile
Since this isn't a bug, moving it from the bug report forum.

Support Snitz Forums
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07