Notifications
Clear all

Script [Closed] Topic viewers history timeout

6 Posts
2 Users
0 Likes
865 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: 10498
Admin
(@robert)
Support Team
Joined: 8 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: 8 years ago

Support Team
Posts: 10498

@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: 10498
Admin
(@robert)
Support Team
Joined: 8 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
});