WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • General Help & Support »
  • General settings
  • Print
Pages: [1]   Go Down

Author Topic: General settings  (Read 6314 times)

Offline RonR

  • Posts: 59
General settings
« on: January 22, 2021, 02:09:40 PM »
Just a question:
updated from 2.12 to 2.13 rc26
PHP7.3

I had my Google Analytics code on:
Settings->General Settings-> Website footer.

After update the code is gone. Also gone in the database.
New entry of the script in this field is not being recorded/saved.

Is this normal behaviour? I can not recall during previous updates to have the code gone away.

Ended up putting the code in the template file as a workaround.

Greetz,
Ron
Logged

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4548
  • Gender: Male
Re: General settings
« Reply #1 on: January 22, 2021, 03:44:45 PM »
Quote from: RonR on January 22, 2021, 02:09:40 PM
Ended up putting the code in the template file as a workaround.

this is the right way, not in input fields to prevent Cross-site scripting (XSS)

Dietmar
Logged
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline dbs

  • Betatester
  • **
  • Posts: 8914
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: General settings
« Reply #2 on: January 22, 2021, 03:58:16 PM »
Maybe also possible.
Create a new droplet, add your code like this:

Code: [Select]
$gacode = '<script>...</script>';
return $gacode;
Logged
https://onkel-franky.de

Offline RonR

  • Posts: 59
Re: General settings
« Reply #3 on: January 22, 2021, 04:39:59 PM »
Ok, all clear!
Was just not sure.

Thanks for clarification!
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • General Help & Support »
  • General settings
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2