Dr.CustUmz
03-03-2015, 02:14 PM
ive done this a million times before but for some reason this isnt working, ive uninstalled the product reinstalled it but i cant fetch my template and its urkin me -_-
this is the snippit:
<template name="my_unique_tmplt" templatetype="template" date="0" username="DrCustUmz" version="1.0"><![CDATA[
SOME SHIT
]]></template>
</templates>
<plugins>
<plugin active="1" executionorder="5">
<title>cache template</title>
<hookname>cache_templates</hookname>
<phpcode><![CDATA[
$globaltemplates = array_merge($globaltemplates, array('my_unique_tmplt'));
]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>parse template</title>
<hookname>parse_templates</hookname>
<phpcode><![CDATA[
eval('$someVariable = "' . fetch_template('my_unique_tmplt') . '";');
]]></phpcode>
</plugin>
and in postbit i added:
Variable: $someVariable
but it wont show is there a certain way you have to cache the template for calling it in the postbit?
this is the snippit:
<template name="my_unique_tmplt" templatetype="template" date="0" username="DrCustUmz" version="1.0"><![CDATA[
SOME SHIT
]]></template>
</templates>
<plugins>
<plugin active="1" executionorder="5">
<title>cache template</title>
<hookname>cache_templates</hookname>
<phpcode><![CDATA[
$globaltemplates = array_merge($globaltemplates, array('my_unique_tmplt'));
]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>parse template</title>
<hookname>parse_templates</hookname>
<phpcode><![CDATA[
eval('$someVariable = "' . fetch_template('my_unique_tmplt') . '";');
]]></phpcode>
</plugin>
and in postbit i added:
Variable: $someVariable
but it wont show is there a certain way you have to cache the template for calling it in the postbit?