![]() |
Problem with adding code to the footer.
Hi,
I want to add some javascript code to the footer of the first page after user login(vb 4.1). I tried to use login_redirect hook but this code unfortunately doesn't work because templatecache is empty at that time? $vbulletin->templatecache["STANDARD_REDIRECT"] = str_replace('</body>', 'mycode</body>', $vbulletin->templatecache["STANDARD_REDIRECT"]); Any idea? |
The templates don't get cached until the first template is created. But you could do something like this:
Code:
global $bootstrap; |
Thanks!!! It worked!!!
|
All times are GMT. The time now is 04:42 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|