Print Page | Close Window

Limited time edit

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=28976
Printed Date: 01 April 2026 at 4:04pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Limited time edit
Posted By: StuckInTheMud
Subject: Limited time edit
Date Posted: 22 November 2010 at 1:11pm
Has anyone tweaked WebWiz to allow a limited form of message editing?

I need to limit the ability to edit either based on time (e.g. within 15 minutes of posting), or just the last post.

This is due to having users that maliciously change old posts to alter their meaning. At the moment we have editing turned off, but there is pressure from users to allow some form of edit ability.


Thanks.



Jim



Replies:
Posted By: WebWiz-Bruce
Date Posted: 22 November 2010 at 5:20pm
This feature has been developed and will be part of version 10.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: mirzam
Date Posted: 04 February 2011 at 4:03pm
Here is the "fix"


Edit the file forum_post.asp and replace the code on line 1254 ( about, don't have the original code now ) you will find the line starting with

if blnAdmin or blnEdit then
        Response.Write(vbCrLf & "     <a href=""edit_post_form.asp?PID=" & lngMessageID & "&amp;PN=" & intRecordPositionPageNum)
        If lngPollID > 0 AND intThreadNo = 1 Then Response.Write("&amp;POLL=" & lngPollID)
        Response.Write("" & strQsSID2 & """ rel=""nofollow""><div>" & strTxtEditPost & "</div></a>")
end if

I have set if(datediff("n",dtmPostDate,now())<15) then to allow the editor only to edit the post within 15 min. 

        'Only let the user edit the post if they have edit rights
        If blnAdmin Then
        Response.Write(vbCrLf & "     <a href=""edit_post_form.asp?PID=" & lngMessageID & "&amp;PN=" & intRecordPositionPageNum)
        If lngPollID > 0 AND intThreadNo = 1 Then Response.Write("&amp;POLL=" & lngPollID)
        Response.Write("" & strQsSID2 & """ rel=""nofollow""><div>" & strTxtEditPost & "</div></a>")
elseif blnEdit then
'Edit only within 15 minutes 
if(datediff("n",dtmPostDate,now())<15) then
Response.Write(vbCrLf & "     <a href=""edit_post_form.asp?PID=" & lngMessageID & "&amp;PN=" & intRecordPositionPageNum)
If lngPollID > 0 AND intThreadNo = 1 Then Response.Write("&amp;POLL=" & lngPollID)
Response.Write("" & strQsSID2 & """ rel=""nofollow""><div>" & strTxtEditPost & "</div></a>")
end if
End If



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net