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 )

20812 put(a) pogledan, 13 odgovor(a) 6.8.2013. 18:10:42Kreirao(la) super
super

super

6.8.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 ?
Ovaj sadržaj još nije ocijenjen. 
6018 Reputacija 709 Ukupno objava
imarusic

imarusic

7.8.2013. 8:38:28
Hi,

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

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

super

7.8.2013. 17:06:25
How to do that and where ? which page ? where to get code for the method ?
Ovaj sadržaj još nije ocijenjen. 
6018 Reputacija 709 Ukupno objava
khorvat

khorvat

8.8.2013. 7:55:36
Hi,

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

Regards
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
super

super

8.8.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 ?
Ovaj sadržaj još nije ocijenjen. 
6018 Reputacija 709 Ukupno objava
super

super

8.8.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.
Ovaj sadržaj još nije ocijenjen. 
6018 Reputacija 709 Ukupno objava
super

super

8.8.2013. 15:52:15
khorvat,

any help with this ?
Ovaj sadržaj još nije ocijenjen. 
6018 Reputacija 709 Ukupno objava
khorvat

khorvat

9.8.2013. 9: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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
super

super

9.8.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 # ?
Ovaj sadržaj još nije ocijenjen. 
6018 Reputacija 709 Ukupno objava
super

super

12.8.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 ?
Ovaj sadržaj još nije ocijenjen. 
6018 Reputacija 709 Ukupno objava
1 2