In this case, I'm working with the XenForo_ControllerPublic_Forum::actionForum() method. All I need to do is change this line: PHP: $threadsPerPage = XenForo_Application::get('options')->discussionsPerPage; and replace it with my own bit of code. What is the best way to do this? I know I could just copy the entire method into my extension method, but that is awfully hacky and a short term solution. If you had to change that line in the actionForum method, how would you go about it?