Ik moet twee dingen veranderen (zie vet gedrukt) maar weet niet precies wat ik daar moet invullen.
Kan iemand mij helpen met het beantwoorden van die vraag?
// Hier het pad naar je phpBB folder
$phpbb_root_path = './phpBB2/';
content="1200;url=http://www.je_website_url/het_php_bestandje.php"> </head>");
Code: Selecteer alles
<?php
// QuickIT NL phpBB Topics
// By QuickIT NL
//
// http://www.quickit.nl
// Hier het pad naar je phpBB folder
$phpbb_root_path = './phpBB2/';
define('IN_PHPBB', true);
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
Function replacebbcode($text){
$text = eregi_replace("[b:.{0,10}]", "<b>", $text);
$text = eregi_replace("[/b:.{0,10}]", "</b>", $text);
$text = eregi_replace("[u:.{0,10}]", "<u>", $text);
$text = eregi_replace("[/u:.{0,10}]", "</u>", $text);
$text = eregi_replace("[i:.{0,10}]", "<i>", $text);
$text = eregi_replace("[/i:.{0,10}]", "</i>", $text);
$text = eregi_replace("[url=http:.{1,80}]"," ",$text);
$text = eregi_replace("[/url]"," ",$text);
$text = eregi_replace("[url]"," ",$text);
$text = eregi_replace("[.{1,10}:.{1,10}]"," ",$text);
$text = eregi_replace("[/.{1,10}:.{1,10}]"," ",$text);
$text = eregi_replace("[/.{1,20}]"," ",$text);
$text = eregi_replace("[.{1,20}]"," ",$text);
Return $text;
}
// Diverse settings
$NUM_POSTS = 5; // Aantal laatste topics
$POST_IMAGE ="XP_NewFile.gif"; // Het plaatje naast het bericht
$TEXT_ON = FALSE; //Laat een gedeelte tekst zien uit de topic
$TEXT_LEN = 200; //maximum aantal letters als je hierboven "true" hebt gekozen
$HIDE = true;//true of false - als je kiest voor true, worden berichten uit bepaalde forums niet weergegeven - (optie hieronder)
$hide_level = 0;// display threshold 0=laat alleen berichten zien uit forums open voor gasten, 1= ook uit geregistreerd, 2=ook uit Moderators, 3=Laat alle posts zien, ook die uit forums voor admins only
$fontheadercolor="black";
$fontsize=1;
$fontcolor="#5695BA";
$fontsizetext=1;
$fontcolortext="#5695BA";
$fontheaderface="verdana";
$box_title = "<font size="$fontheadersize" color="$fontheadercolor" face="$fontheaderface"><b>Laatste Scipt in het Forum</b></font>";
$box_content = "";
$time=time();
$time=date("d M Y h:i a",$time);
$sqlxx="SELECT a1.post_id AS postid, a1.poster_id AS poster, a1.forum_id, a1.topic_id AS topic, a1.post_time AS time, a2.post_subject AS subject, a2.post_text AS text FROM phpbb_posts a1, phpbb_posts_text a2, phpbb_forums a3 WHERE a1.post_id = a2.post_id AND a1.forum_id = a3.forum_id";
if($HIDE) $sqlxx .= " AND a3.auth_view <= "" . $hide_level . """;
$sqlxx .= " ORDER BY a1.post_time DESC";
$resultxx = mysql_query($sqlxx) or die("Cannot query database");
if($resultxx){
$box_content .="<table cellpadding="0" cellspacing = "0" width= "100%" border="0">";
for($i=0;$i<$NUM_POSTS;$i++){
if($post = mysql_fetch_array($resultxx)){
$result3=mysql_query("SELECT username FROM phpbb_users WHERE user_id =" . $post["poster"]);
$author=mysql_fetch_array($result3);
$result4 = mysql_query("SELECT forum_name FROM phpbb_forums WHERE forum_id =" . $post["forum_id"]);
$forum=mysql_fetch_array($result4);
if(!$post["subject"]){
$result2=mysql_query("SELECT topic_title FROM phpbb_topics WHERE topic_id =" . $post["topic"]);
$replyto = mysql_fetch_array($result2);
$post["subject"]="RE: " . $replyto["topic_title"];
mysql_free_result($result2);
}
$box_content .="<tr><td ><font size="$fontsize" color="$fontcolor" face="$fontheaderface"><img src="$POST_IMAGE " width="10" height="15" ><a href="" . $phpbb_root_path . "phpbb2/viewtopic.php?t=" .$post["topic"] . "" title="Geplaatst door:" . $author["username"]. " && In:" . $forum["forum_name"] . ""> " . $post["subject"] . "</a><br> geplaatst op " . date("d-m-y ", $post["time"]) . " @ " . date("H:i", $post["time"]) . "</font></td></tr>";
if($TEXT_ON){
$post["text"] = replacebbcode($post["text"]);
$post["text"] = substr($post["text"],0,$TEXT_LEN);
$box_content .= "<tr><td cellpadding="0">&&&&&&<font color="$fontcolortext" size="$fontsizetext" face="$fontheaderface">" . $post["text"] . "...</font></td></tr>";
}
}
}
$box_content .="</table>";
}
print("<head>
<meta http-equiv="Refresh"
content="1200;url=http://www.je_website_url/het_php_bestandje.php[/color]"> </head>");
//Pas hierboven je url aan
print("<table width="250"><tr><td>" . $box_title . "</td></tr><tr><td><font size="$fontsize" color="$fontcolor" face="$fontheaderface">Laatste Updated $time</font></td></tr><tr><td>" . $box_content . "</td></tr></table>");
?>