Members recently online

Members recently online [Paid] 3.0

No permission to buy ($35.00)
I am looking for one where you can assign permissions to view to admins only.

So you want only Admins to view the widget?

On the widget settings, under "Display Condition", put:

Code:
$xf.visitor.is_admin

If you want it to be from specific groups, then put:

Code:
{{$xf.visitor.isMemberOf([x, y])}}

Replace X and Y with the group ID numbers, you can also add more. Like:
Code:
{{$xf.visitor.isMemberOf([3, 4, 8, 10])}}
 
Hi Andy,

could it be that this error is caused by the Members Recently Online ?


Server error log
  • ErrorException: [E_WARNING] Undefined array key ""
  • src/XF/Mvc/Entity/Manager.php:584
  • Generated by: Unknown account
  • Feb 13, 2025 at 5:47 AM

Stack trace​

#0 src/XF/Mvc/Entity/Manager.php(584): XF::handlePhpError(2, '[E_WARNING] Und...', '/var/www/vhosts...', 584)
#1 src/XF/Mvc/Entity/Finder.php(1434): XF\Mvc\Entity\Manager->hydrateFromGrouped(Array, Array)
#2 src/XF/Mvc/Entity/Manager.php(214): XF\Mvc\Entity\Finder->fetch()
#3 src/XF/Repository/Node.php(146): XF\Mvc\Entity\Manager->findByIds('XF:Forum', Array, Array)
#4 src/XF/Repository/Node.php(20): XF\Repository\Node->loadNodeTypeDataForNodes(Object(XF\Mvc\Entity\ArrayCollection))
#5 src/XF/Pub/Controller/Forum.php(54): XF\Repository\Node->getNodeList()
#6 src/addons/Andy/MembersRecentlyOnline/XF/Pub/Controller/Forum.php(16): XF\Pub\Controller\Forum->actionList(Object(XF\Mvc\ParameterBag))
#7 src/XF/Mvc/Dispatcher.php(352): Andy\MembersRecentlyOnline\XF\Pub\Controller\Forum->actionList(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF\\Pub\\Controll...', 'List', Object(XF\Mvc\RouteMatch), Object(SV\RedisCache\XF\Pub\Controller\Forum), Object(XF\Mvc\Reply\Reroute))
#9 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\RedisCache\XF\Pub\Controller\Forum), Object(XF\Mvc\Reply\Reroute))
#10 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(2513): XF\Mvc\Dispatcher->run()
#12 src/XF.php(524): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}

Request state​

array(4) {
["url"] => string(1) "/"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
Back
Top Bottom