Sorry you can't do that for now.How to exclude from display specific usersgroups birthdays in Birthday Widget?
No problem that I know of You should upgrade asap.@xfrocks
Will there be any issue from updating from 1.5.9 to latest?
I'm just a bit weary
How to see that? I install this plugin and I'll see it there or something?I meant you should try to use the Threads renderer.
Go the AdminCP > Appearances > Add Widget (on the left side). You will have some renderers to choose. Read the instruction on that page to continue.How to see that? I install this plugin and I'll see it there or something?
I am all new to this so..I hope you can help me more on this issue.
Thanks!
<xen:require css="wf_default.css" />
<xen:if is="{xen:count $tabs} > 1">
<xen:comment>We are rendering tabs</xen:comment>
<div class="section widget-container widget-tabs">
<div class="primaryContent">
<ul class="tabs Tabs" data-panes="#widget-tabs-{$groupId} > li">
<xen:foreach loop="$tabs" value="$tab">
<xen:if is="{$tab.html}">
<li>
<a href="{$requestPaths.requestUri}#widget-tab-{$tab.widget_id}">
<h3>{xen:raw $tab.title}</h3>
</a>
</li>
</xen:if>
</xen:foreach>
</ul>
</div>
<div style="clear: both; height: 0px;"> <!-- dirty fix, sorry --></div>
<div class="secondaryContent" id="widget-group-{$groupId}">
<ul id="widget-tabs-{$groupId}">
<xen:foreach loop="$tabs" value="$tab">
<xen:if is="{$tab.html}">
<li id="widget-tab-{$tab.widget_id}" class="widget {$tab.class}">
<ul>
{xen:raw $tab.html}
</ul>
</li>
</xen:if>
</xen:foreach>
</ul>
</div>
</div>
<xen:else />
<xen:comment>Simpler case: just a single widget</xen:comment>
<div class="section widget-container">
<xen:foreach loop="$tabs" value="$tab">
<div class="secondaryContent widget {$tab.class}" id="widget-{$tab.widget_id}">
<xen:if is="{$tab.html}">
<h3>
<xen:if is="{$tab.extraData.link}">
<a href="{$tab.extraData.link}">{xen:raw $tab.title}</a>
<xen:else />
{xen:raw $tab.title}
</xen:if>
</h3>
{xen:raw $tab.html}
</xen:if>
</div>
</xen:foreach>
</div>
</xen:if>
<xen:require css="wf_default.css" />
<xen:if is="{xen:count $tabs} > 1">
<xen:comment>We are rendering tabs</xen:comment>
<div class="section widget-container widget-tabs">
<div class="primaryContent">
<ul class="tabs Tabs" data-panes="#widget-tabs-{$groupId} > li">
<xen:foreach loop="$tabs" value="$tab">
<xen:if is="{$tab.html}">
<li>
<a href="{$requestPaths.requestUri}#widget-tab-{$tab.widget_id}">
<h3>{xen:raw $tab.title}</h3>
</a>
</li>
</xen:if>
</xen:foreach>
</ul>
</div>
<div style="clear: both; height: 0px;"> <!-- dirty fix, sorry --></div>
<div class="secondaryContent" id="widget-group-{$groupId}">
<ul id="widget-tabs-{$groupId}">
<xen:foreach loop="$tabs" value="$tab">
<xen:if is="{$tab.html}">
<li id="widget-tab-{$tab.widget_id}" class="widget {$tab.class}">
<ul>
{xen:raw $tab.html}
</ul>
</li>
</xen:if>
</xen:foreach>
</ul>
</div>
</div>
<xen:elseif is="{xen:count $tabs} == 1" />
<xen:comment>Simpler case: just a single widget</xen:comment>
<div class="section widget-container">
<xen:foreach loop="$tabs" value="$tab">
<div class="secondaryContent widget {$tab.class}" id="widget-{$tab.widget_id}">
<xen:if is="{$tab.html}">
<h3>
<xen:if is="{$tab.extraData.link}">
<a href="{$tab.extraData.link}">{xen:raw $tab.title}</a>
<xen:else />
{xen:raw $tab.title}
</xen:if>
</h3>
{xen:raw $tab.html}
</xen:if>
</div>
</xen:foreach>
</div>
</xen:if>
Awesome. This will be merged.We found a lot of empty "widget-container" DIVs in the source code.
This seems to be a minor bug.
I recommend changing the "wf_widget_wrapper" template from:
Code:...
<xen:else /> is replaced by <xen:elseif is="{xen:count $tabs} == 1" />
I believe xfrocks mentioned this at some point in this thread or directly to me.I don't know, if someone mentioned it before, but for all of you using this addon and experience performance issues:
This addon has a debug setting for the developer that disables the caching system if "debug" is enabled at XenForos config.php. We have debug enabled at XenForo all the time, but only for the IP addresses of our developers. So all of our developers experienced slow downs when browsing our site, which makes use of Widget Framework at almost all pages, most bad at pages with the Thread Widget.
Since we do not really need to debug WF, we disabled the debug function in Widget Framework with a core file edit (Core.php). Now our developers can browse our site more quickly.
xfrocks, may I recommend that you choose to allow debug for Widget Framework to be set independently from Xenforo? This may solve a lot of performance issues some boards owners experience.
Yeah, I will make it independent from XenForo's in the next version. As you are a developer, why don't you send a pull request my way?I don't know, if someone mentioned it before, but for all of you using this addon and experience performance issues:
This addon has a debug setting for the developer that disables the caching system if "debug" is enabled at XenForos config.php. We have debug enabled at XenForo all the time, but only for the IP addresses of our developers. So all of our developers experienced slow downs when browsing our site, which makes use of Widget Framework at almost all pages, most bad at pages with the Thread Widget.
Since we do not really need to debug WF, we disabled the debug function in Widget Framework with a core file edit (Core.php). Now our developers can browse our site more quickly.
xfrocks, may I recommend that you choose to allow debug for Widget Framework to be set independently from Xenforo? This may solve a lot of performance issues some boards owners experience.
It should work. If you encountered an error, check your widget, class, etc.Hey xfrocks,
Do these instructions still work?
http://xenforo.com/community/threads/bd-widget-framework.28014/page-13#post-353641
When I follow the steps I'm getting this:
The server responded with an error. The error message is in the JavaScript console.
Which conditional are you trying to use? It should work.Last question I saw this post:
http://xenforo.com/community/threads/bd-widget-framework.28014/page-22#post-404652
Is there a way to apply those expressions to specific pages? Doesn't seem to be working, I threw in contentTemplate there too but I was guessing
Yeah, I will make it independent from XenForo's in the next version. As you are a developer, why don't you send a pull request my way?
It should work. If you encountered an error, check your widget, class, etc.
Which conditional are you trying to use? It should work.
in_array($contentTemplate['node_id'], array(66, 76, 67))
in_array($contentTemplate, array(X, Y, Z))
It should work. If you encountered an error, check your widget, class, etc.
class GamerExit_WidgetRenderer_BackLink
{
public static function render(array $widget, $positionCode, array $params, XenForo_Template_Abstract $renderTemplateObject)
{
ob_start();
require('/dayz/dayzstats.php');
$contents = ob_get_clean();
return $contents;
}
}
Those won't work. You should use thisI tried in the expression:
Code:in_array($contentTemplate['node_id'], array(66, 76, 67))
and
Code:in_array($contentTemplate, array(X, Y, Z))
For the position I put pagenode_container
in_array($page['node_id'], array(...))
The path for require is incorrect. You must use absolute path (should be something like /home/username/public_html/dayz/dayzstats.php). Also, copy the JavaScript console error message if possible.Here's how I have it:
...
^-- With this setup I click Save All changes and I get:
The server responded with an error. The error message is in the JavaScript console.
Those won't work. You should use this
Code:in_array($page['node_id'], array(...))
The path for require is incorrect. You must use absolute path (should be something like /home/username/public_html/dayz/dayzstats.php). Also, copy the JavaScript console error message if possible.
--
[19:50:44.861] PHP class GamerExit_WidgetRenderer_BackLink
{
public static function render(array $widget, $positionCode, array $params, XenForo_Template_Abstract $renderTemplateObject)
{
ob_start();
require('/home/********/public_html/dayz/dayzstats.php');
$contents = ob_get_clean();
return $contents;
}
}{"error":["Please enter a valid callback method."],"templateHtml":"\n\n<div class=\"errorOverlay\">\n\t<a class=\"close OverlayCloser\"><\/a>\n\t\n\t\t<h2 class=\"heading\">The following error occurred:<\/h2>\n\t\t\n\t\t<div class=\"baseHtml\">\n\t\t\n\t\t\t<label for=\"ctrl_0\" class=\"OverlayCloser\">Please enter a valid callback method.<\/label>\n\t\t\n\t\t<\/div>\n\t\n<\/div>","_visitor_conversationsUnread":"0","_visitor_alertsUnread":"15"} @ http://gamerexit.com/js/xenforo/xenforo.js?_v=bba17b4a:195
Ah, you need to put "<?php" at the beginning of your file. Something like thisFixed the path, error still exists:
...
<?php
class GamerExit_WidgetRenderer_BackLink
{
public static function render(array $widget, $positionCode, array $params, XenForo_Template_Abstract $renderTemplateObject)
{
ob_start();
require('/home/********/public_html/dayz/dayzstats.php');
$contents = ob_get_clean();
return $contents;
}
Ah, you need to put "<?php" at the beginning of your file. Something like this
Code:<?php class GamerExit_WidgetRenderer_BackLink { public static function render(array $widget, $positionCode, array $params, XenForo_Template_Abstract $renderTemplateObject) { ob_start(); require('/home/********/public_html/dayz/dayzstats.php'); $contents = ob_get_clean(); return $contents; }
We use essential cookies to make this site work, and optional cookies to enhance your experience.