Mono Support Suggestion: Discussion topic should be using using post time as "DateCreated" not DateUpdated (Closed)

Viewed 10349 time(s), 5 post(s), 5/8/2014 11:00:06 AM - by super
5/8/2014 11:05:20 AM
6018 Reputation 709 Total posts

I see in the discussion topics, the monox uses the "DateUpdated" to display the time when post was posted by any user.

But majority of forums and CMS uses "DateCreated".

The limitation of current approach is that, If I have a post from 5 years back, and I just want to make some correction in it. If I edit/update it. the forum shows, "just now" / current time. But to other users it looks like the post was posted today (NOT 5 years ago).

On top of that, the monox sents an email even when anyone just edit/update the post. I don't think for edit, monox should send any email.

1
5/12/2014 11:25:36 AM
526 Reputation 43 Total posts

Regarding "DateUpdated" - this is a feature which might be considered for a change sometime in future.

MonoX will not send emails if the edits occurred within a short period of time (a few minutes) from creation of the post. If they are however older than that, a notification email will be sent.

2
5/12/2014 11:27:32 AM
3016 Reputation 428 Total posts

Regarding "Date updated" - you can always extend control and switch DateUpdated with DateCreated field.

Regards.

3
5/12/2014 1:14:00 PM
6018 Reputation 709 Total posts

how to do than ? could you please show how ?

4
5/16/2014 10:01:17 AM
3016 Reputation 428 Total posts

Hi,

you can get more info on how to extend existing MonoX module here . When you create new control which extends the existing Monox control, you need to add some code to your extended control similar to this code snippet:

protected override Hashtable ParseTemplateTags(SnDiscussionTopicEntity discussionTopic, NVelocity.VelocityContext velocityContext)
        {
            Hashtable tags = base.ParseTemplateTags(discussionTopic, velocityContext);
             
            Label labDate = new Label();
            labDate.ID = "labDate";
            labDate.ToolTip = discussionTopic.DateCreated.ToLocalTime().ToString();
            labDate.Text = String.Format("{0}", GetDateDisplayText(discussionTopic.DateCreated));
            if(tags["<# Date #>"] == null)
            {
                 tags.Add("<# Date #>", labDate);
            }
            else
            {
                  tags["<# Date #>"] = labDate ;
            }
 
 
}

Regards.

5
This is a demo site for MonoX. Please visit Mono Software for more info.