WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.

Donate with PayPal buttonSpenden mit dem PayPal-Button

  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Stay current with your Copyright
  • Print
Pages: [1]   Go Down

Author Topic: Stay current with your Copyright  (Read 6250 times)

hudge

  • Guest
Stay current with your Copyright
« 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: [Select]

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: [Select]

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?  :oops:
Logged

SilverFeces

  • Guest
Stay current with your Copyright
« 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
Stay current with your Copyright
« 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: [Select]
<?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  :)
Logged

Offline Ryan

  • Posts: 2048
  • Gender: Male
    • My Homepage
Stay current with your Copyright
« 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: [Select]
<?php echo WEBSITE_FOOTER; ?>
with this:
Code: [Select]
<?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: [Select]
Copyright (C), 2004-[YEAR] Ryan Djurovich
would give:
Code: [Select]
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
https://WebsiteBaker.org

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

Offline Het Artiek

  • Posts: 96
  • Gender: Male
  • What do you mean, my birth certificate expired?
    • www.hetartiek.nl
Re: Stay current with your Copyright
« 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: [Select]
$datum = date("Y");
return "$datum";

place [[year]] in your footer

Greetz
« Last Edit: January 31, 2012, 10:55:38 AM by Argos »
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Stay current with your Copyright
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2