Skip to main content
Topic: Footer (Read 5328 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Footer

How would I add my own sites copyright to the footer? I’m not removing anything. Just adding.

Re: Footer

Reply #1

For the 1.1 line, its in your index.language.php file e.g. /themes/default/languages/english/index.english.php file.  Search for a $forum_copyright string and change it to what you would like.

There are no requirements to keep the ElkArte name, nice yes, required, never.

Re: Footer

Reply #2

We can remove the ElkArte notice in the footer?

Re: Footer

Reply #3

Question: how do I change it? I added some text but then the site gets an error when I do that. Is there a certain php code or something I need to use to add my site's copyright?

Re: Footer

Reply #4

Quote from: Aaron101 – We can remove the ElkArte notice in the footer?
Yes

Quote from: Aaron101 – Question: how do I change it? I added some text but then the site gets an error when I do that. Is there a certain php code or something I need to use to add my site's copyright?
It should be valid HTML, which includes simply plain text.  You could make it
Code: [Select]
$forum_copyright = 'My Awesome Sauce Community';
If you can post a sample of what you did then someone could debug further.

Re: Footer

Reply #5

I put this but it does not show up in the footer:

<?php
// Version: 1.1; index

global $forum_copyright; 'ChristianBoard.net Copyright © 2022. All rights reserved.';

// Locale (strftime, pspell_new) and spelling. (pspell_new, can be left as '' normally.)
// For more information see:
//   - http://www.php.net/function.pspell-new
//   - http://www.php.net/function.setlocale
// Again, SPELLING SHOULD BE '' 99% OF THE TIME!!  Please read this!
$txt['lang_locale'] = 'en_US';
$txt['lang_dictionary'] = 'en';
$txt['lang_spelling'] = 'american';

I get this error on my site:


Parse error: syntax error, unexpected '=', expecting ';' or ',' in /home/jesuslov/christianboard.net/themes/default/languages/english/index.english.php on line 4

Fatal error: Exception thrown without a stack frame in Unknown on line 0
Last Edit: March 31, 2022, 03:34:35 pm by Aaron101

Re: Footer

Reply #6

Remove your edit, then navigate to line 577 and change the existing $forum_copyright variable to be

Code: [Select]
$forum_copyright = 'ChristianBoard.net Copyright &copy; 2022. All rights reserved.';

Re: Footer

Reply #7

Ohhh I was on the wrong line.

Thanks!!