PDA

View Full Version : can i use $totalthreads... variable in footer template?


zama
03-31-2006, 09:04 AM
can i use $totalthreads variable in footer template?

Firstly, i'm trying to put the right side bar in my site, but i want the right side bar to display in every page on my site, so i did put the right side bar code in footer template.

Actaully it could work well, but when i try to put the "statistics" table code which were originally in the forum home template code, all the variables like $totalthreads, $totalposts, $numbermembers, $activemembers, $newusername don't work and don't display anything.

How can i make all the varibles work properly in the footer??? Please tell me...it's urgent!!!

PeterA
03-31-2006, 11:27 AM
zoma, you would need to make a plugin in the function the template is called and declare the variables you need as global etc.

zama
04-01-2006, 01:10 AM
zoma, you would need to make a plugin in the function the template is called and declare the variables you need as global etc.

I must say thanks to you. But I'm recently just only a rookie coder..:surprised: Could u please tell me how to do that descriptively......PLEASE??

Correctus
03-29-2007, 06:05 AM
Somebody answer this question please? I need a reply too.

ragnar21583
03-30-2007, 01:57 AM
And I.

I have the idea that it needs to go in the global.php, but I am not certain how to declare them or where in the php file.