#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Questions & Answers...
Q&A Layout - Bug Re...
I want my topics to...
 
Share:
Notifications
Clear all

[Solved] I want my topics to show " latest reply to oldest reply"  

    Last Post
   RSS

1
December 4, 2020 1:10 pm
Topic starter

Hi! How can I make the new reply higher abouv the older one?

Answer
Add a comment
om.vitalii
om.vitalii 
(@om-vitalii)
Active Member
| 8 Posts
1 0 1

@om-vitalii, Please let me know what forum layout you use?

By Robert December 5, 2020 6:38 am
 

I use 4th layout (threaded). I`ve seen your old reply here https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-sort-posts-in-a-thread-oldest-first/#post-15418

but seems templates are changed from 2018 and now In Index I see this

elseif( in_array(WPF()->current_object['template'], array('forum', 'topic')) ){
wpforo_template('forum');
if( WPF()->current_object['template'] === 'topic' ){
wpforo_template('topic');

So I need topic.php

In topic.php I see reference to layout-4-topic.php, where no args or loop appear. Do you have a modern answear to how fix my issue? Posts should be inverted order on screen

Hope you will help me, best wishes

 Screenshot-2020-12-11-at-01.53.55.png
By om.vitalii Topic starter December 11, 2020 12:10 am
 
Add a comment
Topic Tags
first post stick post on top
7 Answers
1
December 11, 2020 4:07 pm

@om-vitalii,

Unfortunately the peace of code is moved to a core file. So there is no way to do this customization. In upcoming version, we'll add a new hook in the core file and let you do this change. I don't have any ETA yet. Just update this topic, once the next version is released.

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Add a comment
Robert
Robert 
(@robert)
Support Team Admin
| 7543 Posts
67 16 753
Add a comment
2
December 14, 2020 6:50 pm
Posted by: @alexas

Dear plugin developers, I also really need the last comment to be the first in the topic. To be like on YouTube. In this case, the description of the topic 1 comment was always on top for SEO.

@alexas,

If you just need to keep the first post (topic first post) on top of the topic on all pages you can enable the corresponding option in Dashboard > Forums > Settings > Topics & Posts Tab. You can enable it for each forum layout separately:

 

As per the hook for sorting replies, it comes very soon. Probably tomorrow.

Powered by gVectors Team. our popular plugins:
wpForo, wpDiscuz

Add a comment
Martin
Martin 
(@martin)
Support Team Moderator
| 688 Posts
1 1 164

Yes, the hook is needed, I can't wait until tomorrow. Martin you are the best!!!

By alexas December 15, 2020 12:25 pm
 
Add a comment
2
December 16, 2020 2:41 am

@alexas,

You don't have to wait for the next version release. You can add the exact same hook in the same location manually. Once the update is released, you can update without any issue.

Open this file:

wp-content/plugins/wpforo/wpforo.php

 

Find this line:

if( $this->post->get_option_union_first_post($current_object['layout']) ) $args['union_first_post'] = true;
$current_object['posts'] = $this->post->get_posts( $args, $current_object['items_count']);

 

And add the extra "hook line" between them like this:

if( $this->post->get_option_union_first_post($current_object['layout']) ) $args['union_first_post'] = true;
$args = apply_filters('wpforo_post_list_args', $args);
$current_object['posts'] = $this->post->get_posts( $args, $current_object['items_count']);

 

Then add the updated code for reversing replies order:

https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-sort-posts-in-a-thread-oldest-first/#post-15418

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Add a comment
Robert
Robert 
(@robert)
Support Team Admin
| 7543 Posts
67 16 753
Add a comment
1
December 13, 2020 9:31 pm

Dear plugin developers, I also really need the last comment to be the first in the topic. To be like on YouTube. In this case, the description of the topic 1 comment was always on top for SEO. I can't wait for the results of your work! Respect

"Any fool can know. The trick is to understand." Albert Einstein

Add a comment
alexas
alexas 
(@alexas)
Active Member
| 14 Posts
0 4 2
Add a comment
0
December 16, 2020 2:39 pm

Robert thank you very much everything worked out. And the last will be the first, well, literally!

"Any fool can know. The trick is to understand." Albert Einstein

Add a comment
alexas
alexas 
(@alexas)
Active Member
| 14 Posts
0 4 2
Add a comment
0
December 16, 2020 4:58 pm

Well, great, I'm glad, very grateful, I've already written 2 reviews for the plugin.
So now it's just paramount to me personally, here under the topic header and with a new comment insert an empty field for the user to write a comment.
Can you help me with this? Here's a scan of what I mean.

 16.12.2020.png
 
And now there is an empty field at the very bottom of the whole topic, and while you scroll through 20 comments with the wheel, your hand will get tired! And this time.
This post was modified 1 month ago by alexas

"Any fool can know. The trick is to understand." Albert Einstein

Add a comment
alexas
alexas 
(@alexas)
Active Member
| 14 Posts
0 4 2
Add a comment
0
December 16, 2020 11:30 pm

I write as a translator and apologize for the mistakes.
Is it possible to make an empty comment field between the topic header and 1 comment as in the scan above?

"Any fool can know. The trick is to understand." Albert Einstein

Add a comment
alexas
alexas 
(@alexas)
Active Member
| 14 Posts
0 4 2
Add a comment
  All forum topics
  Previous Topic
Topic Tags:  first post (1), stick post on top (1),

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages  wpforo-advanced-attachments-128x128  wpforo-embeds-128x128 wpForo User Custom Fields addon  wpForo – Blog Cross Posting addon  wpForo Ads Manager
View all Addons »

Recent Topics

  • Help please

    By Creationweb, 4 hours ago

  • Settings for attachements cannot be saved

    By Jheronimus, 4 hours ago

  • Reply button problem

    By xfok, 4 hours ago

  • Advanced search including date fields as the default home page

    By Arik, 8 hours ago

  • Adding members, recent posts and my profile to the forum menu

    By Xaleah, 20 hours ago

  • How to change class of link in button??

    By civilenggnotes, 20 hours ago

Topic Tags

  • new features43
  • seo39
  • translation36
  • plugin conflict35
  • forum32
  • buddypress31
  • login31
  • threaded layout30
  • registration29
  • ultimate member28
  • moderation27
  • editor25
  • avatar24
  • shortcode23
  • css23
  • tags21
  • migration20
  • url20
  • menu20
  • colors19
View all tags (1465)

Recent Posts

  • RE: PHP error, need help

    You should check to make sure all folders have 755 perm...

    By Percysgrowroom, 1 hour ago

  • RE: slow queries

    This is the official post about caching: I'm not f...

    By dimalifragis, 2 hours ago

  • RE: Why wpForo using two Font Awesome files?

    @adisaputro, I'm sorry but it's not possible, they a...

    By Robert, 2 hours ago

  • RE: Help please

    @Martin Thank you for your prompt response, I attach ne...

    By Creationweb, 2 hours ago

  • RE: Settings for attachements cannot be saved

    Thank you so much, that worked! Sorry, newbie here!

    By Jheronimus, 3 hours ago

  • RE: Reply button problem

    Hi @xfok, Could you please show me on a screenshot wh...

    By Martin, 4 hours ago

  • RE: Advanced File Attachments

    @bujkilla, You should use the forum icon in "Forum Ic...

    By Sofy, 6 hours ago

Share:
  Forum Statistics
20 Forums
7,752 Topics
38.9 K Posts
0 Online
14.8 K Members

Latest Post: PHP error, need help Our newest member: zakisoft Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2021 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Documentation