MyBB Hacks

Full Version: xthreads & printthread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all

are the threadfields variables allowed in the printthread_post template ? to date I have used {$GLOBALS['threadfields']['field']} but fields are not avalible to printthread_post template.
Have I just missed something or does xthreads not make fields avalible to printthread.php ? If the fields are not avalible, is it easier for me to write a plugin to make the fields availble  or can this function be added to the xthreads project ?
Thread fields aren't pulled in print/send thread.
You could probably try

PHP Code:
$plugins->add_hook('printthread_start', 'derp');
function derp() {
xthreads_get_threadfields((int)$GLOBALS['mybb']->input['tid'], $GLOBALS['threadfields'], false);
}

Reference URL's