maybe i'm missing something. My add-on is quite basic, and here's the code:
PHP:
class XFtoWP_ControllerPublic_Forum extends XFCP_ControllerPublic_Forum
{
public function actionAddThread()
{
$response = parent::actionAddThread();
// do something here...
}
}
No, your class is XFtoWP_ControllerPublic_Forum. You'll change the underscores to slashes and add .php. So, XFtoWP/ControllerPublic/Forum.php. However, your problem is in your XFCP class.
class XFtoWP_ControllerPublic_Forum extends Xenforo_ControllerPublic_Forum
{
public function actionAddThread()
{
$response = parent::actionAddThread();
// my custom code here....
}
}
Reread my post. You have placed the file in the wrong location. You also do not extend XenForo classes directly. You need to use the XenForo Class Proxy system as described in my resource. Have you created a listener?