Resource icon

[bd] Widget Framework 2.6.6

No permission to download
Hey so how exactly does ordering work?
It seems like things are showing up places they aren't set to, and the ordering makes things jump around randomly rather than as I've set them.

I'm also having trouble getting "Poster of the month" add-on to show up correctly.
For the same position, widget with higher display order will show up below. And which add-on is that? This one?
 
So i can order them "1, 2, 3, 4, 5, 6," etc?

Yes that is the correct one.
Yes, whatever number you like. For advanced usage, you may even use negative numbers.

For the other add-on, looks like it does not support [bd] Widget Framework directly so make sure you don't use clear contents widget. That widget will, well, clear existing contents including third party sidebar blocks etc.
 
Yes, whatever number you like. For advanced usage, you may even use negative numbers.

For the other add-on, looks like it does not support [bd] Widget Framework directly so make sure you don't use clear contents widget. That widget will, well, clear existing contents including third party sidebar blocks etc.
Does ordering reset for each "area"? (forum_list, all, thread_view) or is it a total number for all sections
 
Basically yes, it does reset for each area.
Alright thank you, I'll have to look into the other addon, if I dont use the "clear sidebar" widget than I'll end up with double of a lot of things

Last question, will you be updating the thread (full) version to be responsive?
for example, If it's on thead_view and there is only one post the sidebar can be WAY longer than the post, and when a thead has many posts the sidebar is much too short.
 
I want to integrate this with:
https://xenforo.com/community/resources/on-off-switch-preferences-custom-user-fields.4367/

But how do I do it with threads? This is the code for threads:
Code:
<xen:if is="{$layout} == 'sidebar'">

<xen:if hascontent="true">
<div class="WidgetFramework_WidgetRenderer_Threads_Sidebar avatarList">
    <ul>
        <xen:contentcheck>
        <xen:if is="{$widget.options.type} == 'recent' OR {$widget.options.type} == 'latest_replies'">

        <xen:foreach loop="$threads" value="$thread">
        <xen:set var="$user"><xen:username user="$thread" rich="{$layoutOptions.rich}" /></xen:set>
        <xen:include template="wf_widget_threads_thread_sidebar">
            <xen:set var="$_threadLink">{xen:if '{$visitor.user_id} > 0', {xen:link threads/unread, $thread}, {xen:link posts, {xen:array 'post_id={$thread.last_post_id}'}}}</xen:set>
            <xen:set var="$_secondRow">
                {xen:phrase wf_x_replied, 'user={xen:raw $user}'} - <span class="wfReplySpan"><xen:datetime time="{$thread.last_post_date}" /></span>
            </xen:set>
        </xen:include>
        </xen:foreach>

        <xen:elseif is="{$widget.options.type} == 'most_replied'" />

        <xen:foreach loop="$threads" value="$thread">
        <xen:set var="$user"><xen:username user="$thread" rich="{$layoutOptions.rich}" /></xen:set>
        <xen:include template="wf_widget_threads_thread_sidebar">
            <xen:set var="$_secondRow">
                {xen:phrase wf_x_posted, 'user={xen:raw $user}'} - <span class="wfReplySpan">{xen:phrase replies}: {xen:number $thread.reply_count}</span>
            </xen:set>
        </xen:include>
        </xen:foreach>

        <xen:elseif is="{$widget.options.type} == 'most_liked'" />

        <xen:foreach loop="$threads" value="$thread">
        <xen:set var="$user"><xen:username user="$thread" rich="{$layoutOptions.rich}" /></xen:set>
        <xen:include template="wf_widget_threads_thread_sidebar">
            <xen:set var="$_secondRow">
                {xen:phrase wf_x_posted, 'user={xen:raw $user}'}
                {xen:phrase likes}: <a href="{xen:link 'posts/likes', {xen:array 'post_id={$thread.first_post_id}'}}" class="OverlayTrigger">{xen:number $thread.first_post_likes}</a>
            </xen:set>
        </xen:include>
        </xen:foreach>

        <xen:else />

        <xen:foreach loop="$threads" value="$thread">
        <xen:set var="$user"><xen:username user="$thread" rich="{$layoutOptions.rich}" /></xen:set>
        <xen:include template="wf_widget_threads_thread_sidebar">
            <xen:set var="$_secondRow">
                {xen:phrase wf_x_posted, 'user={xen:raw $user}'} - <span class="wfReplySpan"><xen:datetime time="{$thread.post_date}" /></span>
            </xen:set>
        </xen:include>
        </xen:foreach>

        </xen:if>
        </xen:contentcheck>
    </ul>
</div>
</xen:if>

<xen:elseif is="{$layout} == 'list'" />

<xen:if hascontent="true">
<div class="WidgetFramework_WidgetRenderer_Threads_List discussionList">
    <div class="DiscussionList">

        <dl class="sectionHeaders">
            <dt class="posterAvatar"><a><span>&nbsp;</span></a></dt>
            <dd class="main">
                <a class="title"><span>{xen:phrase title}</span></a>
                <a class="postDate"><span>{xen:phrase start_date}</span></a>
            </dd>
            <dd class="stats">
                <a class="major"><span>{xen:phrase replies}</span></a>
                <a class="minor"><span>{xen:phrase views}</span></a>
            </dd>
            <dd class="lastPost"><a><span>{xen:phrase last_message}</span></a></dd>
        </dl>

        <ol class="discussionListItems">
            <xen:contentcheck>
            <xen:foreach loop="$threads" value="$thread">
            <xen:include template="thread_list_item" />
            </xen:foreach>
            </xen:contentcheck>
        </ol>

        <xen:include template="preview_tooltip" />
    </div>
</div>
</xen:if>

<xen:elseif is="{$layout} == 'list_compact'" />

<xen:if hascontent="true">
<div class="WidgetFramework_WidgetRenderer_Threads_ListCompact">
    <ol>
        <xen:contentcheck>
        <xen:foreach loop="$threads" value="$thread">
        <xen:include template="wf_widget_threads_thread_list_compact" />
        </xen:foreach>
        </xen:contentcheck>
    </ol>
  
    <xen:if is="{$loadMoreUrl}">
    <xen:require js="js/WidgetFramework/default.min.js" />
    <div class="WidgetFramework_WidgetRenderer_Threads_ListCompactMore"
        data-selector=".WidgetFramework_WidgetRenderer_Threads_ListCompact">
        <a href="{xen:link forums}" data-url="{xen:jsescape $loadMoreUrl}">{xen:phrase more}</a>
    </div>
    </xen:if>

    <xen:include template="preview_tooltip" />
</div>
</xen:if>

<xen:elseif is="{$layout} == 'full'" />

<xen:if hascontent="true">
<div class="WidgetFramework_WidgetRenderer_Threads_FullThreadList">
    <xen:contentcheck>
    <xen:foreach loop="$threads" value="$thread">
    <xen:include template="wf_widget_threads_thread_full" />
    <xen:edithint template="wf_widget_threads_thread_full_info" />
    </xen:foreach>
    </xen:contentcheck>
</div>

</xen:if>

</xen:if>

<xen:edithint template="message" />
<xen:edithint template="wf_threads.css" />
I simply can't use the <xen:if><xen:else /></xen:if> because it gives me error. Any advice? I want to put it on latest replies and most replied threads.
 
Ok, I think I finally found the Beta version of this. It had been a while since I used the widget framework.

My concern is, I found the download on two different sites, LOL. There is an additional website that has a bunch of ******* add ons that has this available as well, not sure if you were aware of it or not.

Edit - I guess that old members username has been censored, LOL.
 
I noticed in the reviews that somebody mentioned this isn't working with php7, is that correct? Wanted to verify before installing and having a mess.
 
@Blast Well then, just add:
HTML:
<xen:if is="{$visitor.customFields.FIELD_NAME}">
before:
HTML:
<xen:if is="{$layout} == 'sidebar'">
and add:
HTML:
</xen:if>
before:
HTML:
<xen:edithint template="message" />
That should work just fine.
 
@BobbyWibowo so no more <xen:else />?

EDIT: I just put together the code and it's not what I want to accomplish. This gives the users the option to remove all of Widget Framework Threads. I need to be it in:

Code:
<xen:if is="{$widget.options.type} == 'recent' OR {$widget.options.type} == 'latest_replies'">

        <xen:foreach loop="$threads" value="$thread">
        <xen:set var="$user"><xen:username user="$thread" rich="{$layoutOptions.rich}" /></xen:set>
        <xen:include template="wf_widget_threads_thread_sidebar">
            <xen:set var="$_threadLink">{xen:if '{$visitor.user_id} > 0', {xen:link threads/unread, $thread}, {xen:link posts, {xen:array 'post_id={$thread.last_post_id}'}}}</xen:set>
            <xen:set var="$_secondRow">
                {xen:phrase wf_x_replied, 'user={xen:raw $user}'} - <span class="wfReplySpan"><xen:datetime time="{$thread.last_post_date}" /></span>
            </xen:set>
        </xen:include>
        </xen:foreach>
and


Code:
<xen:elseif is="{$widget.options.type} == 'most_replied'" />

        <xen:foreach loop="$threads" value="$thread">
        <xen:set var="$user"><xen:username user="$thread" rich="{$layoutOptions.rich}" /></xen:set>
        <xen:include template="wf_widget_threads_thread_sidebar">
            <xen:set var="$_secondRow">
                {xen:phrase wf_x_posted, 'user={xen:raw $user}'} - <span class="wfReplySpan">{xen:phrase replies}: {xen:number $thread.reply_count}</span>
            </xen:set>
        </xen:include>
 
Last edited:
@Blast No. If you just want it to simply appear when user selected the user field and disappear when the user field isn't selected, there's no need for <xen:else />
 
Top Bottom