News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

I am lost?!?

Started by Rob, March 14, 2004, 09:53:13 AM

Previous topic - Next topic

Rob

Ok, I am lost with the new templating system! I am NOT an PHP expert at all, so that doesn't help matters any! But I do know enough, probably, to screw something up. LOL

Anyway, I would like to add at the bottom of every page a disclaimer type of thing for my board, but I just don't understand enough of the templating system to do that.

In YSE, I could just copy and paste my template into Dreamweaver, and add my text at the bottom of the page, and be done with it.

Any help is always appreciated!

Thanks

Rob

MrCue

index.template.php
Take a look round lines 332, you will see where the powered-by footer is. You could add it above/below there just like you would in YaBBSE.
I am neither a Pessimist nor an Optimist, Just a Realist.

Eve-Online Forum | View Latest Eve-Online Kills | Site Map | SMF Installation

bostasp

If you find the comment (in you index.template.php):
// Show the "Powered by" and "Valid" logos, as well as the copyright.  Remember, the copyright must be somewhere!

It should say something like this:

echo '

<div style="background-color: white; border-top: 1px solid gray; text-align: center; padding-bottom: 1ex;', $context['browser']['needs_size_fix'] ? ' width: 100%;' : '', '">
<script language="JavaScript" type="text/javascript"><!--
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="right">
<a href="http://www.mysql.com/"><img id="powered-mysql" src="', $settings['images_url'], '/powered-mysql.gif" alt="', $txt['powered_by_mysql'], '" width="54" height="20" style="padding: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/"><img id="powered-php" src="', $settings['images_url'], '/powered-php.gif" alt="', $txt['powered_by_php'], '" width="54" height="20" style="padding: 5px 16px;" border="0" 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="left">
<a href="http://validator.w3.org/check/referer"><img id="valid-xhtml10" src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" width="54" height="20" style="padding: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" width="54" height="20" style="padding: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>';


As long as you put it between the echo ' and the '; at the end of that, and keep the theme_copyright() there, you should be able just to copy the part you want in.


If you say what you would like added, we could go through adding it in here, if you like?

Rob

Ok, that helps me out a lot. Thanks!

Rob

Advertisement: