I know that i have seen where I can modity the code at the bottom of every page to have a disclaimer text...
BUT now that I am looking for the place I can not find it.
Would apprecaite any help on this...
Thanks
Stan
You would need to alter the index.template.php file, down towards the end where the copyright information is.
Quote// 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;" class="smalltext">
', theme_copyright(), '
', tportal_version() , '
</td>
I tired putting it in here and it gave errors...
It looks like it migh call in another file for the bottom????
I put my copyright information in that area. Where exactly did you put yours?
Here's what mine looks like.
// 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.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;">
<span class="smalltext">All material ÂÃ,© 2002-' . date("Y") . ' morethanspike.com, unless otherwise noted. <br>
This site is not authorized by James Marsters nor any affiliates. <br>
Contact and additional information can be found on the <a href="index.php?page=1">about</a> page.</span><br><br>
', theme_copyright(), ' <br /><span class="smalltext">', tportal_version() , '</span>
</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
<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>
</td>
</tr>
</table>';
Just to be clear, my text is
<span class="smalltext">All material ÂÃ,© 2002-' . date("Y") . ' morethanspike.com, unless otherwise noted. <br>
This site is not authorized by James Marsters nor any affiliates. <br>
Contact and additional information can be found on the <a href="index.php?page=1">about</a> page.</span>
If you can wait, there will eventually be a way to have a block at the center bottom of every page, but I don't know when it's going to be implemented.
Thank you so much!!!
Done
www.adventist.ca
Cool, thanks for the code JPDeni! :up:
I applied it to my site as well 8)
Glad to help.
When the center bottom block becomes available, I intend to remove that from the index.template.php file and put it into a block. This is only temporary.
Quote from: JPDeni on November 09, 2006, 02:41:41 AM
Glad to help.
When the center bottom block becomes available, I intend to remove that from the index.template.php file and put it into a block. This is only temporary.
That would be cool, this way you don't have to update all your index.template.php files like I do. :o