Resource icon

[bd] Widget Framework 2.6.6

No permission to download
Thanks, so these are the two expressions I'd like

XenForo_Template_Helper_Core::helperIsMemberOf($visitor, 22)
WidgetFramework_positionCode != 'snog_socialgroups_discussion_list'

If I do it like this, I get errors.

Code:
XenForo_Template_Helper_Core::helperIsMemberOf($visitor, 22)
OR $_WidgetFramework_positionCode != 'snog_socialgroups_discussion_list'
Code:
!in_array($contentTemplate, array
( 'snog_socialgroups_discussion_list')
)
AND
XenForo_Template_Helper_Core::callHelper('ismemberof', array($visitor,22))
 
For the recent threads widget, what TTL do I need to type in so it is updated instantly?
How about the others?
 
Thanks

When I add this code,

Code:
!in_array($contentTemplate, array
( 'snog_socialgroups_discussion_list')
)
AND
XenForo_Template_Helper_Core::helperIsMemberOf($visitor, 31)

I get this error

Code:
Error Info
ErrorException: Undefined variable: contentTemplate - library/WidgetFramework/WidgetRenderer.php(498) : runtime-created function:1
Generated By: Unknown Account, A moment ago
Stack Trace

#0 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/WidgetFramework/WidgetRenderer.php(498) : runtime-created function(1): XenForo_Application::handlePhpError(8, 'Undefined varia...', '/var/www/vhosts...', 1, Array)
#1 [internal function]: __lambda_func(Array)
#2 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/WidgetFramework/WidgetRenderer.php(502): call_user_func('?lambda_577', Array)
#3 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/WidgetFramework/WidgetRenderer.php(588): WidgetFramework_WidgetRenderer->_executeExpression('!in_array($cont...', Array)
#4 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/WidgetFramework/Core.php(397): WidgetFramework_WidgetRenderer->render(Array, 'member_recent_c...', Array, Object(XenForo_Template_Public), Object(_WidgetFramework_ArrayOfString))
#5 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/WidgetFramework/Core.php(316): WidgetFramework_Core->_renderWidgetsFor('member_recent_c...', Array, Object(XenForo_Template_Public), '')
#6 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/WidgetFramework/Listener.php(126): WidgetFramework_Core->renderWidgetsFor('member_recent_c...', Array, Object(XenForo_Template_Public), Array)
#7 [internal function]: WidgetFramework_Listener::template_post_render('member_recent_c...', '??????<div>????...', Array, Object(XenForo_Template_Public))
#8 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/XenForo/CodeEvent.php(58): call_user_func_array(Array, Array)
#9 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/XenForo/Template/Abstract.php(195): XenForo_CodeEvent::fire('template_post_r...', Array, 'member_recent_c...')
#10 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/XenForo/Template/Public.php(110): XenForo_Template_Abstract->render()
#11 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/XenForo/ViewRenderer/HtmlPublic.php(123): XenForo_Template_Public->render()
#12 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/XenForo/FrontController.php(618): XenForo_ViewRenderer_HtmlPublic->renderContainer(Object(XenForo_Template_Public), Array)
#13 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
#14 /var/www/vhosts/mysite.co.uk/httpdocs/forum/index.php(13): XenForo_FrontController->run()
#15 {main}

Request State

array(3) {
  ["url"] => string(67) "http://mysite.co.uk/forum/members/steveg.34542/recent-content"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Delete... Close
 
Thanks

When I add this code,

Code:
!in_array($contentTemplate, array
( 'snog_socialgroups_discussion_list')
)
AND
XenForo_Template_Helper_Core::helperIsMemberOf($visitor, 31)

I get this error

Code:
Error Info
ErrorException: Undefined variable: contentTemplate - library/WidgetFramework/WidgetRenderer.php(498) : runtime-created function:1
Generated By: Unknown Account, A moment ago
Stack Trace

#0 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/WidgetFramework/WidgetRenderer.php(498) : runtime-created function(1): XenForo_Application::handlePhpError(8, 'Undefined varia...', '/var/www/vhosts...', 1, Array)
#1 [internal function]: __lambda_func(Array)
#2 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/WidgetFramework/WidgetRenderer.php(502): call_user_func('?lambda_577', Array)
#3 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/WidgetFramework/WidgetRenderer.php(588): WidgetFramework_WidgetRenderer->_executeExpression('!in_array($cont...', Array)
#4 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/WidgetFramework/Core.php(397): WidgetFramework_WidgetRenderer->render(Array, 'member_recent_c...', Array, Object(XenForo_Template_Public), Object(_WidgetFramework_ArrayOfString))
#5 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/WidgetFramework/Core.php(316): WidgetFramework_Core->_renderWidgetsFor('member_recent_c...', Array, Object(XenForo_Template_Public), '')
#6 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/WidgetFramework/Listener.php(126): WidgetFramework_Core->renderWidgetsFor('member_recent_c...', Array, Object(XenForo_Template_Public), Array)
#7 [internal function]: WidgetFramework_Listener::template_post_render('member_recent_c...', '??????<div>????...', Array, Object(XenForo_Template_Public))
#8 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/XenForo/CodeEvent.php(58): call_user_func_array(Array, Array)
#9 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/XenForo/Template/Abstract.php(195): XenForo_CodeEvent::fire('template_post_r...', Array, 'member_recent_c...')
#10 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/XenForo/Template/Public.php(110): XenForo_Template_Abstract->render()
#11 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/XenForo/ViewRenderer/HtmlPublic.php(123): XenForo_Template_Public->render()
#12 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/XenForo/FrontController.php(618): XenForo_ViewRenderer_HtmlPublic->renderContainer(Object(XenForo_Template_Public), Array)
#13 /var/www/vhosts/mysite.co.uk/httpdocs/forum/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
#14 /var/www/vhosts/mysite.co.uk/httpdocs/forum/index.php(13): XenForo_FrontController->run()
#15 {main}

Request State

array(3) {
  ["url"] => string(67) "http://mysite.co.uk/forum/members/steveg.34542/recent-content"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Delete... Close
What BD Widget addon version are you using?
 
Hello,
Is there a way to export the widget framework xml? I'm working on a test site and want to copy it later to the live site.
 
Is there a known compability issue between BD Widget Framework and this plugin?
https://xenforo.com/community/resources/notifications.870/ -> notifications 1.8.0 from @Chris D

Because after I installed Notifications the widget links from ACP dissapeared, but widget still shows as normal on the site.
But can't find/change/edit the existing ones or add new ones. All that is left is Create New Widget Page under Applications in ACP.

//edit: never mind, it was actually some kind of server non-reply request that made it non-available. All good now :)
 
Last edited:
Could we have a single line text box for every widget please in which people enter a URL.
If that URL is entered, the widget title is linked to that URL?
Sorry if this has been asked before.
 
Use DB Widget Feature "Reveal Mode" when creating new widget for you to select the correct template location/hook.
 
Top Bottom