Hi,
Can anyone know how to add Welcome to Newest member greeting in template ?
I got the function in core/includes/functions_databuild.php
Code:
function build_user_statistics()
{
$members = vB::getDbAssertor()->getRow('vBForum:fetchUserStats');
// get newest member
$newuser = vB::getDbAssertor()->getRow('vBForum:fetchnewuserstats',
array('userid' => $members['maxid']));
// make a little array with the data
$values = array(
'numbermembers' => $members['users'],
'activemembers' => isset($members['active']) ? $members['active'] : 0,
'newusername' => $newuser['username'],
'newuserid' => $newuser['userid']
);
// update the special template
vB::getDatastore()->build('userstats', serialize($values), 1);
return $values;
}
but how to add it on template system?
can anyone guide me?spending many hours to search it and not found it...