Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

.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');
    }
    
Sign In or Register to comment.