automatic year change script

wdg
16 Posts
wdg posted this 2 weeks ago

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 2 weeks ago

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
wdg
16 Posts
wdg posted this 2 weeks ago

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
30 Posts
thfischbach posted this 1 weeks ago

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 1 weeks ago by thfischbach

wdg
16 Posts
wdg posted this 1 weeks ago

Thank you

Thank you
You must log in or register to leave comments