• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Trying to add php script into template

#1
I'm trying to add a php variable with output data into the PAGE_CONTAINER template via the Template Modifications "Find and Replace" function and can't seem to figure out how to do it.

I've done the event listener function for another part which works just fine, and actually set the $phpvariable in that script. Now I'm just trying to use the "find and replace" function to replace this:

<div id="headerMover">
<div id="headerProxy"></div>

<div id="content" class="{$contentTemplate}">
<div class="pageWidth">
<div class="pageContent">
<!-- main content area -->

with

<div id="headerMover">
<div id="headerProxy"></div>

<div id="content" class="{$contentTemplate}">
<div class="pageWidth">
<div class="pageContent">
<!-- main content area -->
{$phpvariable}

but can't seem to get the variable to output here?
 

Brogan

XenForo moderator
Staff member
#2
What is output?

Is the variable available in the template?
What happens if you dump it using {xen:helper dump, $variable} ?
 
#4