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.
Copyright © <?php echo date("Y"); ?> Company Name. All rights reserved.
or you can do this:
Copyright © 1996-2005 Company Name. All rights reserved.
Copyright © 1996-<?php echo date("Y"); ?> Company Name. All rights reserved.
Can you tell me how to edit this so I can paste this into my footer? :oops:
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...
you can use this code, and the footer text should be only the company's name :wink:
<?php if(WEBSITE_FOOTER != '')
{
echo 'Copyright © 1996-';
echo date("Y"), ' ';
echo WEBSITE_FOOTER;
echo '. All rights reserved.';
}
else
{
echo 'Please fill in your company name';
}
?>
It works, i don't know if you need it this way :)
Or, you could try something like this...
For example, replace line 110 on the "Simple" template:
<?php echo WEBSITE_FOOTER; ?>
with this:
<?php echo str_replace('[YEAR]', date('Y'), WEBSITE_FOOTER); ?>
Then, somewhere in the footer text (changed from the "settings" section on WB administration), place the tag "[YEAR]", e.g:
Copyright (C), 2004-[YEAR] Ryan Djurovich
would give:
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:
If someone still is searching for a droplet that sets automaticly the year in the footer.
Add this droplet
$datum = date("Y");
return "$datum";
place [[year]] in your footer
Greetz