Notifications
Clear all

Script Topic viewers history timeout

6 Posts
2 Users
0 Likes
445 Views
cenek.durian
Posts: 4
Topic starter
(@cenek-durian)
New Member
Joined: 1 year 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: 9262
Admin
(@robert)
Support Team
Joined: 6 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.

Reply
3 Replies
cenek.durian
(@cenek-durian)
Joined: 1 year ago

New Member
Posts: 4

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

Reply
Robert
Admin
(@robert)
Joined: 6 years ago

Support Team
Posts: 9262

@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?

Reply
cenek.durian
(@cenek-durian)
Joined: 1 year ago

New Member
Posts: 4

@robert I think 1 month will be perfect ๐Ÿ™‚

Reply
Robert
Posts: 9262
Admin
(@robert)
Support Team
Joined: 6 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
});
Reply
Share: