1. 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

Discussion in 'Resource and Add-on Requests' started by TeflonDon, Aug 6, 2014.

  1. TeflonDon

    TeflonDon Well-Known Member

    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.
     
  2. RoldanLT

    RoldanLT Well-Known Member

    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>
     
  3. RoldanLT

    RoldanLT Well-Known Member

    Got it working on my forum :)
    Just ad a new template with that code then create a widget as advance template ;)
     
    tommydamic68, FredC and TeflonDon like this.
  4. TeflonDon

    TeflonDon Well-Known Member

    Ahhhh...I tried to do it using the existing template but it threw an error. Thanks (again, second time tonight!)
     
  5. RoldanLT

    RoldanLT Well-Known Member

    Create a new one.
    Only problem is that, it only works on forum_list :D
     
    TeflonDon likes this.
  6. TeflonDon

    TeflonDon Well-Known Member

    Damn, :( was hoping to use it on my portal page.
     
  7. TJA

    TJA Well-Known Member

    Found it best to use Advanced Template (without wrapper)
     
  8. Nobita.Kun

    Nobita.Kun Well-Known Member

    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 :)
     
    TeflonDon likes this.
  9. TeflonDon

    TeflonDon Well-Known Member

    Not sure how to do that, you mind posting the code?
     
  10. Nobita.Kun

    Nobita.Kun Well-Known Member

    I think @xfrocks will update his code ;)
     
    xfrocks and RoldanLT like this.
  11. RoldanLT

    RoldanLT Well-Known Member

    Yes, that's what I'm using ;)
     
  12. xfrocks

    xfrocks Well-Known Member

    Yes, looking to bring this widget to older version of XenForo too :)
     
    TeflonDon, TJA, RoldanLT and 2 others like this.
  13. tommydamic68

    tommydamic68 Well-Known Member

    What did you name the new template?
     
  14. FredC

    FredC Well-Known Member

    Name it whatever you want.. Just be sure to call it properly in the WF renderer.
     
    tommydamic68 likes this.
  15. tommydamic68

    tommydamic68 Well-Known Member

    Last edited: Aug 13, 2014
    RoldanLT likes this.
  16. jayramfootball

    jayramfootball Active Member

    This is working thanks ... one question .. is it possible to also have the 'Update Your Status' input and post option?
     
  17. FredC

    FredC Well-Known Member

    That will be included in the next beta
     
  18. jayramfootball

    jayramfootball Active Member

    Its available now on the xenforo site - ah they must be using an updated post beta 2 version!
     
  19. RoldanLT

    RoldanLT Well-Known Member

    That should be beta 3 :)
     
  20. shorepower

    shorepower Active Member

    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.JPG
     

Share This Page