Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

In this Discussion

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

Add some .js file

This discussion is related to the MinusBaseline addon.
DmcBoosDmcBoos New
edited June 2015 in Vanilla 2.0 - 2.3

i want to add a some .js script like this..
ex : <script src="http://example.com/js/animation.js" type="text/javascript" charset="UTF-8"></script>

Comments

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    Find following lines in class.minusbaselinethemehooks.php:

        public function Base_Render_Before($Sender) {
            if ($Sender->MasterView == 'admin') return;
    

    and add $Sender->AddJsFile($this->GetResource('js/animation.js', false, false)); below. You also have to put your js file in the js folder of the MinusBasline theme.

    hgtonightBleistivt
  • thanks. <3 but i want to add some .js Link

  • @R_J said:
    Find following lines in class.minusbaselinethemehooks.php:

        public function Base_Render_Before($Sender) {
            if ($Sender->MasterView == 'admin') return;
    

    and add $Sender->AddJsFile($this->GetResource('js/animation.js', false, false)); below. You also have to put your js file in the js folder of the MinusBasline theme.

    after add this code my site load blank page :(

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    Try $Sender->AddJsFile('animation.js'); instead of the above.

  • DmcBoosDmcBoos New
    edited June 2015

    Great @R_J =) it work! :+1:

    R_Jhgtonight
Sign In or Register to comment.