View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
381 | Composr | cns_post_templates | public | 2012-01-25 19:13 | 2012-02-19 21:09 |
Reporter | Duck | Assigned To | Chris Graham | ||
Priority | normal | Severity | feature | ||
Status | resolved | Resolution | fixed | ||
Summary | 381: Allow Post Templates to Accept Subject (Title)Templates | ||||
Description | I would like to define a default subject Template (preferable allowing Variable use such as %username% or %date% etc)attached to the post template so that when a user adds a new topic in the forum that the post template is attached to the Topic title is auto filled in for them with the post templates Title Template. | ||||
Tags | No tags attached. | ||||
Attach Tags | |||||
Time estimation (hours) | |||||
Sponsorship open | |||||
|
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}) |