PDA

View Full Version : instead of using a template


Dr.CustUmz
04-14-2016, 02:41 PM
first off the code I currently have looks like:

// wrap in an if condition option option off later
eval('$drcpmm = "<div class="someDiv"></div>";');
// else option on
$drcpmm = '<div class="someDiv"></div>';
$vbulletin->templatecache['header'] .= $drcpmm;
// end if

I later will be toggling between the 2 with an option but for now it should still be functional shouldnt it?

Instead of using a template I'm trying to define a div as a variable, then append that div to the end of the header template.

the eval is so if the user has turned the option off they can place $drcpmm anywhere they choose.

But how can I get the div to display after the header the way I set it up, I'm probably missing something simple, I just dont want to create a template for such a little div.