Listener in XenForo_ControllerPublic_Misc->actionContact()

  • Thread starter Thread starter ragtek
  • Start date Start date
R

ragtek

Guest
Hi.

I'd like to create an thread, when somebody sends the contact formular instead of sending the mail.

So i think i have to create my own method/ override the existing actionContact in the ControllerPublic_Misc Class.

How can i do this with the new eventListeners?
 
thx, that's what i tried allready, but i'm getting an error "Please enter a valid callback method."
Here's my file:
PHP:
class Ragtek_ContactThread_EventListener_createThread
{
    public static function listen($class, array &$extend)
    {
        if ($class == 'XenForo_ControllerPublic_Misc')
        {
            $extend[] = 'Ragtek_ContactThrad_ControllerPublic_Misc';
        }
    }
}
 
Oh:(

Nevermind, there are some nameproblems, i think they are the problem:D
 
Top Bottom