Activity post link starts at oldest
Quote from nemo on July 29, 2019, 11:54 amI 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?
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?
Quote from Asgaros on July 29, 2019, 12:37 pmHello @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.
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.
Quote from nemo on July 29, 2019, 11:01 pmSorry, 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?
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?
Quote from ashishmohap on August 1, 2019, 10:22 amThank you!
Thank you!
Quote from Asgaros on August 12, 2019, 4:34 amHello 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).
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).
Quote from nemo on August 12, 2019, 4:43 amThanks 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. 🙂
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. 🙂
Quote from nemo on October 6, 2019, 12:23 amI 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?
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?
Quote from Asgaros on October 10, 2019, 7:48 pmHello @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. 🙂
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. 🙂
Quote from nemo on October 10, 2019, 11:26 pmThe 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.
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:Quote from Asgaros on October 11, 2019, 5:15 pmHello @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');
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');