Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 09:28:57 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155554 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Stay current with your Copyright  (Read 1959 times)
hudge

Offline Offline

Posts: 174


WWW
« on: February 11, 2005, 08:51:00 AM »

Another tip for the resouce section:

As the new year came I noticed all of my sites had bad copright dates so I need a soulution and this is what I did:

To always have your copyright date displaying the current year
Copyright © 2005 Company Name. All rights reserved.      

Code:

Copyright © <?php echo date&#40;"Y"&#41;; ?> Company Name. All rights reserved.


or you can do this:
Copyright © 1996-2005 Company Name. All rights reserved.      

Code:

Copyright © 1996-<?php echo date&#40;"Y"&#41;; ?> Company Name. All rights reserved.


Can you tell me how to edit this so I can paste this into my footer?  embarassed
Logged

: Member of the Baker's Dozen :
Baking at 350˚ for 2 hours now...
Steven Holder
The Template Master

Offline Offline

Posts: 493



WWW
« Reply #1 on: February 11, 2005, 09:20:50 PM »

What do you mean? built into the footer code? if not just add you date code then <php footer() ?> after it where you want the footer to display...
Logged
fienieg
Guest
« Reply #2 on: February 12, 2005, 12:25:35 AM »

you can use this code, and the footer text should be only the company's name  wink
Code:
<?php if&#40;WEBSITE_FOOTER != ''&#41; 
&#123; 
echo 'Copyright Â© 1996-';
echo date&#40;"Y"&#41;, ' ';
echo WEBSITE_FOOTER
echo '. All rights reserved.';
&#125;
else
&#123;
echo 'Please fill in your company name';
&#125; 
?>


It works, i don't know if you need it this way  Smiley
Logged
Ryan

Offline Offline

Posts: 2048



WWW
« Reply #3 on: February 17, 2005, 06:25:23 AM »

Or, you could try something like this...
For example, replace line 110 on the "Simple" template:
Code:
<?php echo WEBSITE_FOOTER?>

with this:
Code:
<?php echo str_replace&#40;'[YEAR&#93;', date&#40;'Y'&#41;, WEBSITE_FOOTER&#41;; ?>

Then, somewhere in the footer text (changed from the "settings" section on WB administration), place the tag "[YEAR]", e.g:
Code:
Copyright (C), 2004-[YEAR] Ryan Djurovich

would give:
Code:
Copyright (C), 2004-2005 Ryan Djurovich


This makes things a little bit easier to maintain - next time you want to make a change to your footer you don't need to go through the process of updating your template! wink
Logged

Website Baker Project Founder
www.websitebaker.or g

To contact me via email, visit:
www.ryandjurovich.c om
Paradontax

Offline Offline

Posts: 57



« Reply #4 on: January 15, 2012, 09:30:36 PM »

If someone still is searching for a droplet that sets automaticly the year in the footer.

Add this droplet

Code:
$datum = date("Y");
return "$datum";

place [[year]] in your footer

Greetz
« Last Edit: January 31, 2012, 10:55:38 AM by Argos » Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!