automatic year change script

brizzicomunicazione
26 Posts
brizzicomunicazione posted this 05 January 2018

HTML- I would like to report what I think is an error generated during the integration of a script. At the foot of the page I entered the current year date, using a simple script:
1988 - <script type
type
type type

HTML- I would like to report what I think is an error generated during the integration of a script. At the foot of the page I entered the current year date, using a simple script: 1988 - &lt;script type type type type
Vote to pay developers attention to this features or issue.
4 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 09 January 2018

Hi,

Are you using the CMS Code control for the script? If yes and it does not work, provide a script code here. Use the CTRL+K combination to highlight the code so it won't be executed.

Sincerely,
Hella

Hi, Are you using the CMS Code control for the script? If yes and it does not work, provide a script code here. Use the CTRL+K combination to highlight the code so it won't be executed. Sincerely, Hella
brizzicomunicazione
26 Posts
brizzicomunicazione posted this 09 January 2018

Hi,

Are you using the CMS Code control for the script? If yes and it does not work, provide a script code here. Use the CTRL+K combination to highlight the code so it won't be executed.

Sincerely,
Hella

Hi Hella,

I do not use any CMS control, but only the script in the html section; see script in the attached image
Then, I do not understand how / where I should use the control + k combination
Thank you,
Walt.

> Hi, > > Are you using the CMS Code control for the script? If yes and it does not work, provide a script code here. Use the CTRL+K combination to highlight the code so it won't be executed. > > Sincerely, > Hella Hi Hella, I do not use any CMS control, but only the script in the html section; see script in the attached image Then, I do not understand how / where I should use the control + k combination Thank you, Walt.
thfischbach
29 Posts
thfischbach posted this 10 January 2018

The easiest way is to use a CMS-Code control. Insert short PHP-Code like this:

<?php $actualyear=date("Y")
echo "copyright 2008 - $actualyear";
?>

and everything will be fine. :)

The easiest way is to use a CMS-Code control. Insert short PHP-Code like this: <?php $actualyear=date("Y") echo "copyright 2008 - $actualyear"; ?> and everything will be fine. :)

Last edited 10 January 2018 by thfischbach

brizzicomunicazione
26 Posts
brizzicomunicazione posted this 10 January 2018

Thank you

Thank you
You must log in or register to leave comments