Hier mal der neue Anfang:
Code: Alles auswählen
<?php
// ############ Edit below ############
$css =""; //path and name to your css_sheet - optional
$length = '15'; // length of topic title
$limit = '7'; // how many topics?
$root ='http://www.beer-counter.de/phpBB2'; // board folder without! ending mark (if in same folder just '.')
// ############ Edit above ############
define('IN_PHPBB', true);
$phpbb_root_path = 'http://www.beer-counter.de/phpBB2/'; // board folder with! ending mark (if in same folder just './')
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
@$userdata = session_pagestart($user_ip, PAGE_INDEX);
@init_userprefs($userdata);
// #### html output ####
echo "<link rel=\"stylesheet\" href=\"$css\" type=\"text/css\">"; // - optional
echo "<table width=\"60%\" cellpadding=\"1\" cellspacing=\"1\" border=\"0\" align=\"center\" class=\"forumline\">";
echo "<tr><th colspan=\"6\">$limit recent topics</th></tr>";
// #### html output ####
$sql = "SELECT post_id FROM " . POSTS_TABLE;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain matched posts list', '', __LINE__, __FILE__, $sql);
}
$recent_ids = array();
while( $row = $db->sql_fetchrow($result) )
{
$recent_ids[] = $row['post_id'];
}
$db->sql_freeresult($result);
Ich habe jetzt den absoluten Pfad benutzt und habe folgende Fehlermeldung:
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /var/www/web7/html/NEWDESIGN/dropdown/recent.php on line 18