- Wat is het probleem?
Ik wil mijn Laatste Posts In mijn website zetten maar dit lukt niet.
Wanneer ontstond het probleem?
Vanmiddag
Adres van je forum:
http://www.fc-dordrecht.nl/phpbb/
Modifications op je forum:
-
Huidige stijl:
Subsilver
phpBB versie:
2.0.22
Waar is je forum gehost:
Flexhosting
Heb je onlangs iets verandert aan je forum?
Nee
Informatie voor laatse posts van:
http://www.mastercode.nl/artikel/61/#vb
Code voor in het aparte bestand recent.php:
En in de index deze:<?php
define('IN_PHPBB', true);
////////////////////////////////////////////
// DE LAATSTE x AANTAL FORUM ONDERWERPEN
// DOOR: TED [WEBMASTER@MASTERCODE.NL]
// http://WWW.MASTERCODE.NL
////////////////////////////////////////////
// INSTELLINGEN
////////////////////////////////////////////
// Pad naar je forum (inclusief SLASH aan het einde) Bijv: forum/
$phpbb_root_path = 'phpbb/';
// Maximum lengte van een onderwerp naam
$maxlen =60;
// Aantal weer te geven berichten
$limiet =51;
////////////////////////////////////////////
// HIERONDER NIETS MEER VERANDEREN TENZIJ JE VERSTAND VAN ZAKEN HEBT
////////////////////////////////////////////
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.' . $phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
$query = "SELECT `t`.`topic_id`, `t`.`topic_title`, `t`.`topic_poster`, `t`.`topic_time`, `t`.`topic_type`, `t`.`topic_vote`, `u`.`user_id`, `u`.`username`, `c`.`config_value` as `df`
FROM ".TOPICS_TABLE." as `t`, ".USERS_TABLE." as `u`, ".CONFIG_TABLE." as `c`
WHERE `t`.`topic_poster` = `u`.`user_id`
AND `c`.`config_name` = 'default_dateformat'
ORDER BY `t`.`topic_id` DESC
LIMIT 0,".$limiet;
$sql = mysql_query($query) or die("Error: ".mysql_error());
// DE OUTPUT
echo "<ul id='laatsteonderwerpen'>\n";
while($temp = mysql_fetch_array($sql))
{
extract($temp);
$topic_title = strlen($topic_title) > $maxlen ? substr($topic_title,0,$maxlen) . "…" : $topic_title;
switch($topic_type)
{
case 2: $topic_type = '<strong>'.$lang['Topic_Announcement'].'</strong> '; break;
case 1: $topic_type = '<strong>'.$lang['Topic_Sticky'].'</strong> '; break;
case 0: $topic_type = ''; break;
}
if($topic_vote == 1)
{
$topic_type = $topic_type.' '.$lang['Topic_Poll'].' ';
}
echo "\t<li>".$topic_type."<a href='".$phpbb_root_path."viewtopic.php?t=".$topic_id."'>".$topic_title."</a> ";
echo "gestart door <a href='".$phpbb_root_path."profile.php?mode=viewprofile&u=".$user_id."'>".$username."</a> ";
echo "op " . date($df,$topic_time);
echo "</li>\n";
}
echo "</ul>\n\n";
?>
Kunnen jullie vertellen wat ik moet doen?<?php
include("recent.php");
?>
Alvast bedankt
Lieven Anthonise