Add-on 1.4 - New Profile Posts Widget

TeflonDon

Well-known member
Licensed customer
Would love to have a renderer on @xfrocks widget framework to allow me to easily place the new widget from 1.4 for New Profile Posts on other pages.

I'd settle for adding it manually via a template edit in the meantime if someone could provide some quick instructions.
 
This is the code:
Code:
<xen:if is="{$profilePosts}">
            <div class="section">
                <div class="secondaryContent">
                    <h3><a href="{xen:link find-new/profile-posts}">{xen:phrase new_profile_posts}</a></h3>
                    <ul>
                    <xen:foreach loop="$profilePosts" value="$profilePost">
                        <xen:include template="profile_post_list_item_simple" />
                    </xen:foreach>
                    </ul>
                </div>
            </div>
        </xen:if>
 
Got it working on my forum :)
Just ad a new template with that code then create a widget as advance template ;)

Ahhhh...I tried to do it using the existing template but it threw an error. Thanks (again, second time tonight!)
 
Found it best to use Advanced Template (without wrapper)
 
You should assign params $profilePosts to Template. So you can display anywhere you want. BTW, look like XenForo assign params to forum_list so when you put on that, work fine but other its not :)
 
You should assign params $profilePosts to Template. So you can display anywhere you want. BTW, look like XenForo assign params to forum_list so when you put on that, work fine but other its not :)

Not sure how to do that, you mind posting the code?
 
This is the code:
Code:
<xen:if is="{$profilePosts}">
            <div class="section">
                <div class="secondaryContent">
                    <h3><a href="{xen:link find-new/profile-posts}">{xen:phrase new_profile_posts}</a></h3>
                    <ul>
                    <xen:foreach loop="$profilePosts" value="$profilePost">
                        <xen:include template="profile_post_list_item_simple" />
                    </xen:foreach>
                    </ul>
                </div>
            </div>
        </xen:if>

Got it working on my forum :)
Just ad a new template with that code then create a widget as advance template ;)

What did you name the new template?
 
This is working thanks ... one question .. is it possible to also have the 'Update Your Status' input and post option?
 
Any way to add the new function introduced in Beta 3 of 1.4.0 "update your status" to the above widget? Thanks in advance

Capture.webp
 
Back
Top Bottom