Notifications
Clear all

wpForo 1.x.x [Solved] How to change the post layout like in this forum?

7 Posts
3 Users
2 Likes
1,761 Views
Posts: 109
Topic starter
(@beyondforce)
Estimable Member
Joined: 5 years ago

Hey guys,

I was wondering how if it's possible the change the post layout like in this forum where the User meta is at the top of the post, see the attached image.

I want only the avatar and the number to be on the left and the rest of the info above the post.

 

Thanks.

6 Replies
VereK
Posts: 516
(@verek)
Honorable Member
Joined: 6 years ago

Threaded layout.

Posts: 109
Topic starter
(@beyondforce)
Estimable Member
Joined: 5 years ago

I have one problem with the Threaded layout, on the front forums page under the Recent topics, it shows the pinned posts at the top instead of the last post and I only want to show the last 5 posts.

Those pinned posts are important but only if you go into that specific forum. On the front forums page, it should show only the last posts and I can't control that 😒

2 Replies
Robert
Admin
(@robert)
Joined: 8 years ago

Support Team
Posts: 10506

@beyondforce

Screenshot please.

 

(@beyondforce)
Joined: 5 years ago

Estimable Member
Posts: 109
Robert
Posts: 10506
Admin
(@robert)
Support Team
Joined: 8 years ago

Please do these steps to make the change in update-safe way.

1. Create a /wpforo/ folder in your current active theme folder. If you have a child theme create it in the child theme folder.

2. Create /layouts/ folder in the /wpforo/ folder, then create /4/ folder in the /layout/ folder. So the end directory should look like this: /wp-content/themes/your-active-theme/wpforo/layouts/4/

3. Copy /wp-content/plugins/wpforo/wpf-themes/classic/layouts/4/forum.php file and paste in the new created directory: /wp-content/themes/your-active-theme/wpforo/layouts/4/

4. Edit the copied file and find this line:

$args = array( 'row_count' => WPF()->forum->options['layout_threaded_intro_topics_count'], 'forumids' => $child_forums, 'orderby' => 'type, modified', 'order' => 'DESC' );

5. Change it to this and save:

$args = array( 'row_count' => WPF()->forum->options['layout_threaded_intro_topics_count'], 'forumids' => $child_forums, 'orderby' => 'modified', 'order' => 'DESC' );

More information about update-safe way customization of wpForo temlate files you can find here: https://wpforo.com/docs/root/forum-themes/theme-customization/

1 Reply
(@beyondforce)
Joined: 5 years ago

Estimable Member
Posts: 109

@robert

Nice, it seems to be working. Great job 😁