Seite 1 von 1

overall_header.php

Verfasst: 25.05.2008 20:07
von TRex87
Ich würde gerne meine overall_header.html in eine overall_header.php umbenennen.
Ich weiß aber nicht, von wo aus die overall_header.html alles aufgerufen wird. Ich muss dort ja dann auch überall anpassen, dass die .php- Datei genommen werden soll.
Kann mir da jemand helfen?

Verfasst: 25.05.2008 20:16
von DenizZz
Das geht nicht weil die .html datei, das anzeigt was dadrine Steht.
Wiso in .php ?

Sie Zeigt den Headerbereich deines Forum an.

Verfasst: 25.05.2008 20:18
von Boecki91
Antwort:
In fast jeder Template-Datei und in der
includes/function.php


Frage:
Was bringt das?

Du kannst PHP in Templates nutzen:

Coding Guidlines:
PHP
A contentious decision has seen the ability to include PHP within the template introduced. This is achieved by enclosing the PHP within relevant tags:

Code: Alles auswählen

<!-- PHP -->
	echo "hello!";
<!-- ENDPHP -->
You may also include PHP from an external file using:

Code: Alles auswählen

<!-- INCLUDEPHP somefile.php -->
it will be included and executed inline.

A note, it is very much encouraged that template designers do not include PHP. The ability to include raw PHP was introduced primarily to allow end users to include banner code, etc. without modifying multiple files (as with 2.0.x). It was not intended for general use ... hence www.phpbb.com will not make available template sets which include PHP. And by default templates will have PHP disabled (the admin will need to specifically activate PHP for a template).

Verfasst: 25.05.2008 20:46
von TRex87
ich brauche das, weil ich das forum in eine website einbauen will und fürs design php-includes notwendig sind.

@Boecki91:
Das würde mir helfen, leider funkioniert es nicht. Die php-Befehle werden nciht beachtet.
Kann es sein, dass dein Textauszug nur für das phpbb2 gilt?
Ich habe das 3er.

Verfasst: 25.05.2008 20:51
von Boecki91
Nein die sind fürs 3er musst du allerdings erst "freischalten"
(the admin will need to specifically activate PHP for a template).
Unter "Serversicherheit".

Verfasst: 25.05.2008 21:17
von TRex87
danke, jetzt gehts.
ich hätte deine Hilfe mal noch zu ende lesen sollen...