PHP Script Tags in overall_header.tpl ???

Alles zu Styles, Templates, Icons und Smilies für phpBB 2.0, sowie allgemeine Designfragen zur Integration von phpBB in bestehende Websites.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
EagleHH

PHP Script Tags in overall_header.tpl ???

Beitrag 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
Benutzeravatar
enrico
Mitglied
Beiträge: 820
Registriert: 17.02.2003 15:18

Beitrag 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
Benutzeravatar
Mungo
Administrator
Administrator
Beiträge: 6613
Registriert: 03.05.2003 19:34

Beitrag 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
EagleHH

Beitrag von EagleHH »

Vielen Dank für die Hilfe, hat mit der Methode aus dem KB Artikel bestens geklappt.

Eagle
Antworten

Zurück zu „phpBB 2.0: Styles, Templates und Grafiken“