#1 (permalink)  
Old 01-05-2009, 01:41 PM
youtube's Avatar
Senior Member
 
Join Date: Apr 2008
Posts: 825
Default Copyright info

What is the best way to update copyright info on all your sites year by year?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2009, 03:42 PM
Senior Member
 
Join Date: Jan 2008
Posts: 898
Default

Just use a script and change it from one place. You will need to initially add the code to each page.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2009, 05:47 PM
bdh734's Avatar
Senior Member
 
Join Date: Jun 2008
Location: A small room with flickering blue and green lights
Posts: 309
Send a message via MSN to bdh734 Send a message via Yahoo to bdh734
Default

askapache has a find and replace script.
Search And Replace shell script helpful for Upgrades

OR

Use the Simple Search and Replace from RJL Software, Inc. - Unique Software Solutions for Today's Changing Market
You can download the folder via ftp and then use the program to search for 2008 and replace with 2009 and then upload.

Both are free of charge.
__________________
For HELP, summon support with the Bat-Signal: http://support.hostv.com/

Sysadmins are sexy.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2009, 06:19 PM
geek's Avatar
Senior Member
 
Join Date: Apr 2008
Posts: 1,274
Default

I use php and just enter it with a variable that automatically checks the timestamp.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2009, 09:57 PM
bdh734's Avatar
Senior Member
 
Join Date: Jun 2008
Location: A small room with flickering blue and green lights
Posts: 309
Send a message via MSN to bdh734 Send a message via Yahoo to bdh734
Default

Damn....never thought about that

Code:
<?php
$time = time () ;
//This line ask the server for the time (again)

$year= date("Y",$time) . "<br>";
//Strip it all down to the year...Take it off babe

echo "Copyright " . $year;
//Spit it all out and smile
?>
Put all that into a file named copyright.php and call it in a include mention in the page.

Code:
<?php include_once ("copyright.php"); ?>
HINT: If it is a html add this to the .htaccess
Code:
# Parse html as php (Trick Apache)
AddHandler application/x-httpd-php5 .htm
AddHandler application/x-httpd-php5 .html

OR

Javascript:

Code:
<script type="text/javascript">
<!-- copyright=new Date();update=copyright.getYear();document.write("Copyright &copy; "+ update + "    (your company name)    All rights Reserved."); //-->
</script>

Happy Happy!
__________________
For HELP, summon support with the Bat-Signal: http://support.hostv.com/

Sysadmins are sexy.

Last edited by bdh734; 01-05-2009 at 10:04 PM..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-07-2009, 06:59 PM
Senior Member
 
Join Date: Apr 2008
Posts: 1,345
Default

Hey thanks for the free code, that saves some work. Did you just do that off the bat just like that?
__________________
Health!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-07-2009, 07:24 PM
bdh734's Avatar
Senior Member
 
Join Date: Jun 2008
Location: A small room with flickering blue and green lights
Posts: 309
Send a message via MSN to bdh734 Send a message via Yahoo to bdh734
Default

google is my best friend
__________________
For HELP, summon support with the Bat-Signal: http://support.hostv.com/

Sysadmins are sexy.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-08-2009, 03:33 PM
youtube's Avatar
Senior Member
 
Join Date: Apr 2008
Posts: 825
Default

Hey, a lot of great info and the code to boot - thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:58 PM.


Powered by: vBulletin
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15