TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,990
  • Total Topics: 21,323
  • Online today: 633
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 278
  • Total: 278

Putting a disclaimer text at the bottom of every page..

Started by StanJ, November 08, 2006, 11:43:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

StanJ

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

JPDeni

You would need to alter the index.template.php file, down towards the end where the copyright information is.

StanJ

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????

JPDeni

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.

StanJ


RoarinRow

Cool, thanks for the code JPDeni!   :up:

I applied it to my site as well   8)

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

JPDeni

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.

RoarinRow

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

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

This website is proudly hosted on Crocweb Cloud Website Hosting.