Resource icon

[bd] Widget Framework 2.6.6

No permission to download
For some reason my Facebook widget pops out too far once in awhile, refreshing the page corrects it though. Any thoughts how to permanently fix it?

Screen Shot 2017-02-02 at 9.08.45 PM.webp
 
Make sure data-adapt-container-width is set to "true" and set data-width to the maximum width that you expect your sidebar will resize into (take into account its size later on responsive design).
Ps. data-width won't force your sidebar into the specified width. It will only tell Facebook how wide it can resize into if you have data-adapt-container-width.
 
Make sure data-adapt-container-width is set to "true" and set data-width to the maximum width that you expect your sidebar will resize into (take into account its size later on responsive design).
Ps. data-width won't force your sidebar into the specified width. It will only tell Facebook how wide it can resize into if you have data-adapt-container-width.
Thanks for the reply. Here is my code, I don't see a "data width" option though.

Code:
<div class="fb-page" data-href="https://www.facebook.com/sphynxlair/" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"><blockquote cite="https://www.facebook.com/sphynxlair/" class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/sphynxlair/">Sphynxlair</a></blockquote></div>
 
Hi all, I did a fair amount of searching and did not find my issue. Thanks in advance for the help!

On my site at http://www.overlandbound.com/forums I have a widget with an image link to "Account Upgrades".

When users click the image link they get an error:

"OVERLAND BOUND COMMUNITY - Error
You must be logged in to do this"

When they were already logged in. That's the problem! Here are my settings:

Renderer: [Advanced] HTML & Template
Template (entered):
HTML:
<a href="https://overlandbound.com/forums/account/upgrades">

<img src="https://www.overlandbound.com/forums/support.png" style="border:0 px solid black;max-width:232px;"></a>
Position: all

Any solutions or ideas? Thank you!
 
@tommydamic68 Wrap the fb-page element within <div class="section">...</div> next time (this won't style the widget like any other sidebar block). FB might have calculated the width wrong sometimes since its parent element was the whole sidebar instead of an individual sidebar block (an extremely wild guess).
 
Last edited:
In safari, my widgets links are not clickable - i.e the userlist member names, links etc. - Have confirmed it is happening to others as well - does anyone have a fix for this?
 
@tommydamic68 Wrap the fb-page element within <div class="section">...</div> next time (this won't style the widget like any other sidebar block). FB might have calculated the width wrong sometimes since its parent element was the whole sidebar instead of an individual sidebar block (an extremely wild guess).
Thanks - I fixed it adding this to the FB code.
Code:
data-width="250"
 
Trying to fix text overflow on threads timestamp ..

Screen Shot 2017-02-07 at 5.14.13 AM.webp

Added this to EXTRA.css NO LUCK..

Code:
.wf_widget_threads_thread_sidebar
{
    overflow: hidden;
    white-space: nowrap;
    word-wrap: normal;
    text-overflow: ellipsis;
}

can someone help me
 
Hallo,

i will add 2 Groups to the Conditional, but i dont know how. I have try this but it does not work.
{$contentTemplate} == 'forum_list' && {xen:helper ismemberof, $visitor, 1} && {xen:helper ismemberof, $visitor, 2}
 
@Tealk try this if you want to make it appear to users who are in either usergroup 1 or usergroup 2:
Code:
{$contentTemplate} == 'forum_list' && ({xen:helper ismemberof, $visitor, 1} || {xen:helper ismemberof, $visitor, 2})
 
So the Widget Framework add-on allows us to use conditionals on widgets. I want to use a conditional to exclude that widget from being displayed on the home page created by Brogan's CTA Home Page add-on. I want to create a widget to display a banner ad on the forums and everywhere else EXCEPT the CTA Home Page. So for that, I think, I need a conditional to exclude that widget from being displayed on the CTA Home Page. Can someone write here a conditional that will serve this purpose?
 
You need to use an operator such as OR or AND etc etc.

Thanks for your reply!
The long way to do it is that I create a new widget for every conditional. The easier and convenient way would be that I put all the conditionals in a single widget. You have suggested to use AND or OR. Can you please give an example?

Use these conditionals:

Code:
{$contentTemplate} == 'forum_list'
{$contentTemplate} == 'forum_view'
{$contentTemplate} == 'thread_reply'

Now you want your widget to be displayed on these three. Where and how would you add the AND/OR?

Secondly, do you have any idea what conditional to use when you DON'T want the widget to show on a particular page? I am using Brogan's CTA Home Page and if I want a widget to show up on everywhere on the forum EXCEPT the Home Page, what conditional should I use? The following conditional shows the widget only on the Home Page. Can you edit it so it excludes the Home Page?

Code:
{$contentTemplate} == 'pagenode_container'

I'd be very grateful if you could help me out with this. I've been at it for hours with no luck.
 
Back
Top Bottom