Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: branded - syyskuu 20, 2006, 08:10:55 IP

Otsikko: Red-Rum (Need Help)
Kirjoitti: branded - syyskuu 20, 2006, 08:10:55 IP
this theme needs a copyright
please help with the code


this is what it says.....


Sorry, the copyright must be in the template.
Please notify this forum's administrator that this site is using an ILLEGAL copy of SMF!


my site address is

http://www.assassanzink.com/forum


thanks in advance.....
Otsikko: Re: Red-Rum (Need Help)
Kirjoitti: branded - syyskuu 21, 2006, 12:14:07 AP
please help
Otsikko: Re: Red-Rum (Need Help)
Kirjoitti: Ravyn - syyskuu 21, 2006, 12:41:47 AP
The code for the copyright is located in the index.template.php file:

Open it up and find:

function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;

echo '
</div>';


and add in the copyright code: after the </div>';


// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'right' : 'left', '">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="', $settings['images_url'], '/powered-mysql.gif" alt="', $txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="', $settings['images_url'], '/powered-php.gif" alt="', $txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
', theme_copyright(), '
</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>';



That's from the default theme. I've never tried the theme you're trying and can't guarantee that this is the best way to fix it for that theme.

Sorry, you'll have to speak to the theme creator or someone else who has tried this theme out for a more accurate fix.
Otsikko: Re: Red-Rum (Need Help)
Kirjoitti: Dannii - syyskuu 21, 2006, 02:50:57 AP
If you're using a 1.1 theme in SMF 1.0 you shouldn't.