Please upgrade here. These earlier versions are no longer being updated and have security issues.

.js and css view in signed in

i will edit class... php

İ will do ;

    $this->addJsFile('jquery.autosize.min.js');
    $this->addJsFile('autosave.js');
    $this->addJsFile('discussion.js');

I want these codes to be active when user login to the forum
this code;
if ( $User.SignedIn) {
$this->addJsFile('jquery.autosize.min.js');
$this->addJsFile('autosave.js');
$this->addJsFile('discussion.js');
}
Where am I doing wrong? what is the truth? thnk you... sorry bad eng.

Comments

  • if (Gdn::Session()->IsValid()) {
      $this->addJsFile('jquery.autosize.min.js');
      $this->addJsFile('autosave.js');
      $this->addJsFile('discussion.js');
    }
    
    nedirbilgiler
Sign In or Register to comment.