Resource icon

[bd] Widget Framework 2.6.6

No permission to download
recentdiscussions.png


I have a few quick questions that hopefully are not too difficult to do, but I just can't find the info anywhere. This is in relation to editing my new widget "Recent Discussions".

1.) Is it possible to bold the thread titles so they look more like the thread titles in the forum view? (basically, I just want all text within the widget frame to be bolded :))
2.) Is it possible to have a cut-off point? As you can see, one of the threads I made as a test managed to jump to a second line. I'd like to keep them on one line each if possible.
3.) Is it possible to change the little tag image on the left hand side of the "recent discussions". Every time I create a new widget it defaults to that little tag image and it looks silly to have a few widgets all with the same image.

Any help appreciated. Thanks :).
 
I have just tired to hand run the user group promote cron via admin and it give me the following error that seems linked to this add-on.

PHP:
ErrorException: Argument 1 passed to WidgetFramework_Template_Trojan::WidgetFramework_setPageContainer() must be an instance of XenForo_Template_Public, instance of XenForo_Template_Admin given, called in /var/www/vhosts/****/httpdocs/library/WidgetFramework/Listener.php on line 76 and defined - library/WidgetFramework/Template/Trojan.php:9
Generated By: C.Birch, 13 min ago
Stack Trace

#0 /var/www/vhosts/****/httpdocs/library/WidgetFramework/Template/Trojan.php(9): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', '/var/www/vhosts...', 9, Array)
#1 /var/www/vhosts/****/httpdocs/library/WidgetFramework/Listener.php(76): WidgetFramework_Template_Trojan::WidgetFramework_setPageContainer(Object(XenForo_Template_Admin))
#2 [internal function]: WidgetFramework_Listener::template_create('PAGE_CONTAINER', Array, Object(XenForo_Template_Admin))
#3 /var/www/vhosts/****/httpdocs/library/XenForo/CodeEvent.php(58): call_user_func_array(Array, Array)
#4 /var/www/vhosts/****/httpdocs/library/XenForo/Template/Abstract.php(82): XenForo_CodeEvent::fire('template_create', Array, 'PAGE_CONTAINER')
#5 /var/www/vhosts/****/httpdocs/library/XenForo/Dependencies/Admin.php(154): XenForo_Template_Abstract->__construct('PAGE_CONTAINER', Array)
#6 /var/www/vhosts/****/httpdocs/library/XenForo/ViewRenderer/Abstract.php(263): XenForo_Dependencies_Admin->createTemplateObject('PAGE_CONTAINER', Array)
#7 /var/www/vhosts/****/httpdocs/library/XenForo/ViewRenderer/HtmlAdmin.php(135): XenForo_ViewRenderer_Abstract->createTemplateObject('PAGE_CONTAINER', Array)
#8 /var/www/vhosts/****/httpdocs/library/XenForo/FrontController.php(604): XenForo_ViewRenderer_HtmlAdmin->renderContainer('Cron entry was ...', Array)
#9 /var/www/vhosts/****/httpdocs/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_Message), Object(XenForo_ViewRenderer_HtmlAdmin), Array)
#10 /var/www/vhosts/****/httpdocs/admin.php(13): XenForo_FrontController->run()
#11 {main}

Request State

array(3) {
  ["url"] => string(131) "http://www.****/admin.php?cron/userGroupPromotions/run&_xfToken=1%2C1389467211%2Cb714021a94e5498c527d20c400ed6155293fd0ae"
  ["_GET"] => array(2) {
    ["cron/userGroupPromotions/run"] => string(0) ""
    ["_xfToken"] => string(53) "1,1389467211,b714021a94e5498c527d20c400ed6155293fd0ae"
  }
  ["_POST"] => array(0) {
  }
}
 
I have just tired to hand run the user group promote cron via admin and it give me the following error that seems linked to this add-on.

PHP:
ErrorException: Argument 1 passed to WidgetFramework_Template_Trojan::WidgetFramework_setPageContainer() must be an instance of XenForo_Template_Public, instance of XenForo_Template_Admin given, called in /var/www/vhosts/****/httpdocs/library/WidgetFramework/Listener.php on line 76 and defined - library/WidgetFramework/Template/Trojan.php:9
Generated By: C.Birch, 13 min ago
Stack Trace

#0 /var/www/vhosts/****/httpdocs/library/WidgetFramework/Template/Trojan.php(9): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', '/var/www/vhosts...', 9, Array)
#1 /var/www/vhosts/****/httpdocs/library/WidgetFramework/Listener.php(76): WidgetFramework_Template_Trojan::WidgetFramework_setPageContainer(Object(XenForo_Template_Admin))
#2 [internal function]: WidgetFramework_Listener::template_create('PAGE_CONTAINER', Array, Object(XenForo_Template_Admin))
#3 /var/www/vhosts/****/httpdocs/library/XenForo/CodeEvent.php(58): call_user_func_array(Array, Array)
#4 /var/www/vhosts/****/httpdocs/library/XenForo/Template/Abstract.php(82): XenForo_CodeEvent::fire('template_create', Array, 'PAGE_CONTAINER')
#5 /var/www/vhosts/****/httpdocs/library/XenForo/Dependencies/Admin.php(154): XenForo_Template_Abstract->__construct('PAGE_CONTAINER', Array)
#6 /var/www/vhosts/****/httpdocs/library/XenForo/ViewRenderer/Abstract.php(263): XenForo_Dependencies_Admin->createTemplateObject('PAGE_CONTAINER', Array)
#7 /var/www/vhosts/****/httpdocs/library/XenForo/ViewRenderer/HtmlAdmin.php(135): XenForo_ViewRenderer_Abstract->createTemplateObject('PAGE_CONTAINER', Array)
#8 /var/www/vhosts/****/httpdocs/library/XenForo/FrontController.php(604): XenForo_ViewRenderer_HtmlAdmin->renderContainer('Cron entry was ...', Array)
#9 /var/www/vhosts/****/httpdocs/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_Message), Object(XenForo_ViewRenderer_HtmlAdmin), Array)
#10 /var/www/vhosts/****/httpdocs/admin.php(13): XenForo_FrontController->run()
#11 {main}

Request State

array(3) {
  ["url"] => string(131) "http://www.****/admin.php?cron/userGroupPromotions/run&_xfToken=1%2C1389467211%2Cb714021a94e5498c527d20c400ed6155293fd0ae"
  ["_GET"] => array(2) {
    ["cron/userGroupPromotions/run"] => string(0) ""
    ["_xfToken"] => string(53) "1,1389467211,b714021a94e5498c527d20c400ed6155293fd0ae"
  }
  ["_POST"] => array(0) {
  }
}
You are running an out of date version. Please update.
 
Is there away to combine widgets and then have the tabs...I've seen it done on other forums and didn't know if it was built in this mod or another one.
 
Hey @xfrocks sorry I'm sure this has been answered ans spent awhile searching with no luck.

I need the a widget to show in thread_view only in a certain node.

Position I'm assuming thread_view

However the expressions I've tried haven't gotten me anywhere.
If you are using thread_view, try this expression
PHP:
$forum['node_id'] == 1
 
I got this error now:
An exception occurred: array_keys() expects parameter 1 to be array, string given in /library/WidgetFramework/Model/Cache.php on line 39
So all addons disabled.
 
Would it be possible to write a widget or extend the thread widget to show all threads of a forum ordered alphabetically?
 
That mean that you wouldn't include it?

How to do it myself? Copy threads.php listenener and change the sorting?
 
Back
Top Bottom