Resource icon

[bd] Widget Framework 2.6.6

No permission to download
I tried that, but as I said since I use an expression ($page['node_id'] == 178) it doesn't appear in the forum list. Is there any way for it to appear in ONLY one page node and forum list?
Well, yeah. Then for your use case, best to have 2 widgets then. I can come up with an expression that works but it may break easily anyway.
 
You should choose type "Recent Threads (use first poster avatar)" in the Threads renderer ;)
Thanks! That solves everything EXCEPT my outstanding request to display what forum the post is associated with... open to ideas on how to fix that!
 
Thanks! That solves everything EXCEPT my outstanding request to display what forum the post is associated with... open to ideas on how to fix that!
You will need to edit template "thread_list_item" and include the forum info as you like.

Hmmm i can't display one widget at a certain Hook with with the expression
$page['node_id'] == 78

Ideas?
Which hook?
 
great, thanks

but what does this framework do actually? do you recommend to install this framework with your other addons?
which one to install first?
 
great, thanks

but what does this framework do actually? do you recommend to install this framework with your other addons?
which one to install first?

This add-on allows other add-on to add widgets to various places on the site. Many add-ons support it (not just my add-ons). It also allow you create Widget Pages.
 
Anyone using latest v2.5.9 with xf v1.3.x?
I'm getting lots of server log errors after recently upgrading ...

Fatal Error: Maximum execution time of 300 seconds exceeded - library/XenForo/Application.php:1131
Fatal Error: Maximum execution time of 300 seconds exceeded - library/XenForo/Template/Public.php:242


Public.php @ line 242 is a library call _setRequiredExternals. Appears that Widget Framework is the only add-on (I have) using this, outside of core xf. I first saw the error appear to shortly after updating xf.

Anyone have a suggestion?
 
Anyone using latest v2.5.9 with xf v1.3.x?
I'm getting lots of server log errors after recently upgrading ...

Fatal Error: Maximum execution time of 300 seconds exceeded - library/XenForo/Application.php:1131
Fatal Error: Maximum execution time of 300 seconds exceeded - library/XenForo/Template/Public.php:242


Public.php @ line 242 is a library call _setRequiredExternals. Appears that Widget Framework is the only add-on (I have) using this, outside of core xf. I first saw the error appear to shortly after updating xf.

Anyone have a suggestion?
Are you still having this problem? From which version of XenForo did you upgrade to 1.3?
 
Which hook?
If i try to get the widget on the hooks:
Code:
hook:page_container_content_title_bar
hook:ad_above_content

With the expression to force to display in one page, it won't display. :(
My Objective is: Display on widget of the page node i created that is Private (the node), but i want guests to see the widget (as due private it will ask guests to login). I can make it work globally it will display under title over login however can't limit that widget to that X page.

Also widget framework created this server error several times yesterday (i guess related to my tries to make that widget work)
Code:
Error Info
ErrorException: Undefined variable: page - library/WidgetFramework/WidgetRenderer.php(498) : runtime-created function:1
Generated By: Unknown Account, Today at 2:03 AM
Stack Trace
#0 /home/bacon/www/www/library/WidgetFramework/WidgetRenderer.php(498) : runtime-created function(1): XenForo_Application::handlePhpError(8, 'Undefined varia...', '/home/bacon/www...', 1, Array)
#1 [internal function]: __lambda_func(Array)
#2 /home/bacon/www/www/library/WidgetFramework/WidgetRenderer.php(502): call_user_func('?lambda_38', Array)
#3 /home/bacon/www/www/library/WidgetFramework/WidgetRenderer.php(588): WidgetFramework_WidgetRenderer->_executeExpression('$page['node_id'...', Array)
#4 /home/bacon/www/www/library/WidgetFramework/Core.php(397): WidgetFramework_WidgetRenderer->render(Array, 'find_new_wrappe...', Array, Object(XenForo_Template_Public), '')
#5 /home/bacon/www/www/library/WidgetFramework/Core.php(316): WidgetFramework_Core->_renderWidgetsFor('find_new_wrappe...', Array, Object(XenForo_Template_Public), '')
#6 /home/bacon/www/www/library/WidgetFramework/Listener.php(126): WidgetFramework_Core->renderWidgetsFor('find_new_wrappe...', Array, Object(XenForo_Template_Public), Array)
#7 [internal function]: WidgetFramework_Listener::template_post_render('find_new_wrappe...', '????<ul class="...', Array, Object(XenForo_Template_Public))
#8 /home/bacon/www/www/library/XenForo/CodeEvent.php(58): call_user_func_array(Array, Array)
#9 /home/bacon/www/www/library/XenForo/Template/Abstract.php(195): XenForo_CodeEvent::fire('template_post_r...', Array, 'find_new_wrappe...')
#10 /home/bacon/www/www/library/XenForo/Template/Public.php(110): XenForo_Template_Abstract->render()
#11 /home/bacon/www/www/library/XenForo/ViewRenderer/HtmlPublic.php(123): XenForo_Template_Public->render()
#12 /home/bacon/www/www/library/XenForo/FrontController.php(618): XenForo_ViewRenderer_HtmlPublic->renderContainer(Object(XenForo_Template_Public), Array)
#13 /home/bacon/www/www/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
#14 /home/bacon/www/www/index.php(13): XenForo_FrontController->run()
#15 {main}
Request State
array(3) {
  ["url"] => string(51) "find-new/71474/profile-posts"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Last edited:
If i try to get the widget on the hooks:
Code:
hook:page_container_content_title_bar
hook:ad_above_content

With the expression to force to display in one page, it won't display. :(
My Objective is: Display on widget of the page node i created that is Private (the node), but i want guests to see the widget (as due private it will ask guests to login). I can make it work globally it will display under title over login however can't limit that widget to that X page.

Also widget framework created this server error several times yesterday (i guess related to my tries to make that widget work)
Code:
Error Info
ErrorException: Undefined variable: page - library/WidgetFramework/WidgetRenderer.php(498) : runtime-created function:1
Generated By: Unknown Account, Today at 2:03 AM
Stack Trace
#0 /home/bacon/www/www/library/WidgetFramework/WidgetRenderer.php(498) : runtime-created function(1): XenForo_Application::handlePhpError(8, 'Undefined varia...', '/home/bacon/www...', 1, Array)
#1 [internal function]: __lambda_func(Array)
#2 /home/bacon/www/www/library/WidgetFramework/WidgetRenderer.php(502): call_user_func('?lambda_38', Array)
#3 /home/bacon/www/www/library/WidgetFramework/WidgetRenderer.php(588): WidgetFramework_WidgetRenderer->_executeExpression('$page['node_id'...', Array)
#4 /home/bacon/www/www/library/WidgetFramework/Core.php(397): WidgetFramework_WidgetRenderer->render(Array, 'find_new_wrappe...', Array, Object(XenForo_Template_Public), '')
#5 /home/bacon/www/www/library/WidgetFramework/Core.php(316): WidgetFramework_Core->_renderWidgetsFor('find_new_wrappe...', Array, Object(XenForo_Template_Public), '')
#6 /home/bacon/www/www/library/WidgetFramework/Listener.php(126): WidgetFramework_Core->renderWidgetsFor('find_new_wrappe...', Array, Object(XenForo_Template_Public), Array)
#7 [internal function]: WidgetFramework_Listener::template_post_render('find_new_wrappe...', '????<ul class="...', Array, Object(XenForo_Template_Public))
#8 /home/bacon/www/www/library/XenForo/CodeEvent.php(58): call_user_func_array(Array, Array)
#9 /home/bacon/www/www/library/XenForo/Template/Abstract.php(195): XenForo_CodeEvent::fire('template_post_r...', Array, 'find_new_wrappe...')
#10 /home/bacon/www/www/library/XenForo/Template/Public.php(110): XenForo_Template_Abstract->render()
#11 /home/bacon/www/www/library/XenForo/ViewRenderer/HtmlPublic.php(123): XenForo_Template_Public->render()
#12 /home/bacon/www/www/library/XenForo/FrontController.php(618): XenForo_ViewRenderer_HtmlPublic->renderContainer(Object(XenForo_Template_Public), Array)
#13 /home/bacon/www/www/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
#14 /home/bacon/www/www/index.php(13): XenForo_FrontController->run()
#15 {main}
Request State
array(3) {
  ["url"] => string(51) "find-new/71474/profile-posts"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
Your expression works for hook:page_container_content_title_bar but it will not work for hook:ad_above_content and the error was caused by the expression. You need to split the widget to 2 widgets for easy management. And maybe come up with some other expression for the position hook:ad_above_content
 
Are you still having this problem? From which version of XenForo did you upgrade to 1.3?
Yes, it's regular ...

Fatal Error: Maximum execution time of 300 seconds exceeded
14 minutes ago - library/XenForo/Template/Abstract.php:591
Fatal Error: Maximum execution time of 300 seconds exceeded
15 minutes ago - library/XenForo/Template/Public.php:242
Fatal Error: Maximum execution time of 300 seconds exceeded
20 minutes ago - library/XenForo/Template/Public.php:242
Fatal Error: Maximum execution time of 300 seconds exceeded
32 minutes ago - library/XenForo/Template/Abstract.php:591
Fatal Error: Maximum execution time of 300 seconds exceeded
47 minutes ago - library/XenForo/Template/Abstract.php:591
Fatal Error: Maximum execution time of 300 seconds exceeded
Today at 21:42 - library/XenForo/Template/Abstract.php:591
Fatal Error: Maximum execution time of 300 seconds exceeded
Today at 21:42 - library/XenForo/Template/Abstract.php:591
Fatal Error: Maximum execution time of 300 seconds exceeded
Today at 21:31 - library/XenForo/Template/Public.php:242
Fatal Error: Maximum execution time of 300 seconds exceeded
Today at 21:27 - library/XenForo/Template/Abstract.php:591

I was on xf v1.3.5, upgraded to v1.3.6 when then security patch was released. But I don't believe the errors commenced with that. I believe they commenced when I upgraded widget framework to v2.5.9 (from 2.5.8 ?)

Thanks.
 
You will need to edit template "thread_list_item" and include the forum info as you like.
Unfortunately, that also impacts the threads which appear in the normal forum view. So for example, when viewing the Introduce Yourself forum thread list, every thread will include "Introduce Yourself" as the originating forum, which is not a great experience IMO.

It makes a lot of sense on the thread view across ALL forums though, because it's a collection of threads from different places.

Maybe what I'm asking for is a separate template specific for widget thread view, which is based on thread_list_item but simply includes the originating forum.
 
Your expression works for hook:page_container_content_title_bar but it will not work for hook:ad_above_content and the error was caused by the expression. You need to split the widget to 2 widgets for easy management. And maybe come up with some other expression for the position hook:ad_above_content
Sadly it won't work for both of them, other expressions work, hmmm.
If i create the nodecallback to one custom template and tell the framework to display on that X template, will it recognize it and display on the page?
 
I'm having a weird issue with the Profile Posts widget not updating, or staying updated, when the page is refreshed. For instance, I'll type in a status update and it'll show in the list. Then I'll close the tab and open another one, and the profile post I just made isn't in the list.
 
Help! Having some serious issues with disappearing widgets and widgets not showing up at all.

I recently upgraded to Xen 1.4 and then upgraded to this newest version. When I checked after install, pretty much all the widgets were missing from my home page.

After spending 3 hours testing the nuances, some widgets, cause other widgets to disappear. For example if I have 4 widgets on the index page, when I go to add the 5th, the first 4 will effectively disappear. I've figured out that some widgets make everything disappear, some do not. For example, adding the "Recent Status" widget will cause all widgets to disappear-- the only widget that will show is "Recent Status".

There seems to be no rhyme or reason why some widgets render, some don't, and when one does render, the rest of them disappear.

Any ideas?
 
Back
Top Bottom