hello i have this code and works great but i have to add "{vb:raw login_panel}" to the header template
PHP Code:
$templater = vB_Template::create('login_panel_html'); //Create html template
$login_panel = $templater->render(); //saving template on a variable
$templater = vB_Template::create('login_panel_css'); //Create css template
$login_panel_css = $templater->render(); //saving template on a variable
$templater = vB_Template::create('login_panel_javascript'); // Create javascript template
$login_panel_javascript = $templater->render(); //saving template on a variable
$login_panel = $login_panel.$login_panel_css.$login_panel_javascript; //save templates variables on one var
vB_Template::preRegister('header',array('login_panel' => $login_panel)); //registering the variable variable
What i'm trying to do is to put login_panel var on the header template without have to manually add it, so i tried this codes but it doesn't works
PHP Code:
$templater = vB_Template::create('login_panel_html'); //Create html template
$login_panel = $templater->render(); //saving template on a variable
$templater = vB_Template::create('login_panel_css'); //Create css template
$login_panel_css = $templater->render(); //saving template on a variable
$templater = vB_Template::create('login_panel_javascript'); // Create javascript template
$login_panel_javascript = $templater->render(); //saving template on a variable
$login_panel = $login_panel.$login_panel_css.$login_panel_javascript; //save templates variables on one var
$vbulletin->templatecache['header'] .= $login_panel; //Adding templates var on the header
It says "Parse error: syntax error, unexpected $end in /includes/class_core.php(4633) : eval()'d code on line 69"
someone that could help me? Or has another way to do it?