Author |
Topic  |
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 15 May 2008 : 05:24:03
|
Installed the Post History Mod and noticed when a member edits the thread the recorded times are back to front. I tested the mod by 1. Member makes post at Time +0 mins 2. Moderator/Admin approves/moderates reply at Time +2mins 3. Member edits post at Time +4 mins 4. Moderator/Admin checks post history of reply and the times are recorded as it seems back to front
 How can the previous version post time be smaller in value than the current version? The lines which extract times in post_history.asp Previous version line 138 " " & getCurrentIcon(strIconPosticon,"","hspace=""3""") & "<font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>Posted - " & ChkDate(phHistory_Date, " : " ,true) & "</font>" & vbNewline Current Version line 197 Response.Write " " & getCurrentIcon(strIconPosticon,"","hspace=""3""") & "<font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>Posted - " & ChkDate(phHistory_Date, " : " ,true) & "</font>" & vbNewline
Surely the post history previous time should be larger in value?
On topic.asp, the edited time is smaller in value that the original post time
 So we could assume that the submitted times of edit and posting are working, just the post history mod is not extracting the right times.
< |
Edited by - Andy Humm on 15 May 2008 05:35:38 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 15 May 2008 : 05:41:39
|
Further to above The code for the times:
Code for Current Version: < |
Edited by - Andy Humm on 15 May 2008 05:42:19 |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 15 May 2008 : 05:59:27
|
Access database records for above:
FORUM_REPLY table R_Last_Edit 20080515100402 R_Date 20080515100030
FORUM_POST_HISTORY table P_Date 20080515100206< |
 |
|
Carefree
Advanced Member
    
Philippines
4222 Posts |
Posted - 15 May 2008 : 07:17:53
|
Line 195 Change "Current" to "Original"...done.< |
 |
|
Carefree
Advanced Member
    
Philippines
4222 Posts |
Posted - 15 May 2008 : 07:20:39
|
While on the subject of the Post History mod, did anyone else try to have a numerical list parsed? It does a regular [ list ] fine, but when it tries to interpret a [ list=1 ] , it renders the following:
< ol type="1" > < li > < /li > .... < /ol id="1" >< |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 15 May 2008 : 08:01:16
|
quote: Originally posted by Carefree
While on the subject of the Post History mod, did anyone else try to have a numerical list parsed? It does a regular [ list ] fine, but when it tries to interpret a [ list=1 ] , it renders the following:
< ol type="1" > < li > < /li > .... < /ol id="1" >
If memory serves, that's a known issue that hasn't been fixed by the MOD Author yet... search for the thread here that announces the creation of the MOD just to double-check.< |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 15 May 2008 : 08:02:20
|
quote: Originally posted by Carefree
Line 195 Change "Current" to "Original"...done.
The text posted in the 'current version' is the latest text and the 'previous version' was the original script written. Its the date extraction from the database which seems wrong.< |
 |
|
Carefree
Advanced Member
    
Philippines
4222 Posts |
Posted - 15 May 2008 : 10:55:20
|
I just looked at some of the topic times in the database itself. The date/time string in forum_topics & forum_reply are the original dates & times for the posts. The date/time strings in the history file are LATER. So my supposition was correct, the title of the bottom row should have been "Original Version" vs "Current Version". The latest "History" version should actually be the current message.
Are you sure about which message is later? Because something isn't adding up.< |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 15 May 2008 : 11:41:51
|
From my initial post above and image supplied, the current version is the latest text that shows in the topic and the previous version is the text prior to the edit. Hence the concern over the times recorded are back to front. Even when you do a second edit, the current version time is later than the first edit. i.e., 10 mins ago and the first edit says 4 mins ago, and initial post was over 10mins ago.< |
 |
|
Lon
Starting Member
USA
47 Posts |
Posted - 16 May 2008 : 10:58:43
|
I have to agree with Andy Humm. This is what I got...
< |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 16 May 2008 : 11:12:47
|
It appears the Post History mod is recording edits in the database, indicated by the changes as Leon has illustrated. Firstly, each edit, does this get recorded in the FORUM_POST_HISTORY table as a separate line entry and linked to an unique Reply ID no. If so, this ReplyID number must be stored in the FORUM_REPLY table. Looking at the topic.asp the Posted Time of the reply seems different from any of the post history displayed times. The very last edit time is recorded (browny colour on image)and this time stamp should be utilised as the Current Version time/date. Topic.asp line 717 "Edited by - " & Reply_LastEditByName & " on " & chkDate(Reply_LastEdit, " " ,true) & "</font></td>" & vbNewLine & _ provides the last edit display in the reply.
Image from Topic.asp
 The current version time below,(red) is taken from the from the posted time above.
Image from Post History.asp

Hopefully we can solve this inaccuracy.< |
Edited by - Andy Humm on 16 May 2008 12:14:54 |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 19 May 2008 : 04:56:09
|
Is there a possibility to use the 'chkDate(Reply_LastEdit, " " ,true)' from the 'last edited' data, to provide the Current Version Posted time/date?< |
Edited by - Andy Humm on 19 May 2008 08:35:12 |
 |
|
Lon
Starting Member
USA
47 Posts |
Posted - 30 May 2008 : 15:10:51
|
Andy, did you ever figure this out?< |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 30 May 2008 : 18:16:17
|
I am still waiting for some help, but I believe the error lies with not using 'chkDate(Reply_LastEdit, " " ,true)' instead of what looks like original post date. See my reply Posted - 16 May 2008 : 11:12:47 all the areas circled in brown indicates the last edit date as 16.28 instead of the initial posted time 16.21 circled in red..
It would be nice to put this one to bed...< |
 |
|
Carefree
Advanced Member
    
Philippines
4222 Posts |
Posted - 30 May 2008 : 20:49:20
|
Sorry, Andy. I forgot about this thread.
Here you go:
Search for the following lines
Above them, add the following:
Search for the following lines
After them, add the following:
Finally, search for the following:
Change it to say: < |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 04 June 2008 : 17:57:51
|
Apologies for the delay in getting back, but finally I have tried the code above and received the following error (in next post)
Confusion has set in, I noticed there was two line with your last change (Response.Write " " & getCurrentIcon(strIconPosticon,"","hspace=""3""") & "<font .......)
I wonder if you would be kind to peruse my text file and see where the mismatch/error might be.. Thanks andy< |
Edited by - Andy Humm on 04 June 2008 17:58:54 |
 |
|
Topic  |
|