Resource icon

[bd] Widget Framework 2.6.6

No permission to download
Empty the Tab Group field, I think that should be numeric only and random string value accepted.
Remove the OtherClass, use this instead.
Code:
in_array($contentTemplate, array(
'EWR_portal'
))
 
Last edited:
I have found a bug in XenForo, reported here http://xenforo.com/community/threads/resolvedynamicclass-when-class-is-empty.57064/
The problem is some other add-on left view class name blank and triggered the above bug. I will provide a temporary fix in this post and hope XenForo will fix the bug soon enough.

Temporary fix:
File: xenforo/library/WidgetFramework/Listener.php
Line: 169 (as of v2.3.5)
PHP:
public static function load_class_view($class, array &$extend)
{

Replace with

PHP:
public static function load_class_view($class, array &$extend)
{
if (empty($class))
{
return;
}
That worked. Thank you.
 
Oh sorry, I don't have that portal addon, I didn't know exactly the correct class.

Yeah, it was my fault by putting the wrong one initially (but I was testing with the correct one).

Seems to be working now. If I wanted to make it an array with several templates is that possible?
 
Yeah, it was my fault by putting the wrong one initially (but I was testing with the correct one).

Seems to be working now. If I wanted to make it an array with several templates is that possible?
Yes like:
Code:
in_array($contentTemplate, array(
'EWRporta_Portal','forum_list','member_view"
))
 
I was thinking more in general but I can imagine there's some we'd want to appear in Chris's Gallery or Bobster's Sportsbook as well as forum_list but NOT on the portal homepage.
 
How do I add title to an "advanced html" widget when adding the widget to a widget page? I can only type in html, not title anywhere.
 
I have made a simple example how to use position and size to create widget pages:

1. position (inside column): 0 goes to top, 2. position: (number of column): 0 is first column, 1 is second column, etc.
1. size: number of rows spanned, 2. size: number of columns spanned.

See example in picture where position and sizes can be seen for each widget.

widget1.webp
 
Excellent stuff thanks Henrik :) ... what Mr Rocks should use on his overview page to explain how it works as it's not immediately obvious to nubs such as myself.
 
Top Bottom