closed comments order newest first?

Holly Dilatush
Holly Dilatush
@holly-dilatush
8 years ago
212 posts
Hello again,

I will try to explain our challenge. [*REWRITTEN Sept. 27th*]

We are a nearly 5-year old Ning 2.0 site, with many active members who have been with us for much of those 5 years...

All of these members are accustomed to reading comments on discussion and blog posts with the newest posts being LAST (oldest posts show first)... so that the readers read and follow the discussion in progression.

[We are a language-learning site, and it helps the learning to see the original post, and then the gradual building of understanding.

This is fine.

Our challenge though, is this:

As we understand it, if we change the order of Comments, it will apply site-wide, module-wide. [So if we change the order of Comments to Newest first, it would apply to Groups, to our Forum, and to profile comment walls -- changing all of these to reverse the order of appearance. We want to have a different order for profile page comments (newest first) and then a different order for Groups and Forum (oldest first).

As we have our settings now, oldest comments appear first. This is what we want in groups. This is what we want in forums.

But this is not what we want on profile page comment walls.

On profile pages, where the "Welcome to LEWWWP" messages from 1, 2, 3, 4, or 5 years ago are the FIRST thing migrating members will read/see, we don't want this order.

We want members to see their most recent comment wall posts first.

For example: http://lewwwpcom.jamroomhosting.com/jean

Jean, a long-time active member will log in here and see a welcome message post on his comment wall... from January 2012!

This is not so fine.

I want him to see the NEW welcome messages he'll surely receive from folks who find him and follow him again here on JamRoom --I want him to see those first.

Please can you guide us so we can change ONLY the order of profile page comments so that the newest comments are at the top. [but leaving oldest first for forum and groups]

*I hope this makes more sense*
As always, thank you.


updated by @holly-dilatush: 12/28/16 12:55:51PM
douglas
@douglas
8 years ago
2,793 posts
Hello,

Which skin is this for?

Thanks!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Holly Dilatush
Holly Dilatush
@holly-dilatush
8 years ago
212 posts
Sorry... I'll try to remember.

Ningja
douglas
@douglas
8 years ago
2,793 posts
Can you give me a link to a profile where this is happening?

Thanks!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
douglas
@douglas
8 years ago
2,793 posts
As far as I can tell, the profile pages only show comments, discussions etc... for that particular profile. If you have a link to a profile that is showing all site-wide comments, discussions etc.. then we can check it out. I'm not seeing any issues on my dev site.

Thanks!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Holly Dilatush
Holly Dilatush
@holly-dilatush
8 years ago
212 posts
I think you've misunderstood our request/issue... I've just edited and rewritten our request.
I hope it makes more sense, is clearer, now?
SteveX
SteveX
@ultrajam
8 years ago
2,584 posts
Copy the comment_form.tpl from jrComment to your skin and rename it mycustomcommentform.tpl

Then in your profile_index.tpl template change your jrComment_form function to this:
{jrComment_form module="jrProfile" profile_id=$_profile_id item_id=$_item_id template="mycustomcommentform.tpl"}

Then in mycustomcommentform.tpl find the two jrCore_list calls and change this
order_by="_item_id `$_conf.jrComment_direction`"
to
order_by="_item_id desc"



--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
Holly Dilatush
Holly Dilatush
@holly-dilatush
8 years ago
212 posts
Thank you!
michael
@michael
8 years ago
7,746 posts
I looked into this yesterday because it should have been easy, but ran into some issues. So its on my todo list for today.

Should be as easy as adding 'comment_order_by' to the request in the profile_index.tpl function call but its not working for some reason. Will update when I know why.
michael
@michael
8 years ago
7,746 posts
Do you use "comment threading"?
ACP -> MODULES -> ITEM FEATURES -> COMMENTS -> GLOBAL CONFIG -> LIST OPTIONS -> Enable Threading

??
joanna
@joanna
8 years ago
88 posts
@Michael - yes, we are using "comment threading."
brian
@brian
8 years ago
10,148 posts
What you're asking here is for comments to be order one way for the entire site, and then one SPECIAL way for just one location. Due to how the comment module has to handle threading, replying and ordering, this is not something the module can support.

Sorry!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Holly Dilatush
Holly Dilatush
@holly-dilatush
8 years ago
212 posts
OK. I guess we can handle one 'sorry, no' out of 300+ (and without complaining).
:)
Thank you,
michael
@michael
8 years ago
7,746 posts
joanna:@Michael - yes, we are using "comment threading."
Turn that off and add comment_order_by="numerical_desc" to the jrCore_item_detail_features function in profile_index.tpl and it should work.

In this section {* Profile Comments section *} down near the bottom of that template is this:
{jrCore_item_detail_features module="jrProfile" item=$item}
change to
{jrCore_item_detail_features module="jrProfile" item=$item comment_order_by="numerical_desc"}
for newest comments first.

Will only work if comment threading is turned off though.
updated by @michael: 09/28/16 05:59:54PM

Tags