Resource icon

User Activity by Xon 2.3.2

No permission to download

Xon

Well-known member
Xon updated User Activity by Xon with a new update entry:

2.2.0 - Feature Update

  • Support displaying viewing user list on Forums
  • Support adding view counts next to content. (With style property).
    Supported locations;
    • Thread List
    • Sticky Thread List
    • Index Page Forums
    • Forum List
    • Sub forum List
    • Find New Threads
    • Watched Forum List
    • Watched Thread List
    • Conversation List
    Supported widgets (with per widget config)
    • New Threads widget (per widget config)
    • New Posts widget (per widget config)
  • Supports MySQL...
Read the rest of this update entry...
 

JoyFreak

Formerly Zuse
Can you please allow 'viewer' to show for categories too as well ?

These in red arrows are categories.
categories.png
 

Nirjonadda

Well-known member
@Xon Can not install /admin.php?tools/run-job

Code:
Oops! We ran into some problems.
Line 15: Template tags are not well formed. Tag h1 was found when expecting title.
 

Xon

Well-known member
I need to see what additional template modifications you have for forum_view template, and if you have modified that template
 

Xon

Well-known member
My guess is this is a matter of the template modification execution ordering needs tinkering to adjust when it injects a <xf:h1> into the template when one doesn't exist.
 

mcatze

Well-known member
Maybe you two should not only add an H1 tag, you should ask for an existing tag and than add or edit.. ;)
 

ichpen

Well-known member
@Xon

Thanks but a few issues with this one:

1. With latest 2.20 version looks like thread_list_macros is not applying. Using UIX 2 style.
2. Also only seeing forum list counts - not thread list or others.
3. You have support for NixFifty Tickets and Calendar in the options list however he's yet to release XF2 versions of those addons so I assume this is forward looking or a typo carried over from XF1?
4. Got a few of the below errors in my log:

  • ErrorException: [E_WARNING] Illegal string offset 'type'
  • src/addons/SV/UserActivity/Repository/UserActivity.php:99
  • Generated by: Unknown account
  • Sep 1, 2018 at 11:57 AM
Stack trace
#0 src/addons/SV/UserActivity/Repository/UserActivity.php(99): XF::handlePhpError(2, '[E_WARNING] Ill...', '/home/nginx/dom...', 99, Array)
#1 src/addons/SV/UserActivity/ActivityInjector.php(41): SV\UserActivity\Repository\UserActivity->insertUserActivityIntoViewResponse('XF\\Pub\\Controll...', Object(XF\Mvc\Reply\View))
#2 src/XF/Pub/Controller/AbstractController.php(39): SV\UserActivity\XF\Pub\Controller\Thread->postDispatchController('Index', Object(XF\Mvc\ParameterBag), Object(XF\Mvc\Reply\View))
#3 src/XF/Mvc/Controller.php(278): XF\Pub\Controller\AbstractController->postDispatchType('Index', Object(XF\Mvc\ParameterBag), Object(XF\Mvc\Reply\View))
#4 src/XF/Mvc/Dispatcher.php(271): XF\Mvc\Controller->postDispatch('Index', Object(XF\Mvc\ParameterBag), Object(XF\Mvc\Reply\View))
#5 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'Index', 'html', Object(XF\Mvc\ParameterBag), 'forums', Object(SV\UserActivity\XF\Pub\Controller\Thread), NULL)
#6 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#8 src/XF.php(328): XF\App->run()
#9 index.php(13): XF::runApp('XF\\Pub\\App')
#10 {main}
Request state
array(4) {
["url"] => string(69) "/threads/confession-is-good-for-the-soul-so-here-is-mine.3558/page-15"
["referrer"] => bool(false)
["_GET"] => array(1) {
["/threads/confession-is-good-for-the-soul-so-here-is-mine_3558/page-15"] => string(0) ""
}
["_POST"] => array(0) {
}
}
 
Last edited:

Xon

Well-known member
3. You have support for NixFifty Tickets and Calendar in the options list however he's yet to release XF2 versions of those addons so I assume this is forward looking or a typo carried over from XF1?
These options need to be there to ensure upgrades happen without losing those options for when NixFifty Tickets and Calendar is fully ported to XF2.

1. With latest 2.20 version looks like thread_list_macros is not applying. Using UIX 2 style.
2. Also only seeing forum list counts - not thread list or others.
This is likely a UI.X2 style issue, can you check with the default theme?


Got a few of the below errors in my log:

  • ErrorException: [E_WARNING] Illegal string offset 'type'
  • src/addons/SV/UserActivity/Repository/UserActivity.php:99
  • Generated by: Unknown account
  • Sep 1, 2018 at 11:57 AM
Stack trace
#0 src/addons/SV/UserActivity/Repository/UserActivity.php(99): XF::handlePhpError(2, '[E_WARNING] Ill...', '/home/nginx/dom...', 99, Array)
#1 src/addons/SV/UserActivity/ActivityInjector.php(41): SV\UserActivity\Repository\UserActivity->insertUserActivityIntoViewResponse('XF\\Pub\\Controll...', Object(XF\Mvc\Reply\View))
#2 src/XF/Pub/Controller/AbstractController.php(39): SV\UserActivity\XF\Pub\Controller\Thread->postDispatchController('Index', Object(XF\Mvc\ParameterBag), Object(XF\Mvc\Reply\View))
#3 src/XF/Mvc/Controller.php(278): XF\Pub\Controller\AbstractController->postDispatchType('Index', Object(XF\Mvc\ParameterBag), Object(XF\Mvc\Reply\View))
#4 src/XF/Mvc/Dispatcher.php(271): XF\Mvc\Controller->postDispatch('Index', Object(XF\Mvc\ParameterBag), Object(XF\Mvc\Reply\View))
#5 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'Index', 'html', Object(XF\Mvc\ParameterBag), 'forums', Object(SV\UserActivity\XF\Pub\Controller\Thread), NULL)
#6 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#8 src/XF.php(328): XF\App->run()
#9 index.php(13): XF::runApp('XF\\Pub\\App')
#10 {main}
Request state
array(4) {
["url"] => string(69) "/threads/confession-is-good-for-the-soul-so-here-is-mine.3558/page-15"
["referrer"] => bool(false)
["_GET"] => array(1) {
["/threads/confession-is-good-for-the-soul-so-here-is-mine_3558/page-15"] => string(0) ""
}
["_POST"] => array(0) {
}
}
This may be an add-on conflict which is preventing this add-on from setting itself up properly. Please try disabling all other add-ons and seeing it if works.

The problem is that SEO2 adds the H1 tag and this add-on with the TMS "forum_view_UA_Containers" also. And two don't go.
I don't know how to solve this.
I've got a fix for this in the next version. It split injecting the xf:h1 tag and the macro injection into two template modificaitons.
 

Xon

Well-known member
Xon updated User Activity by Xon with a new update entry:

2.2.1 - Bugfix/Compatibility update

  • Fix using 'thread' phrase used when viewing a forum's user list.
  • Add detection for invalid configuration (logs in release, throws an error in debug mode)
  • Add compatibility fix for @au lait SEO add-on
  • Add view count totals (optional) to thread view
  • Add view count totals (optional) to category view
  • Add view count totals (optional) to categories in the forum index
  • Various bugfixes around pushing thread view counts to parent containers.
Read the rest of this update entry...
 

Rhodium

Member

Rhodium

Member
@Rhodium I need a stack trace.
I just rollback, but it happends in a clean install too, this error entering in a node:

An exception occurred: [ArgumentCountError] Too few arguments to function SV\UserActivity\Repository\UserActivity::pushViewUsageToParent(), 2 passed in C:\wamp64\www\src\addons\SV\UserActivity\XF\Pub\Controller\Forum.php on line 26 and at least 3 expected in src\addons\SV\UserActivity\Repository\UserActivity.php on line 859

  1. SV\UserActivity\Repository\UserActivity->pushViewUsageToParent() in src/addons/SV/UserActivity/XF/Pub/Controller/Forum.php at line 26
  2. SV\UserActivity\XF\Pub\Controller\Forum->actionForum() in src/XF/Mvc/Dispatcher.php at line 249
  3. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88
  4. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
  5. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1931
  6. XF\App->run() in src/XF.php at line 328
  7. XF::runApp() in index.php at line 13
 
Top