How to perform a search for posts by the current user

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)

Thanks,
 
Thanks Pierce.
Unfortunately that only searches for threads started by that particular user. I want to search for threads containing posts by that user.
 
That sounds more like a bug to me. Or I'm missing some kind of permission. But yes, I've disabled search for guests, yet they can search via routes. There might be the chance that the logic behind this is "guests can view your posts, so they can search for your posts". Better off asking XF devs directly I guess.
 
Top Bottom