FatalBreeze
05-19-2010, 01:24 PM
Hello!
I wanted to post some statistics that are already shown in forumhome, in the footer:
so in forum.php (the hool is called: forumhome_complete) i typed this code:
$templatea = vB_Template::create('footer');
$templatea->register('numbermembers', $numbermembers);
$templatea->register('newuserinfo', $newuserinfo);
$templatea->register('totalposts', $totalposts);
$templatea->register('totalthreads', $totalthreads);
$templatea->render();
and in the footer template, i entered this code:
<div style="display: inline;">{vb:rawphrase threads} {vb:raw totalthreads}</div>
<div style="display: inline;">{vb:rawphrase posts} {vb:raw totalposts}</div>
<div style="display: inline;">{vb:rawphrase members} {vb:raw numbermembers}</div>
<div style="display: inline;">{vb:rawphrase welcome_to_our_newest_member_x, {vb:link member, {vb:raw newuserinfo}}, {vb:raw newuserinfo.username}}</div>
but when i refresh the browser i only see the phrases and not the values.
Can someone please explain how to fix this?
Thanks in advance.
I wanted to post some statistics that are already shown in forumhome, in the footer:
so in forum.php (the hool is called: forumhome_complete) i typed this code:
$templatea = vB_Template::create('footer');
$templatea->register('numbermembers', $numbermembers);
$templatea->register('newuserinfo', $newuserinfo);
$templatea->register('totalposts', $totalposts);
$templatea->register('totalthreads', $totalthreads);
$templatea->render();
and in the footer template, i entered this code:
<div style="display: inline;">{vb:rawphrase threads} {vb:raw totalthreads}</div>
<div style="display: inline;">{vb:rawphrase posts} {vb:raw totalposts}</div>
<div style="display: inline;">{vb:rawphrase members} {vb:raw numbermembers}</div>
<div style="display: inline;">{vb:rawphrase welcome_to_our_newest_member_x, {vb:link member, {vb:raw newuserinfo}}, {vb:raw newuserinfo.username}}</div>
but when i refresh the browser i only see the phrases and not the values.
Can someone please explain how to fix this?
Thanks in advance.