Author Topic: WB 2.10.0 Output Filter Module  (Read 147 times)

Offline grawi

  • Posts: 16
WB 2.10.0 Output Filter Module
« on: May 18, 2017, 08:05:48 PM »
Hello
I am having a problem with Ouput Filter Module in WB2.10.0
It is not possible to switch off ScripVars. Javascript variables are visible in the page source all the time either ScriptVars are on or off.

 var URL = 'http://localhost/xxx';
      var WB_URL = 'http://localhost/xxx';
      var THEME_URL = 'http://localhost/xxx/templates/DefaultTheme';
      var TEMPLATE_DIR = 'http://localhost/xxx/templates/xxx';
      var TEMPLATE = 'xxx';
      var EDITOR = 'ckeditor';



Offline jacobi22

  • Global Moderator
  • *****
  • Posts: 4249
  • Gender: Male
    • Jacobi22
Re: WB 2.10.0 Output Filter Module
« Reply #1 on: May 19, 2017, 12:25:03 AM »
sure, that its come from the output filter and not from a addon?

do you use register_frontend_m odfiles('jquery'); in your template-index.php?  if yes, this function activate also the scriptvars-block

if NO

pls try: addons -> modules -> advanced -> manuel upgrade - select output filter -> click execute

then go back to admin tools -> output filter and try again to de-select this filter
Du warst hier in meiner Seele und bist jetzt meilenweit entfernt
Wenn ich in Liedern von dir erzähle, war das jede Träne wert!
Alex Diehl- In meiner Seele

Offline grawi

  • Posts: 16
Re: WB 2.10.0 Output Filter Module
« Reply #2 on: May 19, 2017, 05:59:45 PM »
I do not use register_frontend_m odfiles('jquery');

Output Filter Module upgraded - any changes. ScriptVars still visible in page source for both: ScrirsptVars on or off.

I use two extensions: MiniForm 0.7  and cw-soft-anynews 2.14.0. Both extensions work correctly in WB2.10

Thank you

Offline Ruud

  • WebsiteBaker Org e.V.
  • **
  • Posts: 3503
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: WB 2.10.0 Output Filter Module
« Reply #3 on: May 19, 2017, 10:57:44 PM »
There is a known bug in the filterScriptVars.ph p outputfilter. Due to this bug you cannot disable its functionality.
It seems to be fixed in the next WB version.

For now, rename the file: /modules/output_filter/filters/filterScriptVars.php  to something else ( i.e.: __filterScriptVars. php ).
That should fix it for you.

Offline grawi

  • Posts: 16
Re: WB 2.10.0 Output Filter Module
« Reply #4 on: May 19, 2017, 11:27:56 PM »
Thank you Ruud. It solved now. ScriptVars removed.