Hi,
Your idea was deciding, thanks, I change the Hook Location to showthread_postbit_create
I found in tempalte
showthread_list the location where are "bulid" the usernick name, this nickname I want to change to
realname, I try this with following code in this hook:
PHP Code:
$realname ='';
if ($post['field6'] && $post['field5']) {
$realname = $post['field6'] . ' ' . $post['field5'];
}
vB_Template::preRegister('showthread_list',array('userjs' => $realname));
It dosen't work.
If I change this code to
PHP Code:
vB_Template::preRegister('showthread_list',array('realname' => $realname));
And change the part of template
showthread_list to
PHP Code:
...
// cached usernames
pu[0] = guestphrase;
//{vb:raw userjs} // org
{vb:raw realname} // new
// -->
...
It dosen't wort to.
What make I wrong?