XN-Matt Member Oct 22, 2010 #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?
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 Oct 25, 2010 #2 XN-Matt said: 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? Click to expand... 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.
XN-Matt said: 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? Click to expand... 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.
XN-Matt Member Oct 25, 2010 #3 As there isn't much about that around, what if you only want to pull the current year?
Kier XenForo developer Staff member Oct 25, 2010 #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.
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.