Resource icon

[bd] Widget Framework 2.6.6

No permission to download
Is it possible to wrap a condition around a javascript file in the page_container_js_head template that will only render the javascript file when the page with the ID of 495 is loaded? I have run a few searches but the answer is eluding me.
 
New, Recent, and Popular is such a great widget. Thanks very much for the framework.

I was thinking is there a way to have a widget with selected threads? Somehow I would select threads to feature and they would be displayed. While "Popular" is good to have, sometimes the popular threads are ugly and it would be nice to have a forum approved list of current good threads.
 
I was thinking is there a way to have a widget with selected threads? Somehow I would select threads to feature and they would be displayed. While "Popular" is good to have, sometimes the popular threads are ugly and it would be nice to have a forum approved list of current good threads.
Try Extra Portal :)
 
Try Extra Portal :)
Interesting. Eventually I would like to have a portal, but I'm thinking of taking a smaller step first. What I was looking for was just a sidebar widget with "promoted" threads. I don't see that as an option in Extra Portal but maybe I'm missing it.
 
Interesting. Eventually I would like to have a portal, but I'm thinking of taking a smaller step first. What I was looking for was just a sidebar widget with "promoted" threads. I don't see that as an option in Extra Portal but maybe I'm missing it.
Come over to xfrocks.com and register an account, I will let you download a new add-on of mine that allows you to do just that.

Is there a way to make a widget show in the Media gallery Left hand Sidebar?
Which gallery add-on? Normally it is not possible but if the add-on has a hook there (or you add a hook yourself), you can put a widget right on the spot.

Is it possible to wrap a condition around a javascript file in the page_container_js_head template that will only render the javascript file when the page with the ID of 495 is loaded? I have run a few searches but the answer is eluding me.
It is possible with the HTML no wrapper widget and you put your <script /> tag in it. The expression will work just like usual. It cannot change existing <script /> tags in the template though.
 
I have a sidebar on ALL but i need to know how to exclude it on a 'few' Pages we have, how can I do this?
Which pages are you looking to exclude? The most easy way is to use this in your expression:

PHP:
$_WidgetFramework_positionCode != 'thread_view'
 
Heyy guys is it possible to disable horizontal scoöbar for a 1 block?

i wanna disable it for the TeamSpeak 3 blocks i have on my home and forums page:
https://allaround.cc/

i read something about an extra css but i dont get it to work :(
 
Which pages are you looking to exclude? The most easy way is to use this in your expression:

PHP:
$_WidgetFramework_positionCode != 'thread_view'
Lets say just Pages I create in Xenforo so it would be site.com/pages/(name of page here)
 
@xfrocks One problem with @Jake Bunce Tabs, on the FAQ it says:
Q: I'm using Jake Bunce's use nodes as tabs, each category is a tab and I've set the option in Node & Forum list to create pages for Categories so when you click on a tab it will will only show the category and forums for it. That's where I can't seem to get the framework working.
A: You can use "category_view" as one of your positions.

If i try to use category_view with the code to display it on a specific category:
Code:
$forum['parent_node_id'] == <category-id>

It will not display. Is there a solution? =/
 
@xfrocks I believe there is a bug in Widget Framework.
I have created an advanced template widget to show our latest competitions and put the template into it as required.
2.webp

However the widget is not showing in the sidebar.
The template uses the XF simple cache variable which was made available to xenforo templates as of... I think 1.2. {$xenCache}.
I'm betting the WF doesn't take notice of the {$xenCache} variable which we use like this:
{$xenCache.competitionsCache}
That's the equivalent, in PHP, of:
XenForo_Application::getSimpleCacheData('competitionsCache');
 
Oups, update about my post, there is a server error:
Code:
Error Info
ErrorException: Undefined variable: forum - library/WidgetFramework/WidgetRenderer.php(498) : runtime-created function:1
Generated By: Max Bacon, A moment ago
Stack Trace
#0 /home/bacon/www/www/library/WidgetFramework/WidgetRenderer.php(498) : runtime-created function(1): XenForo_Application::handlePhpError(8, 'Undefined varia...', '/home/bacon/www...', 1, Array)
#1 [internal function]: __lambda_func(Array)
#2 /home/bacon/www/www/library/WidgetFramework/WidgetRenderer.php(502): call_user_func('?lambda_1', Array)
#3 /home/bacon/www/www/library/WidgetFramework/WidgetRenderer.php(588): WidgetFramework_WidgetRenderer->_executeExpression('$forum['parent_...', Array)
#4 /home/bacon/www/www/library/WidgetFramework/Core.php(397): WidgetFramework_WidgetRenderer->render(Array, 'category_view', Array, Object(XenForo_Template_Public), '')
#5 /home/bacon/www/www/library/WidgetFramework/Core.php(316): WidgetFramework_Core->_renderWidgetsFor('category_view', Array, Object(XenForo_Template_Public), '')
#6 /home/bacon/www/www/library/WidgetFramework/Listener.php(126): WidgetFramework_Core->renderWidgetsFor('category_view', Array, Object(XenForo_Template_Public), Array)
#7 [internal function]: WidgetFramework_Listener::template_post_render('category_view', '???????????<ol ...', Array, Object(XenForo_Template_Public))
#8 /home/bacon/www/www/library/XenForo/CodeEvent.php(58): call_user_func_array(Array, Array)
#9 /home/bacon/www/www/library/XenForo/Template/Abstract.php(195): XenForo_CodeEvent::fire('template_post_r...', Array, 'category_view')
#10 /home/bacon/www/www/library/XenForo/Template/Public.php(110): XenForo_Template_Abstract->render()
#11 /home/bacon/www/www/library/XenForo/ViewRenderer/HtmlPublic.php(123): XenForo_Template_Public->render()
#12 /home/bacon/www/www/library/XenForo/FrontController.php(618): XenForo_ViewRenderer_HtmlPublic->renderContainer(Object(XenForo_Template_Public), Array)
#13 /home/bacon/www/www/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
#14 /home/bacon/www/www/index.php(13): XenForo_FrontController->run()
#15 {main}
Request State
array(3) {
  ["url"] => string(65) "http:/----.com/categories/staff-section-forum-servers.55/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Back
Top Bottom