View Single Post
  #1  
Old 04-10-2004, 01:49 PM
imported_wsjb78 imported_wsjb78 is offline
 
Join Date: Apr 2003
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default body tag / PHP Includes

Hiya,

I have two questions:

Where is the body tag defined? I'd like to add the following to it:
topmargin="0" leftmargin="0"


How to make proper header and footer includes?

I added this to the phpinclude_start template:
PHP Code:
ob_start();   
require(
"/hsphere/local/home/wsjb78/notkeriana.ch/header_sub2.php"); 
$headercontent ob_get_contents();   
ob_end_clean();

ob_start();   
require(
"/hsphere/local/home/wsjb78/notkeriana.ch/footer_sub2.php"); 
$footercontent ob_get_contents();   
ob_end_clean(); 
The content of header_sub2.php is this:
PHP Code:
<table width="100%" height=32 cellpadding=0 cellspacing=0 border=0>
<
tr>
    <
td width=150 nowrap background="/layout/violett1.jpg"><class="topic" href="http://www.notkeriana.ch"><img src="/layout/avnkey32.gif" hspace=6 align=left border=0>
    <
font face=arial,sans-serif size=2><b>AV Notkeriana</b><br><i>&nbsp
    &
nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <i>online</i></a></td>
    <
td width=1 bgcolor="#eeeeee"><img src="/layout/0.gif" heigth=1 width=1></td>
    <
td width="*" nowrap background="/layout/violett1.jpg"><font face=arial,sans-serif size=2><b>&nbsp; &nbsp
    <
class="topic" href="/index.php">Startseite</a> | <class="topic" href="/programm.php">Programm</a> | <class="topic" href="/chargen.php">Komit&eacute;e und Chargen</a> | <class="topic" href="/mitglieder.php">Mitglieder</a> |   
    <
class="topic" href="/fotos">Fotoalbum</a> | <class="topic" href="/stammbeiz.php">Stammbeiz</a> | <class="topic" href="/guestbook/index.php"">G&auml;stebuch</a> |  <b><a class="topic" href="/notkerball/index.php"">Notkerball 2004</a></b> | 
    <
class="topic" href="/links/index.php">Links</a>
    </
td>
</
tr>
</
table
and footer_sub2.php
PHP Code:
<table width="100%" cellpadding=2 cellspacing=0 border=0 background="/layout/violett1.jpg">
<
tr background="/layout/violett1.jpg">
    <
td width=150 height=24 valign="middle"><font color="#807288">Updated3.April 2004</td>
    <
td width=107 valign=middle><class="topic" href="http://verdi.unisg.ch/org/vereine/notker.nsf" target="_blank"><img align=left vspace=
    src
="/layout/avn-link.gif" height=16 width=16 border=0><img src="/layout/0.gif" height=4 width=1 border=0><br>
    
Notker-DB</a></td>
    <
td width=107 valign=middle><class="topic" href="mailto:hyper@notkeriana.ch"><img align=left vspace=
    src
="/layout/avn-link.gif" height=16 width=16 border=0><img src="/layout/0.gif" height=4 width=1 border=0><br>
    
Webmaster</a></td>
    <
td width=107 valign=middle><class="topic" href="mailto:avnotkeriana@unisg.ch"><img align=left vspace=
    src
="/layout/avn-link.gif" height=16 width=16 border=0><img src="/layout/0.gif" height=4 width=1 border=0><br>
    
Kontakt</a></td>
    <
td width=107 valign=middle><class="topic" href="http://www.notkeriana.ch/email.php" target="_blank"><img align=left vspace=
    src
="/layout/avn-link.gif" height=16 width=16 border=0><img src="/layout/0.gif" height=4 width=1 border=0><br>
    
E-Mail</a></td>
    <
td width=107 valign=middle><class="topic" href="http://www.notkeriana.ch"><img align=left vspace=
    src
="/layout/avn-link.gif" height=16 width=16 border=0><img src="/layout/0.gif" height=4 width=1 border=0><br>
    
Sitemap</a></td>
</
tr>
</
table
Then I added $headercontent at the top of the header template and added $footercontent before the copyright notice in the footer template.

In Opera both includes are being displayed properly, however in MSIE the footer include is missing the background graphics.

Anyone knows what that is?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01453 seconds
  • Memory Usage 1,847KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete