-
☆ 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.
Nice, now I won’t have to worry about outdated footers I’d have overlooked
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
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?
-
☆ A M B ☆
- 2,213 Posts
Works GREAT for me too! I just wish they would include it in the base install!
AMDbuilder
-
☆ 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";
I used the other snippet availiable at the repos. Works like a charm
I agree totally with AMDbuilder.
Works wonderfully 1
NWJ
Works great for me on my sites with MODx 0.9.6.2.
I think, thererfor I am! But what I am, and why...?