The Dark Wizard
Well-known member
Does anyone know if its possible to make it so that all recent status from users display instead of the most recent one? So we can make it a proper stream.
https://xfrocks.com/widget-framework/threads/bd-widget-framework-faq.10/How to hide specific widget from specific user groups ? For example ; I want to hide ads widget from admin , moderators and premium members.How can I do it ?
https://xfrocks.com/widget-framework/threads/bd-widget-framework-faq.10/How do you have a widget showing only in the about page?
Insert the following in the expression boxHow do you have a widget showing only in the about page?
$page['node_id'] == 50
For multiple forums I use in_array($forum['node_id'], array(2,3)). Perhaps this array thing also works for pages, you can try.Excellent. It works I have been waiting for this solution for 24 hours now. hehehe I appreciate your help.
If I want to add another page with the same widgets, I try to use the , but it doesn't work for the second page
$page['node_id'] == 50, $page['node_id'] == 51
or I also tried
$page['node_id'] == 50, 51
In that case, xfrocks should add this to FAQI already read that before posting here. the answer is not there
ErrorException: Invalid argument supplied for foreach() - library/WidgetFramework/Core.php:175
Generated By: Unknown Account, Yesterday at 12:20 PM
Stack Trace
#0 /data01/caf/public_html/community/library/WidgetFramework/Core.php(175): XenForo_Application::handlePhpError(2, 'Invalid argumen...', '/data01/caf/pub...', 175, Array)
#1 /data01/caf/public_html/community/library/WidgetFramework/Core.php(83): WidgetFramework_Core->addWidgets(Array)
#2 /data01/caf/public_html/community/library/WidgetFramework/Listener.php(16): WidgetFramework_Core->bootstrap()
#3 [internal function]: WidgetFramework_Listener::init_dependencies(Object(XenForo_Dependencies_Public), Array)
#4 /data01/caf/public_html/community/library/XenForo/CodeEvent.php(90): call_user_func_array(Array, Array)
#5 /data01/caf/public_html/community/library/XenForo/Dependencies/Abstract.php(202): XenForo_CodeEvent::fire('init_dependenci...', Array)
#6 /data01/caf/public_html/community/library/XenForo/FrontController.php(127): XenForo_Dependencies_Abstract->preLoadData()
#7 /data01/caf/public_html/community/index.php(13): XenForo_FrontController->run()
#8 {main}
Looks like an issue during installation. Nothing to worry about.Just after installing 2.4.8, I got this error:
Code:ErrorException: Invalid argument supplied for foreach() - library/WidgetFramework/Core.php:175 Generated By: Unknown Account, Yesterday at 12:20 PM Stack Trace #0 /data01/caf/public_html/community/library/WidgetFramework/Core.php(175): XenForo_Application::handlePhpError(2, 'Invalid argumen...', '/data01/caf/pub...', 175, Array) #1 /data01/caf/public_html/community/library/WidgetFramework/Core.php(83): WidgetFramework_Core->addWidgets(Array) #2 /data01/caf/public_html/community/library/WidgetFramework/Listener.php(16): WidgetFramework_Core->bootstrap() #3 [internal function]: WidgetFramework_Listener::init_dependencies(Object(XenForo_Dependencies_Public), Array) #4 /data01/caf/public_html/community/library/XenForo/CodeEvent.php(90): call_user_func_array(Array, Array) #5 /data01/caf/public_html/community/library/XenForo/Dependencies/Abstract.php(202): XenForo_CodeEvent::fire('init_dependenci...', Array) #6 /data01/caf/public_html/community/library/XenForo/FrontController.php(127): XenForo_Dependencies_Abstract->preLoadData() #7 /data01/caf/public_html/community/index.php(13): XenForo_FrontController->run() #8 {main}
However it all seems to be working, should I be worrying about this?
For multiple forums I use in_array($forum['node_id'], array(2,3)). Perhaps this array thing also works for pages, you can try.
@florencia remove your expression. It's causing error.
So it's working?Got it: You just added all this info to the FAQ. Great:
Q: How would I go about adding a sidebar just to one page and modifying it using the widget framework? I found out that pages use pagenode_container, but if I set that as my position all pages will have the added sidebar which I am not interested in.
A: You can use this with "pagenode_container" position:
PHP:
$page['node_id'] == <page-node-id>
We use essential cookies to make this site work, and optional cookies to enhance your experience.