arms
Well-known member
I've created a custom thread URL field and adding/editing it is working.
My issue was that in 1.5 I extended the prepareThread to include link proxy.
But can't seem to find an alternative place within XF2.
Any tips?
My issue was that in 1.5 I extended the prepareThread to include link proxy.
But can't seem to find an alternative place within XF2.
Any tips?
PHP:
if ($thread['external_url'])
{
if (!empty(XenForo_Application::get('options')->imageLinkProxy['links']))
{
$hash = hash_hmac('md5', $thread['external_url'],
XenForo_Application::getConfig()->globalSalt . XenForo_Application::getOptions()->imageLinkProxyKey );
$thread['external_url_proxy'] = 'proxy.php?' . 'link' . '=' . urlencode($thread['external_url']) . '&hash=' . $hash;
}