Resource icon

[bd] Widget Framework 2.6.6

No permission to download
Is there a way to set the widget on the beginning of a template hook content?
Code:
<xen:hook name="simpleportal_container">
some content
</xen:hook>

If i use hook:simpleportal_container as position, it attaches the widget at the end of the content

You can use a negative display order ;)
 
  • Like
Reactions: Dan
I would suggest to allow empty titles
If i don't use a title => it's the default widget title
If i use &nbsp; as title, the title is hidden, but the output is
Code:
 <h3>&nbsp;</h3>
which is also not nice because of the empty line above the content

e.g. this is a html widget with &nbsp; as title
widgetframework.webp
Code:
<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>
 
Good Afternoon,
Just a quick problem. Different avatar showing for same person. Member has not uploaded an orginal or new avatar. See attachment. Thank You!
 

Attachments

  • avatardifference2.webp
    avatardifference2.webp
    9.4 KB · Views: 8
Good Afternoon,
Just a quick problem. Different avatar showing for same person. Member has not uploaded an orginal or new avatar. See attachment. Thank You!

You are using the New Replies type? There is one conflict issue with another add-on that I can't remember now. Can you provide list of installed add-on?
 
I'm trying to make a widget for an advertisement - and I want to hide it for supporting members... I use this code but it doesn't work:

Code:
<xen:if is="!{xen:helper ismemberof, $visitor, 11}">

The code works elsehere to exclude showing ads - but not in the widget.

How do I make it so a widget is not shown to a certain user?
 
I'm trying to make a widget for an advertisement - and I want to hide it for supporting members... I use this code but it doesn't work:

Code:
<xen:if is="!{xen:helper ismemberof, $visitor, 11}">

The code works elsehere to exclude showing ads - but not in the widget.

How do I make it so a widget is not shown to a certain user?

Where did you put that <xen:if> tag?
 
Using the Advanced HTML without wrapper widget

I post this:

Code:
<xen:if is="!{xen:helper ismemberof, $visitor, 11}">
 
<div align="center">
 
adsense code
 
</div>
 
</xen:if>

It fails to hide it for my "Supporting Member" users. If I post the exact same code directly into a template - it does hide it for the "supporting member" users.
 
Using the Advanced HTML without wrapper widget

I post this:

Code:
<xen:if is="!{xen:helper ismemberof, $visitor, 11}">
 
<div align="center">
 
adsense code
 
</div>
 
</xen:if>

It fails to hide it for my "Supporting Member" users. If I post the exact same code directly into a template - it does hide it for the "supporting member" users.

You can not use <xen:if> in the HTML widget because that's not HTML tag (it's a XenForo markup tag). You should do this instead:

Put this as the content of the HTML widget:

Code:
<div align="center">
 
adsense code
 
</div>

Put this as the expression:

PHP:
XenForo_Template_Helper_Core::helperIsMemberOf($visitor, 11)
 
is there a way to hide it from more than one - say hide it from that user and from guests? (i have a different ad placement for guests)
 
I have been looking at your code lately because I am asked to create widgets for my addons
One thing I could tell you is that it is beautifully coded, I can tell your expertise. Thank a lot for publishing this.

  1. Added new widget option: deactivate for mobile
  2. Added locking before rendering (cache enabled renderer only)

I like those two. Appreciated. And good forward thinking.
 
hi @xfrocks ! :)
We used the threads widget in a high traffic forum, with many select forums on the widget setup, and this caused huge performance issues. Any clue?
 
Top Bottom