kann mir bitte mal jemand sagen WIE genau ich das machen muss damit die News aus meinem Board auf meiner index.php angezeigt werden?
Ich habe hier schon gesucht aber nix gefunden das zum Thema:phpbb_4_webmaster hilft

Code: Alles auswählen
## Pre-Installation Notes:
## This only works with MySQL.
##
## Installation Notes:
## <?php include('online.php'); ?> must be the first line at the
## index page (to avoid warnings "Cannot add header information...")
##
## put <?php echo $onlinet; ?> - to show online users on forum -
## wherever you want @ your index page
Code: Alles auswählen
<html>
<head>
<title>Test</title>
</head>
<body bgcolor="#FFFFFF">
<script src="http://www.domain.info/forum/foren.php" type="text/javascript"></script>
<div align="center">
</div>
</body>
</html>
Code: Alles auswählen
<?
if ((!isset($HTTP_GET_VARS['anz'])) || (!is_numeric($HTTP_GET_VARS['anz'])) || ($HTTP_GET_VARS['anz'] > 52) || ($HTTP_GET_VARS['anz'] < 1)){
$an = 10;
} else {
$an = $HTTP_GET_VARS['anz'];
}
$a = 0;
$fp = fopen("http://www.domain.info/forum/rdf.php?count=$an", "r");
$fcontents = fread($fp, 65535);
fclose($fp);
$fcontents = str_replace ("</item>", "", $fcontents);
$fcontents = str_replace ("</link>", "", $fcontents);
$splices = explode ("<item>", $fcontents);
for ($i = 1; $i < count($splices); $i++){
$link = explode("<link>",$splices[$i]);
$link[1] = strip_tags($link[1]);
$headline = str_replace ("<title>", "<a target=\"_blank\" href=\"" . trim($link[1]) . "\">", $splices[$i]);
$headline = str_replace ("</title>", "</a>", $headline);
$headline = explode ("<link>", $headline);
$headline = trim($headline[0]);
echo "document.write('$headline'+'<br /><br />');\n";
if ($i >= $an) break;
}
?>