User Activity by Xon

User Activity by Xon 2.13.4

No permission to download
Code:
    ErrorException: Template error: [E_USER_WARNING] Macro public:UA_ViewContainer_macros:viewerCounts is unknown src/XF/Template/Templater.php:660

Stack-Trace

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/homepages/...', 660)
#1 src/XF/Template/Templater.php(660): trigger_error('Macro public:UA...', 512)
#2 src/XF/Template/Templater.php(773): XF\Template\Templater->getTemplateMacro('public', 'UA_ViewContaine...', 'viewerCounts')
#3 internal_data/code_cache/templates/l2/s4/public/thread_list_macros.php(329): XF\Template\Templater->callMacro('UA_ViewContaine...', 'viewerCounts', Array, Array)
#4 src/XF/Template/Templater.php(990): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#5 src/XF/Template/Templater.php(926): XF\Template\Templater->renderExtensionInternal('main_cell', Array, Array, Object(XF\Template\ExtensionSet))
#6 internal_data/code_cache/templates/l2/s4/public/thread_list_macros.php(662): XF\Template\Templater->renderExtension('main_cell', Array, Object(XF\Template\ExtensionSet))
#7 src/XF/Template/Templater.php(827): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#8 internal_data/code_cache/templates/l2/s4/public/whats_new_posts.php(249): XF\Template\Templater->callMacro('thread_list_mac...', 'item', Array, Array)
#9 src/XF/Template/Templater.php(827): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, NULL)
#10 internal_data/code_cache/templates/l2/s4/public/whats_new_posts.php(348): XF\Template\Templater->callMacro('whats_new_posts', 'results', Array, Array)
#11 src/XF/Template/Templater.php(1654): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, NULL)
#12 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('whats_new_posts', Array)
#13 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#14 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:WhatsNew\\Pos...', 'public:whats_ne...', Array)
#15 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#16 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#17 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#18 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#19 src/XF.php(524): XF\App->run()
#20 index.php(20): XF::runApp('XF\\Pub\\App')
#21 {main}
Make sure src/addons/SV/UserActivity/_output doesn't exist when attempting to use the web installer.\

If that folder exists, remove it and then rebuild the add-on (either by the admincp or cli)
 
Hello @Xon,
The function to display only a subset of users no longer seems to work since this (current) version.

Now all users in a topic are always shown instead of the 21 that are entered in the options.

1698820654638.png

1698820711978.png
1698821050506.webp
#
 
I just noticed, that viewer counters are not displayed in forum view (thread lists) for sticky threads.
 
Is there a way I can make it so it shows "users viewing thread in last x time". I basically want to make it so it shows last 24 hours who viewed the thread instead of currently viewing.
 

Attachments

  • Screenshot 2023-11-05 230346.webp
    Screenshot 2023-11-05 230346.webp
    18.7 KB · Views: 7
This add-on is hard-coded to only show the last ~15 minutes and just doesn't keep the data that long. It would require back-end changes to make that possible.
 
@Xon is there any way to hide viewing info from user while user's thread is waiting for approval?
Not currently, but if staff/mods disable "Show your current activity" it doesn't show them to users when viewing that thread pending approval
 
Suggestion: show or find threads whith high visitor count.

Sometimes you get a lot of visitors for one thread and this would make it easy to find.
 
Last edited by a moderator:
XF2.3 will have trending content which supports using the visitor count as a source of how "hot" a thread is, as such I have no plans to re-implement that for XF2.2
 
Top Bottom