Announcement

Collapse
No announcement yet.

Help required displaying current date on actinic web pages?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help required displaying current date on actinic web pages?

    Hi - is there a way to extract the date from your PC to display it on the pages as the current year for a copyright notice.

    I normally use the following for non-actinic sites but my understanding is that actinic perl scripts will not process PHP code.

    Copyright &copy; 'Company Name' 2003 - <?php echo date("Y"); // displays the current year ?>. All rights reserved.
    Regards
    David

    #2
    standard site bottom left - Actinic already does this. You just need to add your static bit 2003 - into the existing Actinic code.
    Bill
    www.egyptianwonders.co.uk
    Text directoryWorldwide Actinic(TM) shops
    BC Ness Solutions Support services, custom software
    Registered Microsoft™ Partner (ISV)
    VoIP UK: 0131 208 0605
    Located: Alexandria, EGYPT

    Comment


      #3
      If you are wanting the date to be dynamic if i understand correctly, so that when a new year is upon us the copyright year changes accordingly, you could always use javascript. There are hundreds of free scripts doing this available on the web.

      Comment


        #4
        Hi - I had a look at the Actinic default site design and the text "2006" is hard coded in as the date.

        Looks like it will have to be Javascript.

        Thanks for the replies.
        Regards
        David

        Comment


          #5
          Putting
          Code:
          <actinic:block php="true">echo date('Y');</actinic:block>
          into a Layout will display the current year.

          Processing is done when the pages are built and doesn't need PHP on your server.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Hi Norman - that is exactly what I was looking for.

            Cheers
            Regards
            David

            Comment


              #7
              I have posted a page showing some dynamic webclocks that I designed some time back.

              Have a look at:
              http://www.yandles.co.uk/webclocks.html


              If that is the sort of thing you want, I can alter the 'rollover' to read anything within the width of the clock. Will take me a few days though...

              The background colour is user definable. The font colour is fixed but I can make 'em in any colour.

              Email me at
              donald (at) websilk (dot) co (dot) uk

              You can see one with the background tailored to the page colour on the home page of my websilk address below...
              www.yandles.co.uk
              www.websilk.co.uk
              Today is the tomorrow that I worried about yesterday.
              So far, all is well. Am I still worried? YES! Watch some b.....d mess it up!

              Comment


                #8
                Hi Donald - thanks for the offer but Norman's solution gives me everything I need.
                Regards
                David

                Comment


                  #9
                  Originally posted by skinnybloke
                  Hi Donald - thanks for the offer but Norman's solution gives me everything I need.
                  no problem...
                  www.yandles.co.uk
                  www.websilk.co.uk
                  Today is the tomorrow that I worried about yesterday.
                  So far, all is well. Am I still worried? YES! Watch some b.....d mess it up!

                  Comment

                  Working...
                  X