Seite 1 von 1

PostNuke und phpBB ?

Verfasst: 27.11.2002 14:18
von anabolnet_de
Hallo!

benutze Postnuke und phpBB2.
Für Postnuke gibt es ja ein Modul Nmaens: lastXposts

Dieses Modul möchte ich einsetzen, zeigt aber im Modulblock keine postings sondern nur " Zum - Forum"

das wars,

Warum ist das Block-Modul leer?

:-?

Verfasst: 27.11.2002 14:40
von anabolnet_de
Bitte, bitte helft mir!!!

Möchte unbedingt die letzten 5 Postings auf meinm postNuke habe, biiiiiteeee!! :(

Verfasst: 29.11.2002 13:51
von anabolnet_de
ok, habs selber hinbekommen.

Verfasst: 03.12.2002 21:58
von Digifotograf
Würdest du bitte mal hier genau beschreiben wie du das gemacht hast, stehe vor dem selben Problem!

mfg

Andreas

Verfasst: 03.12.2002 22:23
von anabolnet_de
Hallo!

habe phpbb_fetch_all-2.0.0.tar von www.phpbbhacks.com heruntergeladen und dann diesen code in ein postnuke php-block-fenster eingegeben:

Verfasst: 03.12.2002 22:43
von Digifotograf
Das bekomme ich angezeigt, wo liegt der Fehler, es gibt keine test.php


Warning: Failed opening 'http://www.qv-forum.de/phpBB2/mods/phpb ... s/test.php' for inclusion (include_path='./')

Wie oder was muß ich noch machen?


mfg

Andreas

Verfasst: 04.12.2002 06:34
von anabolnet_de
Ach so, klar...

habe alles aus der portal.php belöscht, bis auf das "Last Posts" sieht dann so aus:
<?php
// Examples:
// forum in /aaa/bbb/ccc/ and script in /aaa/bbb/ccc/
// --> $phpbb_root_path = './';
// forum in /aaa/bbb/ccc/ and script in /aaa/bbb/
// --> $phpbb_root_path = './ccc/';
// forum in /aaa/bbb/ccc/ and script in /aaa/bbb/ddd/
// --> $phpbb_root_path = '../ccc/';
//

$phpbb_root_path = '/home/www/doc/6562/myprojekt.de/www/portal/forum/';

define ('IN_PHPBB', true);

if (!file_exists($phpbb_root_path . 'extension.inc'))
{
die ('<tt><b>phpBB Fetch All:</b>
Fehler...</tt>');
}

//
// phpBB related files
//

include_once ($phpbb_root_path . 'extension.inc');
include_once ($phpbb_root_path . 'common.' . $phpEx);
include_once ($phpbb_root_path . 'includes/bbcode.' . $phpEx);

//
// Fetch All related files - we do need all these because the portal is a
// huge example
//

include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/common.' . $phpEx);
include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/stats.' . $phpEx);
include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/users.' . $phpEx);
include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/polls.' . $phpEx);
include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/posts.' . $phpEx);
include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/forums.' . $phpEx);

//
// start session management
//

$userdata = session_pagestart($user_ip, PAGE_INDEX, $session_length);
init_userprefs($userdata);

//
// since we are demonstrating span pages we need to set the page offset
//

if (isset($HTTP_GET_VARS['start']) or isset($HTTP_POST_VARS['start'])) {
$CFG['posts_span_pages_offset'] = isset($HTTP_GET_VARS['start']) ? $HTTP_GET_VARS['start'] : $HTTP_POST_VARS['start'];
}

// fetch latest postings
$CFG['posts_trim_topic_number'] = 30;
$recent = phpbb_fetch_posts(null, POSTS_FETCH_LAST);

// fetch postings
$CFG['posts_trim_topic_number'] = 0;
$CFG['posts_span_pages'] = true;
$news = phpbb_fetch_posts();

phpbb_disconnect();

?>
<html>

<!-- RECENT -->
<?php if ($recent) { ?>
<?php for ($i = 0; $i < count($recent); $i++) { ?>
<?php echo date($CFG['date_format'] . ' ' . $CFG['time_format'], $recent[$i]['post_time']); ?> <a href="http://www.anabolnet.de/forum/profile.p ... le&u=<?php echo $recent[$i]['user_id']; ?>"><?php echo $recent[$i]['username']; ?></a><br /><img src="http://www.anabolnet.de/forum/templates ... _reply.gif" border="0" align="absmiddle" /> <a href="http://www.anabolnet.de/forum/viewtopic.php?p=<?php echo $recent[$i]['post_id']; ?>#<?php echo $recent[$i]['post_id']; ?>"><b><?php echo $recent[$i]['topic_title']; ?><?php if ($recent[$i]['topic_trimmed']) { echo '...'; } ?></b></a><br />
<?php } ?>

<p />
<?php } ?>
<!-- RECENT -->
</html>


Musste halt noch auf Dich anpassen