Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #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
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03174 seconds
  • Memory Usage 2,261KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)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)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadedmode.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete