News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

How to fix forum from illegal copy after changing language?

Started by ivanstech, October 12, 2006, 02:13:19 AM

Previous topic - Next topic

ivanstech

I have changing my forum language from english to indonesia , but i have receive message "Sorry, the copyright must be in the template.
Please notify this forum's administrator that this site is using an ILLEGAL copy of SMF! "  , i didn't change or remove the copyright from the page ! , i have try to re-upload to themes/default/ language ..but i still got the same message. so could anybody help me to solve my problem??? thanks in advance!
PS: i'm using smf 1.0.8 right now.

Exsharaen

Yes, I had the same problem too. I'm trying to solve this right now (hopefully I will be able to fix it; if yes, I'll tell you how if anyone has not solved this problem for us).

In further actions, I discover that Indonesian language pack for smf 1.0.8 has not yet fully translated. May I continue translating it for my own forum?

Thank you.

EDIT:
Finally I found and fixed it! Here's why:

After some trial-and-error attempts on Subs.php page, I realized that there was something wrong at function theme_copyright($get_it = false), which always returned FALSE (and we expect it to return TRUE). By testing one by one of all conditions checked by that function, I finally found that these conditions were not met:

elseif ((strpos($forum_copyright, '<a href="http://www.simplemachines.org/" onclick="this.href += \'referer.php?forum=' . urlencode($context['forum_name'] . '|' . $boardurl . '|' . $forum_version) . '\';" target="_blank">SMF') !== false || strpos($forum_copyright, '<a href="http://www.simplemachines.org/" target="_blank">SMF') !== false || strpos($forum_copyright, '<a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">SMF') !== false) && (strpos($forum_copyright, '<a href="http://www.lewismedia.com/">Lewis Media</a>') !== false || strpos($forum_copyright, '<a href="http://www.lewismedia.com/" target="_blank">Lewis Media</a>') !== false))
Line 1836 of Subs.php

I tested the first condition and it already returned FALSE, so I suspected there was something wrong with $forum_copyright. And I was right: it was not the same as English version. While the English version shows this:

$forum_copyright = $context['forum_name'] . ' | Powered by <a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">' . $forum_version . '</a>.<br />
&copy; 2001-2005, <a href="http://www.lewismedia.com/" target="_blank">Lewis Media</a>. All Rights Reserved.';
Line 409-410 of index.english.php

The Indonesian version showed this instead:

$forum_copyright = '<a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">Powered by ' . $forum_version . '</a> |
<a href="http://www.simplemachines.org/about/copyright.php" title="Free Forum Software" target="_blank">SMF &copy; 2001-2006, Lewis Media</a>';
Line 432-433 of index.indonesian.php

So, how to fix it?

1. Find these files: index.indonesian.php and index.english.php. They usually stand in /Themes/default/languages.

2. Open index.english.php first. Find line 409-410 as I quoted above which says something like this:
$forum_copyright = $context['forum_name'] . ' | Powered by <a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">' . $forum_version . '</a>.<br />
&copy; 2001-2005, <a href="http://www.lewismedia.com/" target="_blank">Lewis Media</a>. All Rights Reserved.';

Copy both line. You can close this file if you wish, we no longer need it.

3. Open index.indonesian.php. Find line 432-433 as I quoted above which says something like this:
$forum_copyright = '<a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">Powered by ' . $forum_version . '</a> |
<a href="http://www.simplemachines.org/about/copyright.php" title="Free Forum Software" target="_blank">SMF &copy; 2001-2006, Lewis Media</a>';

Highlight this line and immediately paste. Save the file and close it.

Now try to run your forum, and it will be fine as well!

Hope you find this useful (and maybe it should be pinned to the top of this forum). Should there be any question, feel free to contact me.

ivanstech

 i have try to fix with your method and that is really work !!! thanks a lot man! you are the man! ;)

SmackDaddy

Just an FYI, I used the webinstall.php (didn't change languages at all) to upgrade from 1.1RC3 to 1.1.2 and got this issue....and re-copying the copyright info from this thread to the english template file fixed it.  It's as if the RC version I had used a different copyright line because I had never changed it.....very odd.....but resolved.  Thx.

JeffersonRyan

I just installed SMF using the FANTASTICO script supplied by my host and choosed brazilian as default language. Same issue here.

I installed SMF two times already in the same host without this issue, but now it´s the first time with the version 1.1.2.

Switch to english changes nothing.

I´m going to try the instructions above, later.

I did nothing wrong but that big, bold, red, ugly, "ILLEGAL" word is very annoying


trawets

Hi   :)
Thanks for this, I don't know why I got the the dammed error all I did was upgrade no languague change,

What I had to do
Quote1. Find this file: index.english.php. it usually stands in /Themes/default/languages.
open index.english.php
find this @ line 413 for me
$forum_copyright = '<a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">Powered by ' . $forum_version . '</a> |
<a href="http://www.simplemachines.org/about/copyright.php" title="Free Forum Software" target="_blank">SMF &copy; 2001-2006, Lewis Media</a>';
replace with this$forum_copyright = $context['forum_name'] . ' | Powered by <a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">' . $forum_version . '</a>.<br />
&copy; 2001-2005, <a href="http://www.lewismedia.com/" target="_blank">Lewis Media</a>. All Rights Reserved.';

but thanks to Exsharaen   8) for his solution   :) 
wannabegeek

Advertisement: