FAQ: How to do yearly update of copyright information
Moderator: mcsmom
FAQ: How to do yearly update of copyright information
To do an automatic yearly update of the copyright notice on you site, add the following snippet of code to your template's index.php file:
Copyright © 2005 -
Copyright © 2005 -
If you need a helping hand, use the one at the end of your own arm.
www.hrpr.com
www.hrpr.com
Re: FAQ: How to do yearly update of copyright information
Handy code ... thanks for sharing!
Joomla! - theultraelectromagnetic CMS!
Re: FAQ: How to do yearly update of copyright information
might want to start that with a year before the current one, so you don't get 'copyright 2005 - 2005'...
i am who i am, but most times i don't even know who that is.
Re: FAQ: How to do yearly update of copyright information
well for now its got be 2005-2005 cos joomla has just started.........
Re: FAQ: How to do yearly update of copyright information
bluesaze wrote:well for now its got be 2005-2005 cos joomla has just started.........
perhaps, but a copyright notice on a web page is for the CONTENT, not the back-end software.. mine dates back to 1994.
i am who i am, but most times i don't even know who that is.
Re: FAQ: How to do yearly update of copyright information
zoomer wrote:bluesaze wrote:well for now its got be 2005-2005 cos joomla has just started.........
perhaps, but a copyright notice on a web page is for the CONTENT, not the back-end software.. mine dates back to 1994.
Sorry if I'm confusing folks with the "2005" start date, but what I published here was meant to be an example. You can use any year you want. Maybe even make it part of a Joomla module with a parameter that allows you to set the start date!!
If you need a helping hand, use the one at the end of your own arm.
www.hrpr.com
www.hrpr.com
Re: FAQ: How to do yearly update of copyright information
Just updated my site template with:
I'm sure there's a more elegant way to code this... but works for me for now!
Code: Select all
Copyright © <?php $startdate = "2004"; /* set your start year here */ echo $copyright = ( $startdate == date('Y') ? $startdate : $startdate . " - " . date('Y')) ; ?>
I'm sure there's a more elegant way to code this... but works for me for now!
"A lie can travel halfway around the world while the truth is putting on its shoes”, said Mark Twain. Modern communications help the lie travel even further, although Velcro having replaced lace-ups, the truth is not all that slow anymore in getting ready – mainly thanks to the internet.
Dr S Bleher
Dr S Bleher
- WillieManillie
- Joomla! Apprentice
- Posts: 19
- Joined: Tue Aug 23, 2005 8:23 am
- Location: O'Fallon, MO
- Contact:
Re: FAQ: How to do yearly update of copyright information
I was content before just going into the version.php and statically entering my (c) format. However, things have changed. My sites title is now displaying on the footer. How can this be removed and repleaced with whatever?
Re: FAQ: How to do yearly update of copyright information
FYI: the footer for the template is is defined in:
/includes/footer.php
and this is included by the default templates in this line:
Edit footer.php or your template file itself to display as you would like.
/includes/footer.php
and this is included by the default templates in this line:
Code: Select all
<?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>
Edit footer.php or your template file itself to display as you would like.
"A lie can travel halfway around the world while the truth is putting on its shoes”, said Mark Twain. Modern communications help the lie travel even further, although Velcro having replaced lace-ups, the truth is not all that slow anymore in getting ready – mainly thanks to the internet.
Dr S Bleher
Dr S Bleher