XF 2.2 2022 Copyright

ActorMike

Well-known member
Can't complain.

We made it 6 days this year.
I think that's a record.
There is a way to permanently address this. The ending copyright date can be a variable based upon the current year instead of hardcoded. Seems like this would resolve this issue moving forward. The downside is that bets could no longer be placed to see how long it takes to report the year is wrong each January.

Also worth noting, your site has the correct date, so obviously it's important to you.
copyright-date.jpg

Mike
 
Last edited:

ActorMike

Well-known member
On a related note, the copyright can be removed for 300 bucks for those not wanting to wait several weeks every year for it to be updated.

I believe using a variable for the current year is the way to go. It's pretty obvious this is an issue that gets brought up every year, yet has no solution other than joking around. Such an easy solution. Also makes it a tiny bit more confusing for hackers to search for old/outdated sites using a google search for the copyright code.
 

Ozzy47

Well-known member
People think the XenForo copyright notice is for their website in general, it isn't. It is just for the XenForo Software which as mentioned above was last updated in 2021, so it is covered by the current copyright notice.

If you want to show the current year, for your website:
Find the phrase:
extra_copyright

ACP: Appearance>Search Phrases

Then in 'Phrase text' add the following:

<br>
Content © Your_domain.com 2(startyear)-<script type="text/javascript">
var today = new Date()
var year = today.getFullYear()
document.write(year)
</script>, all rights reserved

This should still work.
 

Chris D

XenForo developer
Staff member
Don't you still claim copyright in 2022 to v2.2.8 Patch 1? If so, wouldn't it be okay to put in a variable placeholder for the ending copyright date that automatically appears?
The end date does not impact the dates we're claiming the copyright for.

In software products the start date is typically the date from which the copyright starts. The end date is typically the date the software last received an update.

This is how we've always done it. This is how we will always do it.
 

Brogan

XenForo moderator
Staff member
People think the XenForo copyright notice is for their website in general, it isn't. It is just for the XenForo Software which as mentioned above was last updated in 2021, so it is covered by the current copyright notice.

If you want to show the current year, for your website:
Find the phrase:
extra_copyright

ACP: Appearance>Search Phrases

Then in 'Phrase text' add the following:

<br>
Content © Your_domain.com 2(startyear)-<script type="text/javascript">
var today = new Date()
var year = today.getFullYear()
document.write(year)
</script>, all rights reserved

This should still work.

Even easier:
HTML:
Content © Your_domain.com <startyear>-{{ date($xf.time, 'Y') }}, all rights reserved

Although unless you have actually copyrighted your site, it's meaningless ...
 

Forsaken

Well-known member
On a related note, the copyright can be removed for 300 bucks for those not wanting to wait several weeks every year for it to be updated.

I believe using a variable for the current year is the way to go. It's pretty obvious this is an issue that gets brought up every year, yet has no solution other than joking around. Such an easy solution. Also makes it a tiny bit more confusing for hackers to search for old/outdated sites using a google search for the copyright code.
Script kiddies are just going to try any public exploit regardless of version; if they don't work, they don't work, and they'll go back to crying in their basement.

People with any skill or knowledge do not need to know what version you are running, and are going to be testing as many attack vectors as possible. Hiding a copyright date or a version number does not protect you from this.

This is such a minor inconsequential thing that it's sad how often it gets brought up...
 

sixlxvi

Well-known member
@Chris D - on the subject of the copyright.

Can you change the admin control panel to either not display extra_copyright at all, or have it only display as plain text? Putting extra_copyright in a <div> or doing any kind of CSS to it displays kind of funny in the ACP.
 
Top