• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

Thread links in WP Multisite Changed

LPH

Flight Director
Flight Instructor
The code to show thread links at the bottom of each WordPress story has been modified.

//function to be used in templates to display a link to the XenForo thread
function xenforo_thread_url()
{
global $XF;

if($XF->useXenForoCommentHandler() && isset($XF->post->thread_id) && $XF->post->thread_id != '0')
{
$link = '/community/threads/' . $XF->post->thread_id . '/';
return $link;
}
else
{
return '';
}
}

Instead of $XF->createLink the $link was hard coded to /community/threads/. This makes sure that the domain name is not included in the link.
View on the Blog
 
Top