Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Limited time edit
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Limited time edit

 Post Reply Post Reply
Author
StuckInTheMud View Drop Down
Newbie
Newbie


Joined: 01 July 2004
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote StuckInTheMud Quote  Post ReplyReply Direct Link To This Post Topic: Limited time edit
    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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 22 November 2010 at 5:20pm
This feature has been developed and will be part of version 10.
Back to Top
mirzam View Drop Down
Newbie
Newbie


Joined: 30 November 2008
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mirzam Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.