View Single Post
  #5  
Old 12-29-2014, 03:51 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 19,372
IntoRain is on a distinguished road
Default

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->noticeTRUE));//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"""445);//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 ^^
__________________


asp.net stole my soul.
Reply With Quote