Resource icon

[bd] Widget Framework 2.6.6

No permission to download
If I put a widget into a message, fx by using the hooks that are in messages, can I use an expression that makes sure the widget is only shown in 1. post?
Depending on the hook, you can check its parameter to make sure the position == 0.

Code:
An exception occurred: Array to string conversion in /var/www/netrider/library/WidgetFramework/Core.php on line 379
    1.    XenForo_Application::handlePhpError() in WidgetFramework/Core.php at line 379
    2.    WidgetFramework_Core->_saveCachedWidget() in WidgetFramework/Core.php at line 413
    3.    WidgetFramework_Core::saveCachedWidget() in WidgetFramework/WidgetRenderer.php at line 428
    4.    WidgetFramework_WidgetRenderer->render() in WidgetFramework/Core.php at line 254
    5.    WidgetFramework_Core->_renderWidgetsFor() in WidgetFramework/Core.php at line 192
    6.    WidgetFramework_Core->renderWidgetsFor() in WidgetFramework/Listener.php at line 30
    7.    WidgetFramework_Listener::template_post_render()
    8.    call_user_func_array() in XenForo/CodeEvent.php at line 54
    9.    XenForo_CodeEvent::fire() in XenForo/Template/Abstract.php at line 195
    10.    XenForo_Template_Abstract->render() in XenForo/Template/Public.php at line 110
    11.    XenForo_Template_Public->render() in XenForo/ViewRenderer/HtmlPublic.php at line 119
    12.    XenForo_ViewRenderer_HtmlPublic->renderContainer() in XenForo/FrontController.php at line 565
    13.    XenForo_FrontController->renderView() in XenForo/FrontController.php at line 156
    14.    XenForo_FrontController->run() in /var/www/netrider/index.php at line 18

What causes the above? I've had to disable WidgetFramework.
Is this still happening? Looks like a string truncate problem in the db.
 
xfrocks, any chance next update could add an "extra threads cutoff" to thread widget, "most viewed xx days", so we could show fx "Most viewed today" or "Most viewed this month" ?
You can have more than one widget of the same renderer on the same page. I'm not sure why you need an extra threads cutoff?
 
Would it be a good idea if lots of other addons supported Widget Framework ?
Like the new Simple Portal ?

or can you use widget framework on any addon regardless ?
You can use [bd] Widget Framework on any pages rendered by any add-on. However, add-on support is still needed and will make the add-on sidebar blocks available in across the forums.

I have my sidebar on almost all pages - can widget framework do that? or does it only display on the forum list?

Also I have my own sidebar sections which are just lists of links in html.
I don't understand the instructions on making a new widget at all - it's very high level for me.
Can I just include an XF sidebar container with text and links like I do now?
Yes, you can have the widgets in any pages.
And yes, you can input HTML or include a template.
 
You can have more than one widget of the same renderer on the same page. I'm not sure why you need an extra threads cutoff?
If I will show "Most read today" og "Most read this week" (among threads created last 180 days),
I need: cutoff: created 180 days and cutoff: 1 day or 1 week for read.
 
If I will show "Most read today" og "Most read this week" (among threads created last 180 days),
I need: cutoff: created 180 days and cutoff: 1 day or 1 week for read.
There is way to know the number of times a thread has been read during a period of time. Your best bet is use most view with different cut off values.

Yes. Just re-enabled and same problem.
Where would I start to look to check on this?
Please start a conversation with me with your site info. Sorry for the problem.
 
You can use [bd] Widget Framework on any pages rendered by any add-on. However, add-on support is still needed and will make the add-on sidebar blocks available in across the forums.
To encourage addons to use the widget framework ...
is there any "Easy Guide to adding widget framework to your addon" ?

Do any other addons use widget framework for their sidebar blocks ?
 
When accessing /admin.php?widgets/add -> 500 server error.

From the http error log ....

PHP Fatal error: Declaration of ExtraStats_WidgetRenderer_Users::_getRenderTemplate() must be compatible with WidgetFramework_WidgetRenderer::_getRenderTemplate(array $widget, $positionCode, array $params) in /<XF dir path>/library/ExtraStats/WidgetRenderer/Users.php on line 25
 
PHP Fatal error: Declaration of ExtraStats_WidgetRenderer_Users::_getRenderTemplate() must be compatible with WidgetFramework_WidgetRenderer::_getRenderTemplate(array $widget, $positionCode, array $params) in /<XF dir path>/library/ExtraStats/WidgetRenderer/Users.php on line 25

Looks like some add-on has been built against an old version of the [bd] Widget Framework. Try contacting the author and ask him/her to upgrade the add-on. This type of breakage is very rare because the framework is now stable and this kind of thing will not happen now or in the near future.
 
Scenario: The *only* widget I have active is 'Visitor Panel' set to position:all
Result: http times-out and eventually errors with 500 server error. http error log shows that it fails due to memory_limit (=256M) from php.ini being reached. I set it to -1, and then I get a huge memory usage on my server and eventual 500 server error
 
Any idea why could it be that the Widget Framework isn't displaying the custom widgets at all? Tried re-installing with no luck, disabling APC and several other add-ons and still, custom widgets won't show, simply shows the default widgets like if nothing was modified.
 
Back
Top Bottom