I understand how to to override a function that resides in a file in the ControllerPublic folder, but am not sure how to do the same for a function in ViewPublic/Helper/Node.php
I have tried that but unless I am doing something wrong it does not work.
As for even listener, do I use load_class_controller for this? I have tried load_class_view just in case but no luck either.
To use this event properly, determine if the class is one you want to extend. If so, add a new entry to $extend with the name of the class that should extend it. This class MUST be defined as follows:
class My_Class_Name extends XFCP_My_Class_Name { // functionality to extend/override }[/COLOR] This class must extend the non-existent XFCP_x class. This will be resolved at run time.
It doesn't look like this is currently possible. None of the calls are using any kind of dynamic class loading, it's just hardcoding XenForo_ViewPublic_Helper_Node::functionName(...).
However, for now, you should be able to override XenForo_ViewPublic_Forum_View, XenForo_ViewPublic_Forum_List, and XenForo_ViewPublic_Category_View using the load_class_view event listener. In those three, just replace renderHtml() to use your helper instead of the default one.