Resource icon

[bd] Widget Framework 2.6.6

No permission to download
Sorry to bother but I'm not able to clear the sidebar in all parts of resources.

Settings:

Renderer: Clear Sidebar
Position: all

But I still get the sidebars ...

Example resource:
http://community.tuxreportsnetwork.com/resources/howto-add-a-dynamic-footer-to-xenforo.17/

Any suggestions?

Update: in EXTRA.css was
Code:
.mainContent {
  margin-right: 0;
}

Commented it out and this works for showing the sidebar. However, ultimately desire no sidebar ...
 
Last edited:
Here's my template condition code:
Code:
!in_array({$contentTemplate}, array('forum_list','thread_view','register_form','login','contact'))

What is the equivalent code that can be use on BD Widget?
 
Here's my template condition code:
Code:
!in_array({$contentTemplate}, array('forum_list','thread_view','register_form','login','contact'))

What is the equivalent code that can be use on BD Widget?
You can use

PHP:
!in_array($_WidgetFramework_positionCode, array('forum_list','thread_view','register_form','login','contact'))
 
  • Like
Reactions: rdn
Btw, Can we include this codes into the widget?
Code:
<xen:comment>DEFINE AND RANDOMIZE YOUR BANNERS</xen:comment>

<xen:set var="$banners.1">banner one</xen:set>
<xen:set var="$banners.2">banner two</xen:set>
<xen:set var="$banners.3">banner three</xen:set>
{xen:raw '$banners.{xen:calc '({$serverTime} % 3) + 1'}'}
http://xenforo.com/community/resources/display-a-random-banner.375/
You will need to use the Template renderer and put your markup into a template. No way to directly enter all that into a widget, sorry.
 
  • Like
Reactions: rdn
You can use

PHP:
!in_array($_WidgetFramework_positionCode, array('forum_list','thread_view','register_form','login','contact'))
Not working :(
Here's my entire condition:
Code:
in_array($forum['node_id'], array(23,26,68,69,70,71,72,74,75,76,77,78,79,80,83,84,85,86,87,89,90,91,92,93,94,95,98,106,108,159,160,161,162,198,200,210)) == false AND !in_array($_WidgetFramework_positionCode, array('register_form','login','contact'))
 
In 1.2 beta the "new replies" widget is not working for me. It shows the latest added threads from a RSS feed, even though these threads have no replies.
Can you take screenshot of the widget edit page? If you select the "new replies" widget type, the first post is actually considered a reply FYI.
 
If you select the "new replies" widget type, the first post is actually considered a reply FYI.

This is the new replies type, yes. This is for a podcast site, podcast episodes are shown by RSS feeds. I want to show the recent podcasts (feeds) the users have discussed/replied to. Can this be done? Thanks in advance.
 
I'm trying to add a banner in the sidebar, but the code seems to break the whole site. Anyone have any clue why that might be happening? It only does it with the Ebay ad network ads, not Google's ads or anything else.

Code:
<script type="text/javascript" src='http://adn.ebay.com/files/js/min/jquery-1.6.2-min.js'></script>
<script type="text/javascript" src='http://adn.ebay.com/files/js/min/ebay_activeContent-min.js'></script>
<script charset="utf-8" type="text/javascript">
document.write('\x3Cscript type="text/javascript" charset="utf-8" src="http://adn.ebay.com/cb?programId=1&campId=5337368634&toolId=10026&keyword=%28gold%2Csilver%2Ccopper%2Cplatinum%29&minPrice=25&width=300&height=250&font=1&textColor=000000&linkColor=0000AA&arrowColor=8BBC01&color1=709AEE&color2=[COLORTWO]&format=ImageLink&contentType=TEXT_AND_IMAGE&enableSearch=y&usePopularSearches=n&freeShipping=n&topRatedSeller=n&itemsWithPayPal=n&descriptionSearch=n&showKwCatLink=n&excludeCatId=&excludeKeyword=&catId=39482&disWithin=200&ctx=n&autoscroll=n&flashEnabled=' + isFlashEnabled + '&pageTitle=' + _epn__pageTitle + '&cachebuster=' + (Math.floor(Math.random() * 10000000 )) + '">\x3C/script>' );
</script>
 
Hi @xfrocks could you please enable the option to cache/or not with the recent status updates in your next update please. Right now users have to wait an hour or so before the recent status update is shown.
 
Is it possible to put a widget into a message (hook:message_content), but ONLY in first message, not replies, by entering something into the expression field?
 
  • Like
Reactions: rdn
On my expression: !in_array($_WidgetFramework_positionCode, array('register_form','login','contact'))
Basically I don't want the widget to display on registration page and login. but it is still showing.
 
On my expression: !in_array($_WidgetFramework_positionCode, array('register_form','login','contact'))
Basically I don't want the widget to display on registration page and login. but it is still showing.
I have found out your problem. When you put the position in all (I assume that, please correct me if it's not the case), the $_WidgetFramework_positionCode will be "all" as designed. If you wish to check for register page and login etc., please try this:

PHP:
!in_array($viewName, array(
'XenForo_ViewPublic_Register_Form',
'XenForo_ViewPublic_Login_Login',
'XenForo_ViewPublic_Misc_Contact',
))

In future version, you can use the other version of expression for easy access.
 
  • Like
Reactions: rdn
Back
Top Bottom