Notifications
Clear all

wpForo 1.x.x [Closed] Online Users Widget

9 Posts
3 Users
0 Reactions
2,767 Views
Posts: 533
Topic starter
(@central4allgmail-com)
Prominent Member
Joined: 6 years ago

I want to make some changes to the online users widget and I want to know which php files renders it. Basically add some colors to the different profile types, but I can't find that php file to edit for the widget! Is it a core wordpress file or a wpforo file?

8 Replies
Sofy
Posts: 4900
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi @central4allgmail-com,

You need to modify the wpForo_Widget_online_members class, it can be found in the wp-content/plugins/wpforo/wpf-includes/functions-template.php file. 

However, you'll need to keep these changes, in a case to not lose it during the upgrade process.

Posts: 533
Topic starter
(@central4allgmail-com)
Prominent Member
Joined: 6 years ago

Thanks!

Is there a way to create a folder with overrides so my changes aren't lost during an upgrade?

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

Support Team
Posts: 10591
Posted by: CENTRAL4ALL

Thanks!

Is there a way to create a folder with overrides so my changes aren't lost during an upgrade?

You can not use both. wpForo loads either the core template file or your customized template file from the WordPress theme /wpforo/ folder.

Posts: 533
Topic starter
(@central4allgmail-com)
Prominent Member
Joined: 6 years ago

To update:

I know I can create overrides for theme files like this:

https://wpforo.com/docs/root/forum-themes/theme-customization/

 

But I want to create an override for other wpforo files like the above functions-template.php 

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

Support Team
Posts: 10591
Posted by: CENTRAL4ALL

To update:

I know I can create overrides for theme files like this:

https://wpforo.com/docs/root/forum-themes/theme-customization/

But I want to create an override for other wpforo files like the above functions-template.php 

In this case you should use hooks to change something. This is a core file, this is not a template fie to customize.

Posts: 533
Topic starter
(@central4allgmail-com)
Prominent Member
Joined: 6 years ago

Thanks!

Page 1 / 2