Limited Support
Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.
We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!
Merry Christmas and Happy Holidays! π
Hi Support,
The way we are using wpForo needs that in the threaded layout I -as the one who is posting- could "like" my own post.
Is there a way to enable liking one's own post (topic or reply)?
Thanks.
Hi @jorgew,
I'm really sorry, but there is no option that'll allow users to like their own posts.
Please follow the steps:Β
- Find the buttons function in wp-content/plugins/wpforo/wpf-includes/class-template.php file
- Scroll to like case
- Remove the following part as shown in the screenshot below.
&& WPF()->current_userid != $post['userid']
Important: those changes will be overwritten during the upgrade process and customizations will be lost.
Hi @sofy,
It works, perfectly, but only in extended layout (where I don't need it), not in the threaded one, which is the layout where I need it.
This is the current code I'm using (without what you indicated):
case 'like':
if( WPF()->perm->forum_can('l', $forumid) && $login ) {
$like_status = ( WPF()->post->is_liked( $postid, WPF()->current_userid ) === FALSE ? 'wpforo-like' : 'wpforo-unlike' );
$like_icon = ( $like_status == 'wpforo-like') ? 'up' : 'down';
$button_html[] = '<span class="wpf-action '. $like_status .'" data-postid="'. wpforo_bigintval($postid) .'"><i class="fas fa-thumbs-'. esc_attr($like_icon) .' wpfsx wpforo-like-ico"></i><span class="wpforo-like-txt">' . wpforo_phrase( str_replace('wpforo-', '', $like_status), false) . '</span></span>';
}
break;
Icon will not not show up in threaded layout.
Yes @sofy, it works!!!
Thank you sooooooo much!
And thanksΒ for your always presentΒ willingness to help, and for your generosity too!! Β π π