Displays user activity below content.
Supported content:
- Threads
- Conversations
Permissions/Options
Note
- View users who are viewing content
Originally derived from @rainmotorsports's [RainDD] User Activity. Now only shares some UI elements, and permission name.
- Support XF2.1+ "cache context" of "userActivity" to use a dedicated redis instance for activity
- Tweak header CSS
- Correct how paging through redis results is done, to ensure all items are visited as expected. This only effects installs with very large number of redis keys in the one instance
- php 7+ type hinting
- Force global namespace for functions which are known to be optimizable to bytecode in php, or known global functions to avoid a current namespace lookup for the function.
- Fix forum activity not registering as expected when a node_name is set on the forum
- Fix logging XF2.1+ reaction events as thread activity & remove old XF2.0 like handling for posts.
- Replace single svUserActivity_users_who_are_viewing_this_x phrase with various...
Fix "[E_NOTICE] Undefined index: id" error on viewing conversation
php 8.1 compatibility fix
- Require XenForo 2.2+
- Require StandardLib v1.11.0+
- Improve support for rendering templates in the mail & api contexts by correctly injecting template filters/functions into multiple rendering contexts
- Require php 7.2+
- Require StandardLib v1.18.0+
- Require Redis Cache v2.14.0 if redis is used
- Rename some addon options to read better, not functional changes
- Improve performance when pruning view-data for large numbers of threads by using batching when writing to redis
- Add "View user activity counters" permission. Control if the 'x viewing now' counter displays for a given user-group
- Add "View user names/avatars in activity block" permissions. If false, the phrase svUserActivity_viewing_users_are_empty is displayed if it is not empty.
This can be styled using the css selector #uaThreadViewContainer .empty-list- Add "Report View" and "Reports List" as options for displaying viewer counts
- Split "Reports viewing container position" from...
- Remove empty addon options
"Viewing users cut-off" option was ignored and default to 250
Requires StandardLib v1.19.0+
If installed, requires Redis Cache 2.17.0+
XF2.3 compatibility update
php 8.4 compatibility fix
- Fix XF2.2 support when injecting user activity into a thread
Update a number of addon options to use phrases
Improve extendibility of the add-on
Fix several XF2.3 issues