Please or Register to create posts and topics.

Activity post link starts at oldest

Page 1 of 2Next

I understand that already adding code to read all topics from newest descending is the reason, but I want to keep that yet get a link in activity to do the same. Is this possible?

viktor_pravda has reacted to this post.
viktor_pravda

Hello @nemo

The problem with the activity is that it shows the posts – ordered by newest ones. If I would order it the other way around, you would only see old posts from X months ago and the newest ones someone at the end at page Y which doesnt seems to be really useful.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Sorry,  didn’t check out the problem well enough .

Everything is fine so long as there is only one page of posts for the topic. Where there are more, then clicking on the topic in the Activity link takes the viewer to the oldest page with the newest to oldest posts displayed (as normal).

Is it possible to get it to display the newest page as it does for a single page only?

 

Thank you!

Hello again @nemo

It seems that I have to add some new options in a future release for all those sorting-things. The problem with this is the changed order inside of your topics by using a piece of code which I gave you. While it changes the order from posts in topics from oldest to newest, other parts of the forum (like this activity area) are not aware of this change so the links to them are getting generated as when the order is still the default one. So it seems that the piece of code I gave you is not enough because it affects more areas as well (activity, widgets, etc).

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Thanks for keeping it in mind.  I can now add a bit to the scenario, it only happens when the topic runs to more than one page. So it  is the oldest page it brings up rather than the very oldest reply.

You can see it here..

http://www.shipshaperc.info/forum-2/topic/ugear-wooden-steam-train-project/?part=2#postid-236

 

Looking  forward to everything to you add to your very impressive forum software.   🙂

I think it best if I remove the code that changed the order of postings, so the Activity/latest, list works from newest to oldest. you provided me with this once but I cannot find it  here to identify it in the theme file. Would you mind giving it to me again?

Hello @nemo

Are you sure that you added custom-code for it to your themes functions.php file because currently there are no hooks for changing the activity-order. Maybe you applied code-changes directly to the core-files of the plugins?

Otherwise feel free to post the content of that file here so that I can have a look. 🙂

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

The only changes I’ve made on my forum are those I’ve got from you.

 

Here’s the Sydney theme functions.php file.  I think what I’m looking for is at the last section, but will await your advice.

 

Ideally the order of posts would be newest first,  as would  be the activity post order. However sometime back you explained (if I recall correctly) that we can’t have it both ways.

Uploaded files:

Hello @nemo

The code you are referring to should be this one:

function custom_asgarosforum_filter_get_posts_order($order) {
      $order = 'p1.id DESC';
      return $order;
    }
    add_filter('asgarosforum_filter_get_posts_order', 'custom_asgarosforum_filter_get_posts_order');

 

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!
Page 1 of 2Next