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 (Zatvorena) (Mono Support )

10171 put(a) pogledan, 5 odgovor(a) 8.5.2014. 11:00:06Kreirao(la) super
super

super

8.5.2014. 11:05:20
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.
Ovaj sadržaj još nije ocijenjen. 
6018 Reputacija 709 Ukupno objava
tihomir-kit

tihomir.kit

12.5.2014. 11:25:36
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.
Ovaj sadržaj još nije ocijenjen. 
526 Reputacija 43 Ukupno objava
imarusic

imarusic

12.5.2014. 11:27:32
Regarding "Date updated" - you can always extend control and switch DateUpdated with DateCreated field.

Regards.
Ovaj sadržaj još nije ocijenjen. 
3016 Reputacija 428 Ukupno objava
super

super

12.5.2014. 13:14:00
how to do than ? could you please show how ?
Ovaj sadržaj još nije ocijenjen. 
6018 Reputacija 709 Ukupno objava
imarusic

imarusic

16.5.2014. 10:01:17
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.

Ocjena 5,00, 1 glas(ova). 
3016 Reputacija 428 Ukupno objava