Seite 1 von 1

PHP Script Tags in overall_header.tpl ???

Verfasst: 17.10.2003 10:05
von EagleHH
Hallo,


ich möchte das Forum in das Layout meiner Seite einbetten. Links eine Menülesite etc. Ich habe nun versucht die Header und Footer Files in die overall_header.tpl bzw. overall_footer.tpl einzubinden. Nur klappt das scheinbar nicht.

in der overall_header.tpl

Code: Alles auswählen

<?
include ('/web/.../header.php');
?>
in der overall_footer.tpl

Code: Alles auswählen

<?
include ('/web/.../footer.php');
?>
Vielleicht weiß ja jemand Rat.

Danke&
Gruß

Eagle

Verfasst: 17.10.2003 10:59
von enrico
da gabs mal einen mod, aber irgendwie find ich den nich mehr.
:oops:
edit: hab ihn :D

########################################################
## Mod Title: Php in templates
## Mod Version: 3.0
## Author: Ryan McLaughlin < ryanmc2@hotmail.com >
## Description: This mod allows simple php to be inserted
## into the .tpl files.
##
## Installation Level: (easy)
## Installation Time: 1 Minute
## Files To Edit: template.php
## Included Files: template.php
##
##############################################################
## For Security Purposes, This MOD Cannot Be Posted Or Added
## At Any Non-Official phpBB Site
##############################################################
##
## Author Note:
##
## I have included the template.php (v 1.10) file with the
## mod already in place. just copy my file over the origianl file.
## Or follow the instructions below to install it into your own file.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up
## All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
/phpBB2/includes/template.php

#
#-----[ FIND ]------------------------------------------
#
$code_lines[$i] = chop($code_lines[$i]);

#
#-----[ AFTER, ADD ]------------------------------------------
#
if (preg_match('/<\?php/', $code_lines[$i]))
{
$code_lines[$i] = str_replace('<?php', '', $code_lines[$i]);
while (!preg_match('/\?>/', $code_lines[$i])) {
$i++;
}
if (preg_match('/\?>/', $code_lines[$i])){
$code_lines[$i] = str_replace('?>', '', $code_lines[$i]);
}
}
else {
#
#-----[ FIND ]------------------------------------------
#
// Bring it back into a single string of lines of code.

#
#-----[ BEFORE, ADD ]------------------------------------------
#
} -- this ends the else from above

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

Verfasst: 17.10.2003 11:02
von Mungo
http://www.phpbb.de/viewtopic.php?t=35600

Hier ist der MOD...

Oder schau dir mal den KB-Aritkel an, um es in der PHP-Datei zu includen:
KB:13

Verfasst: 17.10.2003 12:57
von EagleHH
Vielen Dank für die Hilfe, hat mit der Methode aus dem KB Artikel bestens geklappt.

Eagle