I have implemented your suggestion and expand the php code:
PHP Code:
$realname ='';
if ($post['field6'] && $post['field5']) {
$realname = $post['field6'] . ' ' . $post['field5'];
}
vB_Template::preRegister('showthread_list',array('userjs' => $realname));
#vB_Template::preRegister('showthread_list',array('realname' => $realname)); # not work
#vB_Template::preRegister('postbit',array('realname' => $realname)); # tempalte postbit // not work
#vB_Template::preRegister('postbit_legacy',array('realname' => $realname)); # tempalte postbit_legacy // not work
I try two templates, it dosen't work or I make samthing wrong?
The Hook Location is the same.