Seite 1 von 1

Adding custom pages

Verfasst: 12.01.2011 16:42
von pl0xx
Hallo phpBB - Community ,

Ich versucht den Mod "Adding custom pages" zu installieren. Und habe alle 3 Dateien erstellt (new_page.php , my_template_file.php , my_template.html).
Nun steht bei der Installation das ich die ./new_page.php aufrufen soll und dann kommt folgendes:

Code: Alles auswählen

Warning: include(./forum/common.php) [function.include]: failed to open stream: No such file or directory in /var/www/vhosts/clan-crankz.de/httpdocs/forum/new_page.php on line 22

Warning: include(./forum/common.php) [function.include]: failed to open stream: No such file or directory in /var/www/vhosts/clan-crankz.de/httpdocs/forum/new_page.php on line 22

Warning: include() [function.include]: Failed opening './forum/common.php' for inclusion (include_path='.:') in /var/www/vhosts/clan-crankz.de/httpdocs/forum/new_page.php on line 22

Warning: include(./forum/includes/functions_display.php) [function.include]: failed to open stream: No such file or directory in /var/www/vhosts/clan-crankz.de/httpdocs/forum/new_page.php on line 25

Warning: include(./forum/includes/functions_display.php) [function.include]: failed to open stream: No such file or directory in /var/www/vhosts/clan-crankz.de/httpdocs/forum/new_page.php on line 25

Warning: include() [function.include]: Failed opening './forum/includes/functions_display.php' for inclusion (include_path='.:') in /var/www/vhosts/clan-crankz.de/httpdocs/forum/new_page.php on line 25

Fatal error: Call to a member function session_begin() on a non-object in /var/www/vhosts/clan-crankz.de/httpdocs/forum/new_page.php on line 28
Hier ist der Link zum Mod: http://wiki.phpbb.com/display/MODDOCS/A ... stom+pages

MfG

Re: Adding custom pages

Verfasst: 12.01.2011 19:15
von Balint
Hallo,

die Installationsanleitung sagt:
Save this file to your website root directory (not inside your phpBB3 installation directory)
Liegt also die Seite im gleichen Verzeichnis musst du aus

Code: Alles auswählen

$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forum/';
ein

Code: Alles auswählen

$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
machen.

Die Anleitung ist eher für Login-Seiten außerhalb des Forums gemacht, es gibt andere Anleitungen und sogar einen MOD, um weitere Seiten zu phpBB hinzuzufügen.


Viele Grüße,
Bálint