How do I change the year in Custom Copyright?

Started by Topman, January 06, 2021, 04:21:22 AM

Previous topic - Next topic

Topman

How do I change the year in Custom Copyright?
I've looked through all the admin menus even tried to add code to make it happen automatically.
Just want hep top change the year if possible.

many thanks


http://forum.brand-newhomes.co.uk/index.php

Aleksi "Lex" Kilpinen

That would depend where your custom copyright is defined in the first place. Is it through a mod, or hardcoded in the theme files?
It's not something SMF does out of the box.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

GigaWatt

And you're 2 versions behind, the latest version is 2.0.17. Upgrade to 2.0.16 first, then apply 2.0.17.
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

shadav

apparently at some point someone put a copyright in.....and forgot to remove the built in one...also apparently either broke it or you didn't put your forum's name into your settings.....

look in your index.temeplate.php

also if you are going to play around with the default theme, it is best to create a copy of it and play with the copy....
otherwise when you do updates they might overwrite changes that you had made

in the default theme it should be
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footer"><div id="footer_section"><div class="frame">
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>';
$time = time () ;
$year= date("Y",$time);
echo ' <li><br />Copyright &copy; ' . $year . ' ' . $context['forum_name'] . ' | All Rights Reserved</li>';


obviously someone's already edited yours so yours will look different (and this is from 2.0.17, so not sure if it's different in 2.0.15)
you can remove the line that was added as it's not needed, and put your forum name in your settings

if you want it to show the 2006 - this year just add it this line
echo ' <li><br />Copyright &copy; ' . $year . ' ' . $context['forum_name'] . ' | All Rights Reserved</li>';
would then be
echo ' <li><br />Copyright &copy; 2006 - ' . $year . ' ' . $context['forum_name'] . ' | All Rights Reserved</li>';

Advertisement: