We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    This is an auto-generated support/comment thread for CopyYears.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    Automatically updates copyright year. Written by scraf.
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 6726
      • 7,075 Posts
      Nice, now I won’t have to worry about outdated footers I’d have overlooked smiley
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l'outil id
        • 31227
        • 198 Posts
        looks like this snippet doesnt work in 0.9.6, i followed instructions and then called it and i tried it both ways [! !] & [[ ]]
        anyone else had this issue?
          Pure MODx sites
          Viriko.ru & Viriko.com - Multilingual and running on 1 MODx
          • 32646
          • 87 Posts
          No, it’s working great for me. This is how I’m using it:

          [!CopyYears?startYear=`1998`!] 


          Are you spelling it correctly? Same capitalization and everything?
            Just learning the ropes.
            • 1343 ☆ A M B ☆
            • 2,213 Posts
            Works GREAT for me too! I just wish they would include it in the base install!

            AMDbuilder
              Patrick | Server Wrangler
              About Me: Website | TweetsMODX Hosting
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              If you look at the snippet code, there really isn’t much of anything in it that won’t work. I’ve been using it on most of the sites I’ve done since Richard made it, without any problems.
              $spacer = " - ";
              $now = date("Y");
              $startYear = isset($startYear)? $startYear : $now;
              $years = ($now > $startYear) ? $startYear.$spacer.$now : $now;
              return "$years";
              
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 31227
                • 198 Posts
                I used the other snippet availiable at the repos. Works like a charm smiley
                  Pure MODx sites
                  Viriko.ru & Viriko.com - Multilingual and running on 1 MODx
                  • 21841
                  • 36 Posts
                  I agree totally with AMDbuilder.

                  Works wonderfully 1

                  NWJ
                    • 29076
                    • 615 Posts
                    Works great for me on my sites with MODx 0.9.6.2.
                      I think, thererfor I am! But what I am, and why...?