MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

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

Viewed 8734 time(s), 5 post(s) 5/8/2014 11:00:06 AMby super
super

super

5/8/2014 11:05:20 AM
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.
This content has not been rated yet. 
6018 Reputation 709 Total posts
tihomir-kit

tihomir.kit

5/12/2014 11:25:36 AM
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.
This content has not been rated yet. 
526 Reputation 43 Total posts
imarusic

imarusic

5/12/2014 11:27:32 AM
Regarding "Date updated" - you can always extend control and switch DateUpdated with DateCreated field.

Regards.
This content has not been rated yet. 
3016 Reputation 428 Total posts
super

super

5/12/2014 1:14:00 PM
how to do than ? could you please show how ?
This content has not been rated yet. 
6018 Reputation 709 Total posts
imarusic

imarusic

5/16/2014 10:01:17 AM
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.

Rated 5.00, 1 vote(s). 
3016 Reputation 428 Total posts