Nucleus Support Forum Index

Find on the forum:
any terms  all terms  Advanced Search

RSS 2.0
Browse posts: Unanswered | Mark all read

« »
Loading Nucleus FAQ ticker...
Post new topic Reply to topic
Author Message
TCC
Nucleus Addict


Joined: 22 Jun 2010
Posts: 70
Location: USA

Post Posted: Wed Jan 05, 2011 6:03 pm   Post subject: NP_RollingCopyright - Auto update blog copyright
Reply with quote

The NP_RollingCopyright plugin adds successive copyright years to your Nucleus blog or CMS.

When you install NP_RollingCopyright, it shows only the current year: © 2011 by Your Name. The following January 1, the output will appear similarly to this: © 2011 - 2012 by Your Name. By downloading RollingCopyright, you will never again have to manually update your copyright dates for a new year. (If your blog has been running for years and you instead use your original install year, it will immediately show a range of copyright years.)

After downloading, use Edit Options for your install year and your name or the name of your blog. There is also an option for additional text such as "all rights reserved". Then add <%RollingCopyright%> to your footer or elsewhere in your skin and you're done.

Edit: This works well with multiple blogs on the same installation.


Last edited by TCC on Fri Jan 07, 2011 5:15 am; edited 1 time in total

Back to top

View user's profile Send private message Visit poster's website
WillyP
Nucleus Guru
Nucleus Guru


Joined: 30 Aug 2009
Posts: 770
Location: Pembroke, NH

Post Posted: Thu Jan 06, 2011 3:23 pm   Post subject:
Reply with quote

I've always used a bit of js, like this:

Code:

&copy;Copyright 2009 -&nbsp; <script type="text/javascript">
<!--
var currentTime = new Date()
var year = currentTime.getFullYear()
document.write(year)
//-->
</script>&nbsp;<a href="<%blogsetting(url)%>"><%blogsetting(name)%></a> and/or contributing authors.

_________________
My Skins | Suncook Carpentry

Back to top

View user's profile Send private message Visit poster's website
ftruscot
Nucleus Guru
Nucleus Guru


Joined: 22 Feb 2006
Posts: 7449
Location: Massachusetts

Post Posted: Thu Jan 06, 2011 4:04 pm   Post subject:
Reply with quote

I use phpinclude in the footer to do the same thing. Many ways to skin a cat...

This is great for those not comfortable with code or who prefer to manage things through plugins.

TCC, if you haven't found them yet, check out the blogoption methods in the PLUGIN class.

_________________
Is your question not solved yet?
Search our FAQ,
read the Documentation, or
browse the list of available plugins.

Check out my plugins

Back to top

View user's profile Send private message Visit poster's website
WillyP
Nucleus Guru
Nucleus Guru


Joined: 30 Aug 2009
Posts: 770
Location: Pembroke, NH

Post Posted: Fri Jan 07, 2011 3:47 am   Post subject:
Reply with quote

We could use this here... The front page says 2001 - 2006, the wiki says 2001 - 2005, FAQ, 2001 - 2007, and none at all for the forum.
_________________
My Skins | Suncook Carpentry

Back to top

View user's profile Send private message Visit poster's website
ftruscot
Nucleus Guru
Nucleus Guru


Joined: 22 Feb 2006
Posts: 7449
Location: Massachusetts

Post Posted: Fri Jan 07, 2011 3:50 am   Post subject:
Reply with quote

Not a bad idea, WillyP.
_________________
Is your question not solved yet?
Search our FAQ,
read the Documentation, or
browse the list of available plugins.

Check out my plugins

Back to top

View user's profile Send private message Visit poster's website
TCC
Nucleus Addict


Joined: 22 Jun 2010
Posts: 70
Location: USA

Post Posted: Fri Jan 07, 2011 5:22 am   Post subject: Multiple Installs
Reply with quote

NP_RollingCopyright works on multiple installs.

I had included footer information in one larger site using phpinclude, and therefore the Nucleus software did not parse <%RollingCopyright%>. After working through why the plugin didn't work, I realized this and changed the include to a parsedinclude. Problem solved. (And plug-in page is being updated.)

Along the way I spent time looking through BlogOptions as Frank suggested. This may help me with a different plugin I've been looking at developing. Thank you.

Back to top

View user's profile Send private message Visit poster's website
ftruscot
Nucleus Guru
Nucleus Guru


Joined: 22 Feb 2006
Posts: 7449
Location: Massachusetts

Post Posted: Fri Jan 07, 2011 9:25 pm   Post subject:
Reply with quote

We're now using this plugin in the footer of the main nucleus site, docs, faq, and skins. Thanks, TCC. (and WillyP for the suggestion of using it).
_________________
Is your question not solved yet?
Search our FAQ,
read the Documentation, or
browse the list of available plugins.

Check out my plugins

Back to top

View user's profile Send private message Visit poster's website
TCC
Nucleus Addict


Joined: 22 Jun 2010
Posts: 70
Location: USA

Post Posted: Sat Jan 08, 2011 3:22 am   Post subject:
Reply with quote

It is gratifying to see the RollingCopyright plugin used through the Nucleus site. The opportunity to give back is appreciated.

Back to top

View user's profile Send private message Visit poster's website
WillyP
Nucleus Guru
Nucleus Guru


Joined: 30 Aug 2009
Posts: 770
Location: Pembroke, NH

Post Posted: Sat Jan 08, 2011 2:52 pm   Post subject:
Reply with quote

There's a mysql error on the docs and front pages.
_________________
My Skins | Suncook Carpentry

Back to top

View user's profile Send private message Visit poster's website
TCC
Nucleus Addict


Joined: 22 Jun 2010
Posts: 70
Location: USA

Post Posted: Sat Jan 08, 2011 6:57 pm   Post subject:
Reply with quote

They were good around 9:00 last night.

Back to top

View user's profile Send private message Visit poster's website
Post new topic Reply to topic
Display posts from previous:   

Goto page 1, 2  Next

Page 1 of 2

All times are GMT + 1 Hour

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group