• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Listener in XenForo_ControllerPublic_Misc->actionContact()

R

ragtek

Guest
#1
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?
 
R

ragtek

Guest
#3
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';
        }
    }
}