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 21637 time(s), 13 post(s) 06.08.2013 18:10:42by super
super

super

06.08.2013 18:10:42
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 ?
Dieser Inhalt wurde noch nicht bewertet. 
6018 Reputation 709 Total posts
imarusic

imarusic

07.08.2013 08:38:28
Hi,

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

Regards. 
Dieser Inhalt wurde noch nicht bewertet. 
3016 Reputation 428 Total posts
super

super

07.08.2013 17:06:25
How to do that and where ? which page ? where to get code for the method ?
Dieser Inhalt wurde noch nicht bewertet. 
6018 Reputation 709 Total posts
khorvat

khorvat

08.08.2013 07:55:36
Hi,

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

Regards
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
super

super

08.08.2013 10:29:43
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 ?
Dieser Inhalt wurde noch nicht bewertet. 
6018 Reputation 709 Total posts
super

super

08.08.2013 10:46:54
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.
Dieser Inhalt wurde noch nicht bewertet. 
6018 Reputation 709 Total posts
super

super

08.08.2013 15:52:15
khorvat,

any help with this ?
Dieser Inhalt wurde noch nicht bewertet. 
6018 Reputation 709 Total posts
khorvat

khorvat

09.08.2013 09:33:54
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
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
super

super

09.08.2013 10:27:18
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 # ?
Dieser Inhalt wurde noch nicht bewertet. 
6018 Reputation 709 Total posts
super

super

12.08.2013 15:37:47
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 ?
Dieser Inhalt wurde noch nicht bewertet. 
6018 Reputation 709 Total posts
1 2