Show thread with specific posts


I have to add button in thread which shows posts belong to sepcific usergroups. What is the best way to do it?

I want to extend XenForo_ControllerPublic_Thread by new Method similar to actionIndex() and change Model Function wich returs posts in thread.

But when I copy actionIndex() to another method the result is return in "window" , not as page. Why?
Last edited: