• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Add-on 1.4 - New Profile Posts Widget

TeflonDon

Well-known member
#1
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.
 

RoldanLT

Well-known member
#2
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>
 

truonglv

Formerly Nobita.Kun
#8
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 :)
 

tommydamic68

Well-known member
#13
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?