Do you need the first plugin as well when using that code Paul?
I'm actually trying to do this...
My goal is to have a template custom_header with a variable $custom_header which will contain all of the code from $header with a slight change (removing code for a right column and a different logo) for a CMPS home page...
1.) I do add new template, and put the code I want in it, saving it as custom_header. It now appears under "Custom Templates"
2.) I make a plugin with
Quote:
eval('$custom_header = "' . fetch_template('custom_header') . '";');
|
starting at global_start
3.) I add the plugin "globaltemplates[] = 'custom_header';" starting in cache template
I enable both.
I get error:Parse error: syntax error, unexpected '[' in /home/uninsta1/public_html/bu/forums/global.php(346) : eval()'d code on line 55
Right above the logo in ALL pages (not just CMPS...)
Shortly thereafter forums don't show and errors occur in functions.php as well.
I disable plugins.
What should I try next?