好吧,所以我是一个非常初学者在制作网站,我只知道hmtl和ccs编码到目前为止。我有一个网站(interqueo.hu)和一个phpBB论坛。在我的网站上,我想在右侧有一个地方,参观者可以在论坛上看到最新的5个帖子。我找到了一个教程,但正如我所说我是一个初学者,并不熟悉php编码。显示文章在网站上(phpBB)
链接教程:https://wiki.phpbb.com/Practical.Displaying_posts_and_topics_on_external_pages
我这样做,到目前为止,但我不知道在哪里把代码的其余部分从教程。
<!DOCTYPE>
<?php
/*
* home.php
* Description: example file for displaying latest posts and topics
* by battye (for phpBB.com MOD Team)
* September 29, 2009
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/bbcode.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');
<html>
<head>
<title>Test Page</title>
</head>
<body>
</body>
</html>
即使这是一个很好的建议,你也没有回答这个问题。尝试获得最低的声誉,以便您可以发表评论。 –