0
Welcome Guest! Login
0 items Join Now

Auto Year Update

  • Auto Year Update

    Posted 17 years 3 months ago
    • Hello,

      I made a module to place on the bottom of my template (populus) but I want to use it on all my templates.

      The problem I have is to update the last year automatically.
      I tried with a PHP code but it didn't work. A Javascript gave me the year 108.

      Please advice. The code in my module is below. The website is www.magicdesign.be
      <br>
      <div align="center"> <strong>| Copyright © 2003 - 2008 | All Rights Reserved | 
      <br>
      <br>
      | A <a href="http://www.m2plus.be" target="_blank"">M2+</a> & <a href="http://www.mobibel.be" target="_blank"">Mobibel-Vabucco</a> creation |</strong>
      </div>
    • Knowledge is limited!
      Ignorance is endless!
    • svrsolid's Avatar
    • svrsolid
    • Rocketeer
    • Posts: 77
    • Thanks: 0

    Re: Auto Year Update

    Posted 17 years 3 months ago
    • nevermind -- just re-read your post, not sure how to do this within a module.
    • svrsolid's Avatar
    • svrsolid
    • Rocketeer
    • Posts: 77
    • Thanks: 0

    Re: Auto Year Update

    Posted 17 years 3 months ago
    • If you enable one of the code addon (custom code extensions like: Jumi, modPHP, etc.), can't you just use a php echo statement similar to
      <?php echo "" . date(Y)&nbsp; ; ?>
      where you need this year's date?
  • Re: Auto Year Update

    Posted 17 years 3 months ago
    • It's for the footer and the php code didn't work in HTML.
    • Knowledge is limited!
      Ignorance is endless!
    • svrsolid's Avatar
    • svrsolid
    • Rocketeer
    • Posts: 77
    • Thanks: 0

    Re: Auto Year Update

    Posted 17 years 3 months ago
    • Without the mod_php or similar extension the php is not ran.

Time to create page: 0.058 seconds