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.
Options

Replace core script

edited May 2012 in Vanilla 2.0 - 2.8

how to?

smth like

$Sender->Head->DeleteJsFile('jquery.popup.js');

or

$Sender->Head->Body = str_ireplace("jquery.popup.js", "plugins/../jquery.popupx.js", $Sender->Head->Body);

?

thanx in advance

Best Answer

  • Options
    peregrineperegrine MVP
    edited May 2012 Answer ✓

    don't know if it is a good idea, or why you want to do it, but this will in a plugin

    public function Base_Render_Before(&$Sender) { 
    
       $Sender->RemoveJsFile('jquery.popup.js');
        $Sender->AddJsFile('/plugins/yourpluginname/js/jquery.popup.js');
    
     }
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Answers

  • Options
    peregrineperegrine MVP
    edited May 2012 Answer ✓

    don't know if it is a good idea, or why you want to do it, but this will in a plugin

    public function Base_Render_Before(&$Sender) { 
    
       $Sender->RemoveJsFile('jquery.popup.js');
        $Sender->AddJsFile('/plugins/yourpluginname/js/jquery.popup.js');
    
     }
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.