Do not show edited by if within x minutes? - Posted (1346 Views)
Starting Member
gjs
Posts: 5
5
Hello.
One of my forum members has asked if it is possible to not show the 'last edited by....' message in the post if they edit within say, a couple of minutes of posting the original. This will help when just correcting typos.
Has anyone got a mod for this? I searched the forum including archive, but couldnt find anything.
Many Thanks,


Greg
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Advanced Member
Carefree
Posts: 4224
4224
Here you go. I wrote it for you.
Posted
Starting Member
gjs
Posts: 5
5
Excellent!
Many thanks for this Carefree - I really appreciate you spending time on it.
I couldn't get it to work straight away - I don't think it liked this:-

if MemberName=Reply_MemberName.
I changed it to:-

if getMemberName(Reply_LastEditBy)=Reply_MemberName
and it seems to work. I'm not sure if I used the right variable, so please let me know if I'm missing something here or doing this wrong!
I also moved this:-

<hr noshade size=""1"" color=""" & strForumFontColor & """>
into here:-

Response.Write "<hr noshade size=""1"" color=""" & strForumFontColor & """>Edited by - " & Reply_LastEditByName & " on " & chkDate(Reply_LastEdit, " " ,true) & "</font></td>" & vbNewLine
Otherwise, it was still bringing up the horizontal line even if there was an edit within 10 minutes and therefore not bringing up the 'last edited by...'

So it is all working now - fantastic stuff. Another example of the great support on this forum.
Thanks again,



Greg
Posted
Advanced Member
Carefree
Posts: 4224
4224
Use the strDBNTUserName variable instead.
Code:
if strDBNTUserName=Reply_MemberName
 
You Must enter a message