#381 - Allow Post Templates to Accept Subject (Title)Templates This is a spacer post for a website comment topic. The content this topic relates to: #381 - Allow Post Templates to Accept Subject (Title)Templates By Guest posted 19th Feb 2012, 4:09 PM Do not fill this field in. Simple change... In forum/pages/modules/topics.php, above: $apply[]=array($template['t_title'],$template['t_text'],$template['t_use_default_forums']); add: if (strpos($template['t_text'],'{')!==false) { require_code('tempcode_compiler'); $e=template_to_tempcode($template['t_text']); $template['t_text']=$e->evaluate(); } Then the post templates support Tempcode symbols (e.g. {$DATE}) 0 guests and 0 members have recently viewed this. Sort: Relevance Newest first Oldest first Rating Popularity
In forum/pages/modules/topics.php, above:
$apply[]=array($template['t_title'],$template['t_text'],$template['t_use_default_forums']);
add:
if (strpos($template['t_text'],'{')!==false)
{
require_code('tempcode_compiler');
$e=template_to_tempcode($template['t_text']);
$template['t_text']=$e->evaluate();
}
Then the post templates support Tempcode symbols (e.g. {$DATE})