Activity stream - excluding a user.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pope Viper
    Senior Member
    • Mar 2006
    • 825

    [Forum] Activity stream - excluding a user.

    I've got a specific RSS feed user that provides information into a specific "News Poster" forum. The news posters then pick and chose what they would like to post for our user base.

    Is there a way I can remove this user's activity from being displayed in the stream?
  • Matthew Gordon
    Senior Member
    • May 2002
    • 3243
    • 1.1.x

    #2
    I haven't tested this, but it should work. I'm basing it off of this post.

    Make a plugin on the postdata_presave hook with the following:
    PHP Code:
    if ($this->fetch_field('postuserid') == 14716) {
          
    $this->set_info('skip_activitystream'true);

    Replace 14716 with the userid of the user that posts RSS feeds. Note that this only applies to new posts it makes, it won't retroactively remove old posts from the stream.

    Comment

    • Pope Viper
      Senior Member
      • Mar 2006
      • 825

      #3
      Hmmm, tried that and no go:


      Here's what I'm using
      Product: Vbulletin
      Hook Location: postdata_Presave
      Title: Activity Stream Exclude Forums
      Execution order: 5
      Code:
      if ($this->fetch_field('postuserid') == 19) {
      $this->set_info('skip_activitystream', true);
      }

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...