The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have this piece of code. The header works ok, the footer does not.
For some reason the $RightWidth variable does not seem to get set in the footer template. Code:
if (stristr($_SERVER['REQUEST_URI'], 'calendar') === FALSE) { $MainWidth = '73%'; $RightWidth = '23%'; } else { $MainWidth = '100%'; $RightWidth = '0%'; } vB_Template::preRegister('header',array('MainWidth' => $MainWidth)); vB_Template::preRegister('footer',array('RightWidth' => $RightWidth)); |
#2
|
||||
|
||||
![]()
Could be you are using a hook that is evaled after the footer is evaled and thus the footer can't get the variable.
|
#3
|
|||
|
|||
![]()
Have turned debug on and used start_init and global_start ...
I've worked around this for now with a conditional that checks for the calendar script. Not idea... but for now, I'll have to live with this. Some of the posts indicate that the footer might be unmodifable. |
#4
|
||||
|
||||
![]()
You know, you could probably just use THIS_SCRIPT:
PHP Code:
|
#5
|
|||
|
|||
![]()
That is fine.. but it is a pain when you want variable width columns depending on the scripts.
Does anyone have ideas why variables might not be working? Turning of data store caches (xcache and filestore) to not seem to change the problem. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|