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

XF 1.4 Prevent profile events showing in Recent Activity

Discussion in 'XenForo Questions and Support' started by MarkMark, Jul 7, 2015.

  1. MarkMark

    MarkMark Member

    What's the easiest way to stop profile events (avatar changes etc) appearing in the Recent Activity stream?

    I only want forum and resource events.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    I haven't tested it but you can try commenting out the contents of the various news_feed_item_* templates.
     
  3. MarkMark

    MarkMark Member

    I'm assuming there must be a master template that tells the system what to import.

    I can modify most the news_feed_item templates, commenting out the content, but a blank entry still gets imported.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    In that case you can try editing the news_feed template and adding a conditional statement to exclude/include certain item types.
     
  5. MarkMark

    MarkMark Member

    I don't mean to be cheeky... But are you able to give me an example.

    I can see the current conditional statement in news_feed_item, and I understand I need to modify the statement so that certain news_feed_IDs are excluded, but I'm not sure where to start.

    For example, I'd like to exclude news_feed_item_profile_post_insert
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    I'm not even sure it's possible - it's not something I've looked into in any detail.
     

Share This Page