#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
Main Support Forums
How-to and Troubles...
make homepage show ...
 
Share:
Notifications
Clear all

make homepage show only resolved topics  

    Last Post
RSS

netvilox
Posts: 64
 netvilox
Topic starter
February 27, 2020 2:34 pm
(@netvilox)
Trusted Member
Joined: 2 years ago

please how do i make my homepage show only resolved topics only. users can as well click on the the other buttons like newest and unsolved and popular. but when my homepageis reloaded i want it to show the resolved topics as the default.

 

I love WPforo and the wpf team😁

Topic Tags
threaded layout topics order resolved
9 Replies
netvilox
Posts: 64
 netvilox
Topic starter
February 28, 2020 8:01 am
(@netvilox)
Trusted Member
Joined: 2 years ago

What about this please

I love WPforo and the wpf team😁

Reply
5 Replies
Alvina
 Alvina
Moderator
(@alvina)
Joined: 1 year ago

Member
Posts: 1883
Alvina - Facebook Alvina - Twitter
February 28, 2020 8:12 am
Reply tonetviloxnetvilox

@netvilox,

I've just asked our developers and currently, I'm waiting for the response from them. I'll update the topic asap.

 

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.

Reply
netvilox
 netvilox
(@netvilox)
Joined: 2 years ago

Trusted Member
Posts: 64
February 28, 2020 8:14 am
Reply toAlvinaAlvina
netvilox

@alvina OK thanks s million times

 

I love WPforo and the wpf team😁

Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 3 years ago

Support Team
Posts: 3760
Sofy - Facebook Sofy - Twitter
February 29, 2020 8:30 am
Reply tonetviloxnetvilox
Alvina
netvilox

@netvilox,

Below is provided a solution for Threaded layout:

1.Open the /wp-content/plugins/wpforo/wpf-themes/classic/layouts/4/forum.php file

2. Find the following code: 

<?php if( WPF()->forum->options['layout_threaded_filter_buttons'] ): ?>
<a class="wpf-threads-filter wpf-newest wpf-active" data-filter="newest" wpf-tooltip="<?php echo esc_attr(wpforo_phrase( 'Newest', false )) ?>" wpf-tooltip-position="top"><i class="fas fa-clock"></i></a>
<a class="wpf-threads-filter wpf-hottest" data-filter="hottest" wpf-tooltip="<?php echo esc_attr(wpforo_phrase( 'Popular', false )) ?>" wpf-tooltip-position="top"><i class="fab fa-hotjar"></i></a>
<a class="wpf-threads-filter wpf-solved" data-filter="solved" wpf-tooltip="<?php echo esc_attr(wpforo_phrase( 'Resolved', false )) ?>" wpf-tooltip-position="top"><i class="fas fa-check-circle"></i></a>
<a class="wpf-threads-filter wpf-unsolved" data-filter="unsolved" wpf-tooltip="<?php echo esc_attr(wpforo_phrase( 'Unsolved', false )) ?>" wpf-tooltip-position="top"><i class="fas fa-times-circle"></i></a>
<?php endif; ?>

3. replace with this one:

<?php if( WPF()->forum->options['layout_threaded_filter_buttons'] ): ?>
<a class="wpf-threads-filter wpf-solved wpf-active" data-filter="solved" wpf-tooltip="<?php echo esc_attr(wpforo_phrase( 'Resolved', false )) ?>" wpf-tooltip-position="top"><i class="fas fa-check-circle"></i></a>
<a class="wpf-threads-filter wpf-newest " data-filter="newest" wpf-tooltip="<?php echo esc_attr(wpforo_phrase( 'Newest', false )) ?>" wpf-tooltip-position="top"><i class="fas fa-clock"></i></a>
<a class="wpf-threads-filter wpf-hottest" data-filter="hottest" wpf-tooltip="<?php echo esc_attr(wpforo_phrase( 'Popular', false )) ?>" wpf-tooltip-position="top><i class="fab fa-hotjar"></i></a>
<a class="wpf-threads-filter wpf-unsolved" data-filter="unsolved" wpf-tooltip="<?php echo esc_attr(wpforo_phrase( 'Unsolved', false )) ?>" wpf-tooltip-position="top"><i class="fas fa-times-circle"></i></a>
<?php endif; ?>

Please don't forget to use the update-safe way for the customization.  Instruction is here: https://wpforo.com/docs/root/forum-themes/theme-customization/

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.

Reply
netvilox
 netvilox
(@netvilox)
Joined: 2 years ago

Trusted Member
Posts: 64
February 29, 2020 5:50 pm
Reply toSofySofy
netvilox
Alvina
netvilox

@sofy

There are many filed in the folder you mentioned above please specify. 

 

 

 Screenshot_20200229-184825.png

I love WPforo and the wpf team😁

Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 3 years ago

Support Team
Posts: 3760
Sofy - Facebook Sofy - Twitter
February 29, 2020 5:55 pm
Reply tonetviloxnetvilox
Sofy
netvilox
Alvina
netvilox

Sorry @netvilox,

The post above is just updated. Please check it.

 

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.

Reply
netvilox
Posts: 64
 netvilox
Topic starter
February 29, 2020 7:40 pm
(@netvilox)
Trusted Member
Joined: 2 years ago

@sofy

I tested the above code on local host but It didn't work. I saw the code on layout/4/forums

The resolved icon is highlighted but the topics it shows is the recent topics. see screenshots below.

And the trending topics icon is gone. 

 Screenshot_20200229-203503.png
 Screenshot_20200229-203745.png

I love WPforo and the wpf team😁

Reply
1 Reply
Robert
 Robert
Admin
(@robert)
Joined: 5 years ago

Support Team
Posts: 7560
March 1, 2020 8:02 am
Reply tonetviloxnetvilox

@netvilox,

That's good. Now you should change the default thread loading logic.

1. Edit the copied layouts/4/forum.php file in your active theme folder and find this line:

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

2. Change it to this and save:

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

 

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.

Reply
netvilox
Posts: 64
 netvilox
Topic starter
March 2, 2020 5:36 am
(@netvilox)
Trusted Member
Joined: 2 years ago

Thanks you very much @sofy and @Robert.

Actually I don't want all the topics created to show on the homepage. So after adding the above code I changed the name on phrases from 'solved'  to 'move to homepage'. Now only the topic I want will be shown on the homepage. 

Thank once again to the Wpforo team.

I love WPforo and the wpf team😁

Reply
  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • Changing to a threaded layout
    4 days ago
  • Post order
    1 month ago
  • Link to the last reply on threaded layout doesn't show up for guest posting
    3 months ago
  • Using Threaded format, how to mark Topic as Solved?
    6 months ago
  • how to use Category Layout (Extended) but my replay post like Threaded
    6 months ago
Topic Tags:  threaded layout (30), topics order (4), resolved (3),

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

  • User profile redirects to 404

    By Joonas Kolostov, 7 hours ago

  • content characters must be greater than 2

    By brucegyoung, 8 hours ago

  • login issue

    By mb_munich, 11 hours ago

  • Help getting Forum on front page

    By MunitedFC, 15 hours ago

  • Remove outline around avatars

    By MunitedFC, 17 hours ago

  • remove Login/Logout

    By MunitedFC, 18 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
  • profile20
  • menu20
View all tags (1468)

Recent Posts

  • RE: Remove outline around avatars

    Hi Tutrix. My apologies I checked the the custom CSS ...

    By MunitedFC, 41 mins ago

  • RE: User profile redirects to 404

    I think there's a bug. I created a forum topic that h...

    By Joonas Kolostov, 3 hours ago

  • RE: content characters must be greater than 2

    @brucegyoung ok, read this post maybe that will he...

    By Tutrix, 3 hours ago

  • RE: wpForo and SyntaxHighlighter Evolved

    wpForo Syntax Highlighter addon is now released:

    By Robert, 4 hours ago

  • RE: Integrate TinyMCE with Code Sample plugin

    wpForo Syntax Highlighter addon is released:

    By Robert, 4 hours ago

  • RE: Syntax highlighting

    If you copy and paste a big piece of code:

    By Robert, 4 hours ago

  • RE: How to use wpForo with SyntaxHighlighter Evolved

    The addon is released! If you copy and paste a ...

    By Robert, 4 hours ago

Share:
  Forum Statistics
20 Forums
7,767 Topics
39 K Posts
3 Online
14.8 K Members

Latest Post: Remove outline around avatars Our newest member: lawrencebatts99 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