• 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


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)



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.