Auto Update The Year In SMF Footer Copyright

Mick in Tutorials on Jul 15, 2013

I used to have to update these manually so did a bit of digging and found a few different tutorials that helped me slap this together. Now the year in your SMF footer copyright, the message always displays the current year.

Open index.template.php and find:

	<div id="footer_section"><div class="frame">
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>

Add after:

  $time = time () ;
  $year= date("Y",$time);
  echo ' <li>Copyright &copy; ' . $year . ' YOUR-FORUM-NAME | All Rights Reserved</li>';

echo '

Tagged with:


Mick G


Mick is an American theme designer for Simple Machines Forum software currently living in South Florida, USA. He runs idesignSMF and started tinkering with SMF in 2006 where he created several SMF forums of his own before he founded idesignSMF in 2009 to which he is dedicated full time and has a weakness for Pizza.

  Connect with us:


  Improve SMF

If you wish to contribute to the development of SMF you can contribute to the coding discussions taking place on Github. You are also welcome to suggest features which you would like to see added to the software in the Feature Requests board.

  Receive our monthly newsletter right in your inbox.
Commitment issues? Unsubscribe at any time.

Get 100% complete access to our entire collection and find out why 11,211 SMF owners prefer our themes


  Contribute to the development of SMF. Follow the coding discussions taking place on >> Github