bin noch ziemlich unbefleckt in Sachen phpBB. Mit Hilfe des Formus habe ich es jetzt auch schon geschafft neue Seiten in phpBB3 einzubinden.
Dies funktioniert allerdings nur, wenn ich das mit statischen Seiten mache.
Sobald ich php mit meiner DB-Abfrage ins Spiel bringe, ignoriert phpBB beharlich meinen dynamischen php-Code.
Aufgerufene Seite unter root
Code: Alles auswählen
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
page_header('Suche Stadt');
$template->set_filenames(array(
'body' => 'adress_db_aus_stadt.html',
));
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
page_footer();
?>
Code: Alles auswählen
<!-- INCLUDE overall_header.html -->
<P class="{S_CONTENT_FLOW_END}<!-- IF S_USER_LOGGED_IN --> rightside<!-- ENDIF -->"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --></P><!-- IF U_MCP --><P>{CURRENT_TIME}<BR/>[ <A href="{U_MCP}">{L_MCP}</A> ]</P><!-- ELSEIF S_USER_LOGGED_IN --><P>{CURRENT_TIME}</P><!-- ENDIF -->
<!-- INCLUDE static_overall_nav.html --><BR>
<div class="forabg">
<div class="inner">
<span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header"><dl><dt>Informationen zur Stadt</dt></dl></li>
</ul>
<ul class="topiclist forums" style="padding: 20px">
<li>
<div style="padding-left: 0px">
<table width="100%" border="0" cellspacing="20" cellpadding="0">
<tr>
<td width="50%" valign="top"><font size="2"><br>
<P><STRONG><font size="2">Informationen über xxxxxxxxxx - <a href="adress_db_suche_start.php" target="_top">Adressen</a></STRONG></P>
<p>Abfrage Stadt</p>
<!-- INCLUDE /../../../adress_db_aus_stadt_abfrage.php -->
</td>
<td width="50%" valign="top"><div align="center">.....</td>
</tr>
</table>
</font></font>
</div>
</li>
</ul>
<span class="corners-bottom"><span></span></span>
</div>
</div>
<br />
<div align="center"><font size="-1">Die hier dargestellten Informationen ....</font></div>
<br />
Die Datei adress_db_aus_stadt_abfrage.php liegt im root Verzeichnis und enthält den Datenbankzugriff samt Ausgabe
Doch diese php-Abfrage Datei wird komplett ignoriert es kommt nicht mal eine Fahlermeldung. Für sich funktioniert die php-Datei aber richtig nur eingebunden tut sich nichts.
Ausgegeben wird nur der Text im HTML-Code:
Abfrage Stadt
Irgendwas mache ich wohl noch (grundlegend) falsch!?!
Ciao
Stefan