vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   body tag / PHP Includes (https://vborg.vbsupport.ru/showthread.php?t=88899)

imported_wsjb78 04-10-2004 01:49 PM

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?


All times are GMT. The time now is 03:29 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01042 seconds
  • Memory Usage 1,762KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete