The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Why does str_replace works, but not eval($navbar='') on FORUMHOME?
To add a template on forumhome_complete, this works:
Code:
$vbulletin->templatecache['FORUMHOME'] = str_replace('$navbar','$navbar'.fetch_template('custom'),$vbulletin->templatecache['FORUMHOME']); Code:
eval('$navbar .= "' . fetch_template('custom') . '";'); |
#2
|
|||
|
|||
If I remember correctly, $navbar gets eval()'d right at the end of the page, most likely after the forumhome_complete hook. So it will just overwrite the custom template.
You could check by looking for the hook in the index.php and see its location compared to where the navbar is eval()'d |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|