PDA

View Full Version : header/footer vs forumhome/forumdisplay


FreshFroot
01-06-2009, 02:48 AM
Just a quick question.

I noticed variables don't work with header/footer templates and do for forumhome (forum_) templates. Is this just the way vBulletin is setup? That you cannot call variables within the header/footer templates?

Lynne
01-06-2009, 03:01 AM
The header and footer are evaled when global.php is called, therefore any variables defined after global.php is called are not available for use in those templates.

FreshFroot
01-06-2009, 04:02 AM
So, I could have to change the header/footer templates in terms of being called?

I have a template forumhome_latestthread, which I later changed to latestthread. I know it will work on forumdisplay/forumhome.

So, what would be the best way to get it working on a footer template? Having it called earlier? I'm sure there is a way around it.

Dismounted
01-06-2009, 04:41 AM
You will just have to generate your variables earlier (if possible).