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.

How to keep the answered post in its original position ?   (Mono Support )

Viewed 17967 time(s), 13 post(s) 8/6/2013 6:10:42 PMby super
super

super

8/6/2013 6:10:42 PM
I see by default when any post is marked as answered, the answered post gets at the top in the topic in monox. But I don't want to change the position of answered post. Since the background color of post is changed, that is enough for me.

So I can keep the position of the answered post un-changed ?
This content has not been rated yet. 
6018 Reputation 709 Total posts
imarusic

imarusic

8/7/2013 8:38:28 AM
Hi,

you can do it by overriding GetMessagesDefaultSorter method from the DiscussionRepository and change the default sorting behaviour,

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

super

8/7/2013 5:06:25 PM
How to do that and where ? which page ? where to get code for the method ?
This content has not been rated yet. 
6018 Reputation 709 Total posts
khorvat

khorvat

8/8/2013 7:55:36 AM
Hi,

this only happens on the Topic's first page so I'm not sure if this is worth pursuing ?

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
super

super

8/8/2013 10:29:43 AM
Khorvat,

What do you mean by topic's first page ?

If I understood you correctly, you mean topic in which there is only 1 page ? if yes, still, we can't say how many topics will be one page (it could be a lot) when site admin have an active forum based users.

I think changing the position automatically when any post is marked as answered makes it non-user friendly since any new user looking for an answer might get confused since the answer is showing first as the new user won't know the order of discussion. A lot of times in forums users do want to read the discussion in order to know what's happening..

Could you please help me with this in code ? How to do that and where ? which page ? where to get code for the method ? and change to what ?
This content has not been rated yet. 
6018 Reputation 709 Total posts
super

super

8/8/2013 10:46:54 AM
I would like to keep functionality like this: EXample

As you can see the answered post remains in the same position, this is exactly I would like to have and I think it should be available in monox by default as similar pattern is followed by majority of forums all over the world instead of having answered post in 1st position.
This content has not been rated yet. 
6018 Reputation 709 Total posts
super

super

8/8/2013 3:52:15 PM
khorvat,

any help with this ?
This content has not been rated yet. 
6018 Reputation 709 Total posts
khorvat

khorvat

8/9/2013 9:33:54 AM
Yes, there was a bug with the existing functionality. We have moved back the old functionality where we show the answer message in it's current position if placed on the first page, if placed on any other page we show it in place for that page or show it as a first post on the first page.

This will be available in next nightly build.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
super

super

8/9/2013 10:27:18 AM
Khorvat,

Could you please consider adding one small feature to it ? An option to keep the post to its original position irrespective to the page # ?
This content has not been rated yet. 
6018 Reputation 709 Total posts
super

super

8/12/2013 3:37:47 PM
Could you please consider adding one small feature to it ? An option to keep the post to its original position irrespective to the page # ?
Khorvat,

could you please comment on my above post ?
This content has not been rated yet. 
6018 Reputation 709 Total posts
1 2