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

Add-on XenForo News Feed (adding recent activity to a different place)

Discussion in 'Custom Service/Development Requests' started by Cryptaline, Aug 24, 2012.

  1. Cryptaline

    Cryptaline Active Member

    o/ Everyone :coffee:

    A brief description:

    On each page refresh for a page_container Recent activity is hidden. It doesnt matter how you play with your templates inside of the container, e.g:

    it will be hiden until

    So thats what i need, a simple listener for the container_public_params to show a recent activity always. (auto load on each page refresh)



    If you think it worth some money, i will pay without any doubt. :giggle:
  2. ragtek

    ragtek Guest

    This wouldn't be enough;) You'll also need to prepare the data in the view

    Mom, i'll see if i can find my old addon for this
    Cryptaline likes this.
  3. Cryptaline

    Cryptaline Active Member

    Will apreciate any help/already made addon. :)
    In addition i can offer some css styling help/money :coffee:
  4. ragtek

    ragtek Guest

    Hm, hadn't found it, but i love challenges:D

    Would it also work, if i add it to the footer template (for using in the footer hook) or do you have another template hook where you want to insert it?
    edit: ok i was able to make what you requested^^
    Cryptaline likes this.
  5. iTuN3r

    iTuN3r Well-Known Member

    If this is done consider Donation from my side as well !
  6. ragtek

    ragtek Guest

    try this

    be aware that it adds at least 1 global query to the front pages! (this addon is just passing the data, so you'll also need probably to take care of precaching the needed templates

    also as mentioned, this doesn't show anything!
    you'll need to include the output yourself (they're stored in the newsFeed template parameter, which means that it works will work with the standard xf newsfeed template)

    Attached Files:

    kkm323, Jake Bunce and Cryptaline like this.
  7. ragtek

    ragtek Guest

    kkm323, Jake Bunce and Cryptaline like this.
  8. Cryptaline

    Cryptaline Active Member

    I will describe how it works:

    1. Dowload addon.
    2. Install it.

    Now you want to show some recent activity in your specific place?
    Not a problem, open page_container template and add your own news feed: Admin CP -> Styles -> Templates -> PAGE_CONTAINER.


    I want to show news feed @ the right side of my forum. Define the correct place and insert news_feed template there by adding:

    You may check all available templates for a news feed by finding and opening news_feed template.


    If you want to minify the code in a PAGE_CONTAINER, you can always create you own template, e.g:


    and copypast all templates you want to use from a news_feed template, e.g:

    then come back to your PAGE_CONTAINER template, define the correct place and insert own_template template there by adding:

    Thats it, and the result is:

    kkm323 and RobinHood like this.
  9. Cryptaline

    Cryptaline Active Member


    Have found a massive bug. While addon is enabled you keep geting this error
    Fatal error: Cannot redeclare class XFCP_Ragtek_GNF_Extend_ViewPublic_Base in /mycustomaddress/mycustomaddress/mycustomaddress / mycustomaddress / mycustomaddress /domains/mycustomaddress.com/html/community/library/XenForo/Application.php(396) : eval()'d code on line 1
    when trying to access your account details such as:

    Personal Details
    Contact Details

    and all other tabs.

    Any ideas how to fix?
  10. ArnyVee

    ArnyVee Well-Known Member

    Keeping an eye on this as this is a great idea (enhances the social networking aspect to the site)
    Cryptaline likes this.
  11. RobinHood

    RobinHood Well-Known Member

    Once this is working properly I might see if I can use media queries to add this as an additional sidebar to the site, but have it only appear for those with larger resolution monitors who have the extra screen real estate.
  12. kkm323

    kkm323 Well-Known Member

    Thanks guys for the add-on brillent idea with great implementation. Thats what I love about this community and xenforo is really enhanceable (y)
  13. TrevC

    TrevC Well-Known Member

    Looks interesting. Was the bug fixed?
  14. Cryptaline

    Cryptaline Active Member

    Yes, it was fixed.
  15. TrevC

    TrevC Well-Known Member

    Thanks for responding, Adam. Was the fixed version released? Looks like a useful addition.

    Very much a front-end guy and easily confused once I'm too many layers deep in Zend/PHP.
  16. Cryptaline

    Cryptaline Active Member

    Nope, fix has not been released. Since n1 donated 2 Ragtek except me, he sent the fixed version 2 me only i guess.
  17. Luis

    Luis Well-Known Member

    Although I have not tested this, but is possible that this addon has been updated in GitHub,


    The version on GitHub is the 1.0.1_b_3 and in this thread is 1.0.1_b_2
    TrevC likes this.
  18. Cryptaline

    Cryptaline Active Member

    Hmm, yes this one is standalone too.
    I ve modified 1.0.1_b_3 myself to suit my needs, but you can try to use 1.0.1_b_3, have not seen any bugs in this version.
  19. TrevC

    TrevC Well-Known Member

    The original zip appears to be corrupted. Did you happen to have a working copy of it?

    Thanks :)
  20. Luis

    Luis Well-Known Member

Share This Page