Notifications
Clear all

Script [Closed] Topic viewers history timeout

6 Posts
2 Users
0 Reactions
1,048 Views
Posts: 3
Topic starter
(@cenek-durian)
Active Member
Joined: 3 years ago
Good morning, friends.
We are trying your good plugin wpForo in our non-profit school as "information sharing place" for teachers. I would like to ask you for a help with the plugin. When I create a new topic, I can see who read this, BUT this notification I see only for 1 hour. For example, this new topic read John, Susan and Carol. But after 1 hour this information is not visible / available. We would like to set more than 1 minute for this notification. Please, can I do anything for it? Example change any value in php script?
 
Thank you in advance! 🙂
Cenek (Teacher).
Topic Tags
5 Replies
Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 9 years ago
Posted by: @cenek-durian

We would like to set more than 1 minute for this notification.

What do you mean, saying more than 1 minute? The 1 hour is already more than 1 minute. Please specify an exact duration.

3 Replies
(@cenek-durian)
Joined: 3 years ago

Active Member
Posts: 3

@robert Of course 1 HOUR! :-)) Sorry.

Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10591

@cenek-durian,

But at this moment it keeps information up to 1 hours. Is this not enough? Do you want 10 days or 1 month?

(@cenek-durian)
Joined: 3 years ago

Active Member
Posts: 3

@robert I think 1 month will be perfect 🙂

Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 9 years ago

You can use this hook code in the functions.php file of your current active WordPress theme:

add_filter('wpforo_keep_visitors_data', function ($seconds){
return 2592000; //1 month
});