
ich möchte gern die news im portal meiner seite angeziegt bekommen, doch wie mache ich das???
Code: Alles auswählen
include($phpbb_root_path .'news.'.$phpEx);
Code: Alles auswählen
}// if ... total_categories
else
{
message_die(GENERAL_MESSAGE, $lang['No_forums']);
}
$template->assign_block_vars('switch_forumview_active', array());
}
// FORUMINDEX END (CODE TAKEN FROM A PHPBB 2.0.5 index.php)
include($phpbb_root_path .'news.'.$phpEx);
// FETCH POSTS START
$CFG['number_of_news'] = $introportalmod_config['fpost_numofnews'];
$CFG['news_length'] = $introportalmod_config['fpost_newslength'];
$CFG['news_forum'] = $introportalmod_config['fpost_forums'];
if(!isset($HTTP_GET_VARS['article']))
{
$template->assign_block_vars('welcome_text', array());
$fetchposts = phpbb_fetch_posts($CFG['news_forum'], $CFG['number_of_news'], $CFG['news_length']);
for ($i = 0; $i < count($fetchposts); $i++)
{
Code: Alles auswählen
<?php
/***************************************************************************
* news.php
* -------------------
* copyright : (C) 2004 Saerdnaer
* email : saerdnaer@web.de
* version : 1.4.4
*
***************************************************************************/
// Start config variables
// English
// German ( Deutsch )
// The relative path to your phpBB root dir normally it is ./
// Pfad ins phpBB Root Verzeichnis normalerweise ./
$phpbb_root_path = './';
// The forum which the news came from (terrible ;-) )
// Forum aus dem die News angezeigt werden sollen
$news_forum = 18;
// 0 = no header; 1 = default header; 2 = simple header;
// 0 = Kein Header; 1 = Standart Header; 2 = Einfacher Header;
$header_type = 0;
// Number of News (0 = all)
// Anzahl der News (0 = ohne Begrenzung)
$limit = 3;
// After this limit of letters it comes ... (0 = all)
// Buchstaben nach denen ... erscheinein soll (0 = ohne Begrenzung)
$letters = 0;
// Letters limit type: If 'true' the script also count the chars of a HTML or BBcode.
// Buchstaben Limit Typ: Bei 'true' werden z. B. die einzelnen Zeichen mit eines HTML Tags mit gezählt, bei 'false' nicht.
$l_type_simple = false;
// The dateformat. If no fill in, it will be the default dateformat of the forum
// Das Datumsformat. Falls es leergelassen wird, wird das Default Datumsformat des Forums benutzt
$dateformat = '';
// 0 = not included / direct; 1 = included in non phpBB page; 2 = included in phpBB page
// 3 = 2 & assign to NEWS template var; 4 = 2 & bbcode.php already loaded; 5 = 3 & 4
// 0 = nicht eingebunen / direkt; 1 = eingebunden in eine nicht phpBB Seite; 2 = eingebunden in eine phpBB Seite
// 3 = 2 & in NEWS template variable zuweisen; 4 = 2 & bbcode.php bereits geladen; 5 = 3 & 4
$include = 2;
// If you would set the params 'news_forum' (f) and/or 'header_type' (h) over the URL (e. g. news.php?f=2&h=2) set this variable to 'true'
// Falls sie die Parameter 'news_forum' (f) und/oder 'header_type' (h) über die URL definieren wollen (z. B. news.php?f=2&h=2) müssen sie hier auf 'true' stellen
$o_url = false;
// Set this variable to 'true' if the script should check the auth to the news_forum
// Stellen sie diese Variable auf 'true', falls das Script die Berechtigungen zum news_forum überprüfen soll
$check_auth = true;
// End config variables