MattW
Well-known member
So, I'm trying to get 2 of my addons to work with XenPorta. I've asked in the addon thread, but not had a response from the developer, so I'm asking in here hoping someone else might be able to help?
My addons both extend XenForo_ControllerPublic_Forum and allow the data to be added to the forum_stats block.
XenPorta seems to also extend XenForo_ControllerPublic_Forum
	
	
	
		
	
	
	
		
I'm stuck now how I get my data into that class EWRporta_ControllerPublic_Forum? I've tried to extend EWRporta_ControllerPublic_Forum but that doesn't work.
Thanks in advance.
				
			My addons both extend XenForo_ControllerPublic_Forum and allow the data to be added to the forum_stats block.
XenPorta seems to also extend XenForo_ControllerPublic_Forum
		PHP:
	
	case 'XenForo_ControllerPublic_Forum':
                $extend[] = 'EWRporta_ControllerPublic_Forum';
                break;
	
		PHP:
	
	class EWRporta_ControllerPublic_Forum extends XFCP_EWRporta_ControllerPublic_Forum
{
    public $perms;
    public function actionIndex()
    {
        $response = parent::actionIndex();
        $options = XenForo_Application::get('options');
        if ($response instanceof XenForo_ControllerResponse_View && $options->EWRporta_globalize['index'])
        {
            $response->params['layout1'] = 'index';
            $response->params['layout2'] = 'portal';
        }
        return $response;
    }
	I'm stuck now how I get my data into that class EWRporta_ControllerPublic_Forum? I've tried to extend EWRporta_ControllerPublic_Forum but that doesn't work.
Thanks in advance.

