Argument 1 passed to XenForo_Template_Helper_Core::helperUserNameHtml() must be of the type array, null given in /vagrant/public_html/gtswarm/public_html/library/XenForo/Template/Helper/Core.php, line 1671
Argument 1 passed to XenForo_Template_Helper_Core::getUserHref() must be of the type array, null given, called in /vagrant/public_html/gtswarm/public_html/library/XenForo/Template/Helper/Core.php on line 1687 and defined in /vagrant/public_html/gtswarm/public_html/library/XenForo/Template/Helper/Core.php, line 1572
For any developers here, looking for some tips on how to make a template for your addon to be compatible with the widget framework. I am getting the above errors with a custom template I am loading using responseView function through a class that extends XenForo_ControllerPublic_Abstract.
While some of the widget load fine, widgets like the forum stats one load with no stats (and the errors listed above) and the threads renderer widgets can't even be saved to the template.
So I get a feeling I need to somehow my addon compatible with the widgets framework by loading some of the necessary data that the widgets require but I'm not exactly sure how to go about doing that.
On a widget page I want to add a widget with a PHP callback renderer. I can define a class and a method for this callback, that's fine. But what I would need in addition is the possibiltiy to pass arguments (2 strings) to this callback function. Any ideas how I can do this? @xfrocks
I am trying to following the faq to no avail and wondering if someone can help.
Trying to use advanced html widget and setup a iframe up - thats np.
But I want it to only show on user group 3 - np
But I also want it to show on forum id: 23 only in forum view.
@slewis1972 With the BETA version, you can no longer use expressions, but instead conditionals. And with conditionals, I'm assuming the following will work:
I dont can confirm this. Look at https://xen-hilfe.de under the navigation the resources widget is position is made with the WF Layout Editor (Beta 13).
That theme brings up another problem when you use the "Sticky Sidebar" feature and floating navigation. When you scroll down, the sidebar widgets stay, but also the other non-sidebar widgets... We have disabled the "Sticky Sidebar" from Pixel Exit and now it works.
I want to make 1 sidebar f or guests and members to be the same.
But somehow I keep struggling, I removed the New post and forum statistics from showing up, and this works for when members are logged in, but not for a guest. See the 2 screenshots attached.
@midego Did you use [bd] Cache by any chance? The guests-facing page might have been cached by that add-on. And if you didn't, both guests and members should have seen the same widgets technically (yeah, it shouldn't depend on browser's cache). Though don't quote me on that, I'm just assuming based on observation from tweaking widgets in my site.