2011-08-04, 03:14 PM
I am trying to insert a new template into the global template list during a plugin install but i keep getting sql errors
what is wrong with template? the error is attached. i have tried single and double quotes, escaping various ways, etc
//add new global template
$template = array("title" => "delayedpost",
"sid" => "-1",
"template" =>"<br /> <strong>{\$lang->delayedpost_label1}</strong>{\$lang->delayedpost_label2} <label><input type=\"text\" id=\"delayed_post_time\" maxlength=\"25\" size=\"25\"/> <img src=\"{\$theme['imgdir']}/cal.gif\" onclick=\"javascript:NewCssCal('delayed_post_time','MMddyyyy','arrow',true,'24')\" style=\"cursor:pointer\"/></label>");
what is wrong with template? the error is attached. i have tried single and double quotes, escaping various ways, etc