Hi everyone,
I’ve developed an Add-On using the template_hook code event listener.
My purpose is to filter the content of some templates in certain parts of the website. I did it almost everywhere I need, except for two places “Recent Activity” and “Postings” on the Member profile page.
To access the text inside the template I’m using the following syntax :
The problem in these cases(“Recent Activity” and “Postings”) is that changing the $content variable the templates don’t change so I don’t know how to change the relative content
Can anyone help?
Thanks in advance
I’ve developed an Add-On using the template_hook code event listener.
My purpose is to filter the content of some templates in certain parts of the website. I did it almost everywhere I need, except for two places “Recent Activity” and “Postings” on the Member profile page.
To access the text inside the template I’m using the following syntax :
PHP:
public static function template_hook ($hookName, &$contents, array $hookParams, XenForo_Template_Abstract $template)
{
if($hookName == “my_template”) $contents = filter($contents)
}
The problem in these cases(“Recent Activity” and “Postings”) is that changing the $content variable the templates don’t change so I don’t know how to change the relative content
Can anyone help?
Thanks in advance