View Full Version : Copyright and PHP Date
spradlig
07-22-2010, 03:13 PM
I remember somewhere seeing that someone used the lower right nav bar for a copyright notice and links to pages like the Privacy Policy.
I'd like to add a Copyright notice that is:
Copyright 2010 - <?php echo date("Y"); ?>
That way the date on the copyright notice is always accurate no matter how long the site is up. However, Socrates seems to scrub everything after <?php from my entry.
It's a pretty minor thing since I don't really think the Copyright notice is necessary for most of my sites but I'd like to have it anyway.
Dan Nickerson
07-30-2010, 11:40 PM
We should have that option in the future..
In the meantime you could hard code into footer.php by replacing this
<?php if ($footerRightNav['text'] != '') { echo stripslashes($footerRightNav['text']);} ?>
with
Copyright 2010 - <?php echo date("Y"); ?>
gordon7
09-18-2011, 07:56 AM
We should have that option in the future..
In the meantime you could hard code into footer.php by replacing this
<?php if ($footerRightNav['text'] != '') { echo stripslashes($footerRightNav['text']);} ?>
with
Copyright 2010 - <?php echo date("Y"); ?>
Unfortunately, this didn't work for me.
Any other suggestions?
Thanks
Dan Nickerson
09-18-2011, 10:44 AM
You need to enable the Socrates lower right navigation for this to work.
gordon7
09-18-2011, 02:01 PM
You need to enable the Socrates lower right navigation for this to work.
It worked!
Thank you
leongopen
10-14-2012, 08:45 PM
In Socrates V3.04 is there a place now to put our copyright policy so that we don't have to hard code it? It will make life easy for non technical people. Thanks
Dan Nickerson
10-15-2012, 09:07 AM
Do you mean a copyright notice or policy?
A policy is typically a page, a notice is typically a sentence.
We have other threads on this.
Just make a custom link in Appearance Menus for: Copyright 2012 etc
and link it to" #
leongopen
10-18-2012, 11:15 AM
Thanks Dan. I followed this thread http://www.socratestheme.com/forum/showthread.php?4386-Socrates-3-02-adding-Copyright and it solved my issue :)
Powered by vBulletin® Version 4.1.10 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.