In shoutboxview.php:
PHP Code:
public function index(){
$mysidia = Registry::get("mysidia");
$document = $this->document;
$document->setTitle($this->lang->title);
$document->addLangvar($this->lang->default);
$shoutbox = $this->getField("shoutbox");
$this->display($shoutbox);
//$ckEditor = $shoutbox->editor;//comment or delete this
if($mysidia->input->post("comment")){
$document->addLangvar($this->lang->complete);
$this->refresh(5);
return;
}
$shoutboxForm = new Form("shoutbox", "shoutbox", "post");
$shoutboxForm->add(new Comment($mysidia->lang->notice, TRUE));//change this to TRUE to make a linebreak
//comment or delete this:
//$shoutboxForm->add(new Comment($ckEditor->editor("comment", "CKEditor for Mys v1.3.4")));
$shoutTextArea = new TextArea("comment", "", 4, 45);//add this line
$shoutboxForm->add($shoutTextArea);//add this line
$shoutboxForm->add(new Button("Shout It!", "submit", "submit"));
$document->add($shoutboxForm);
}
I commented the changes, so it should be easy to find them ^^