vsforums
01-07-2013, 08:21 PM
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?
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?