Hi, how can i insert FCKeditor into Xtemplate parser.
I want this:
$oFCKeditor = new FCKeditor('FCKeditor1');
$oFCKeditor->Create();
$t->assign(array(
"FORUMS_REPLY_BOX" => $oFCKeditor,
));
Well, when i watch the page, it makes the box already BEFORE the form has been build, just before the body has been written, very anoying. How can i create the editor inside that array so it does display only where i want it to displayed on the template file.
template:
{FORUMS_REPLY_BOX}
I want this:
$oFCKeditor = new FCKeditor('FCKeditor1');
$oFCKeditor->Create();
$t->assign(array(
"FORUMS_REPLY_BOX" => $oFCKeditor,
));
Well, when i watch the page, it makes the box already BEFORE the form has been build, just before the body has been written, very anoying. How can i create the editor inside that array so it does display only where i want it to displayed on the template file.
template:
{FORUMS_REPLY_BOX}
RE: Xtemplate insert
$t = new XTemplate(reply.tpl);
$box = new FCKeditor('msgpost');
$t->assign(array(
"FORUMS_REPLY_PAGETITLE" => $ft_fulltitle,
"FORUMS_REPLY_SEND" => "forums.php?m=posts&a=newpost&s=".$s."&q=".$q,
"FORUMS_REPLY_BOX" => $box->CreateHtml()
));
$t->parse("MAIN");
$t->out("MAIN");