The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Problem with template rendering
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: PHP Code:
HTML 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> Can someone please explain how to fix this? Thanks in advance. |
#2
|
||||
|
||||
The footer gets rendered when the global.php file gets included at the very, very top of the page. So, if you want to preregister some variables for use in the footer, you need to do so before the footer template is rendered.
|
#3
|
|||
|
|||
Thanks! but there's a problem:
I typed this in class_bootstrap.php: PHP Code:
I printed_r $vbulletin->forumcache, but there were no fields replycount and threadcount. How can i fix this? |
#4
|
||||
|
||||
Then I would guess you need to get the forumcache from datastore?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|