Seite 1 von 1

PhPbb Seite Include

Verfasst: 12.05.2009 21:01
von Sithlord
Hallo Mitglieder!

So, nun mal eine Frage,

bei phpbb2 konnte ich einfach eine phpdatei aus dem /unterordner/_datei.php includen,
möchte also nicht von phpbb3 mit styles und languages abhängig sein.

Geht das iwie?

Re: PhPbb Seite Include

Verfasst: 13.05.2009 10:01
von djchrisnet

Code: Alles auswählen

define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);

Re: PhPbb Seite Include

Verfasst: 13.05.2009 20:45
von Sithlord
Vielen Dank ;)

Re: PhPbb Seite Include

Verfasst: 14.05.2009 21:58
von Sithlord
Hallo,
ein Problem:

Die Seite bleibt weiß!

War das soo richtig?:
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr('ag/_overview.php', '.'), 1);
include($phpbb_root_path . 'includes/functions_display.php' . $phpEx);
?>

Re: PhPbb Seite Include

Verfasst: 14.05.2009 22:14
von djchrisnet

Code: Alles auswählen

<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'includes/functions_display.php' . $phpEx);
?>
Sithlord hat geschrieben:Hallo, ein Problem:
Die Seite bleibt weiß!
War das soo richtig?:

Re: PhPbb Seite Include

Verfasst: 14.05.2009 22:38
von Boecki91
Bischen mehr wie nur includieren sollte man schon machen. in der Datei sind ja nur Funktionen drin die man auch noch aufrufen muss ;)

Re: PhPbb Seite Include

Verfasst: 14.05.2009 23:14
von djchrisnet
daran hat sich seit phpBB2 aber wenig geändert und sollte er ja eigendlich wissen :grin: :grin:

Re: PhPbb Seite Include

Verfasst: 15.05.2009 06:34
von Sithlord
Ahhhh :D

Cool, ne Ich wusstes nicht ;) Dachte das wäre die Datei, mal sehen ob ichs hinbekomme ^^ :grin: