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

Including an external file within template

#1
Just for a private forum template... is there a way to include an external file from another webserver to parse within the template.

Also, is there a way to run php commands such as date within the template?
 

Kier

XenForo Developer
Staff member
#2
Just for a private forum template... is there a way to include an external file from another webserver to parse within the template.

Also, is there a way to run php commands such as date within the template?
Date processing is handled via the <xen:datetime time="$unixtime"> and {xen:datetime $unixtime} constructs.

There is currently no way to include an external file in a template unless you write code to do so in a view class.
 

Kier

XenForo Developer
Staff member
#4
You could either do that with javascript in the templates, or you'd need to write some controller code to output it into the $viewParams array passed to the view.