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

How to perform a search for posts by the current user

Discussion in 'XenForo Development Discussions' started by Marcel, Sep 27, 2016.

  1. Marcel

    Marcel Active Member

    I'm building a 'participated' link for our forums to display a list of threads that the user has participated in.
    For the life of me I can't figure out how. I'm building off ControllerPublic_Search but I can't for the life of me figure out how to pass parameters to it instead of going through the search form.

    At the moment I'm using a listener to extend XenForo_ControllerPublic_Search and then calling actionSearch, but I want to add the following constraints :
    A: A list of threads
    B: Containing posts by the current user
    C: Within x timeframe (I can add this later)

  2. Pierce

    Pierce Well-Known Member

  3. Marcel

    Marcel Active Member

    Thanks Pierce.
    Unfortunately that only searches for threads started by that particular user. I want to search for threads containing posts by that user.
  4. Pierce

    Pierce Well-Known Member

Share This Page