{source}
<!-- You can place html anywhere within the source tags -->
<script language="javascript" type="text/javascript">
// You can place JavaScript like this
</script>
<?php
// You can place PHP like this
$newline = "<br />";
// How Many Topics you want to display?
$topicnumber = 5;
// Change this to your phpBB path
$urlPath = "/phpbb";
// Database Configuration (Where your phpBB config.php file is located)
include './phpbb/config.php';
$table_topics = $table_prefix. "topics";
$table_forums = $table_prefix. "forums";
$table_posts = $table_prefix. "posts";
$table_users = $table_prefix. "users";
$link = mysql_connect("$dbhost", "$dbuser", "$dbpasswd") or die("Could not connect");
mysql_select_db("$dbname") or die("Could not select database");
mysql_query("SET NAMES 'utf8'");
mysql_query("SET CHARACTER SET 'utf8'");
$query = "SELECT t.topic_id, t.topic_title, t.topic_last_post_id, t.forum_id, p.post_id, p.poster_id, p.post_time, u.user_id, u.username
FROM $table_topics t, $table_forums f, $table_posts p, $table_users u
WHERE t.topic_id = p.topic_id AND
f.forum_id = t.forum_id AND
t.forum_id != 4 AND
t.topic_status <> 2 AND
p.post_id = t.topic_last_post_id AND
p.poster_id = u.user_id
ORDER BY p.post_id DESC LIMIT $topicnumber";
$result = mysql_query($query) or die("Query failed");
print "<table border = '0' cellpadding='1' cellSpacing='1' width='100%'>";
print "<tr align='center' valign='top'><td colspan=\"2\" bgcolor=\"#FFB84D\"><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\"><font color=\"#0000ff\"><b>Πρόσφατες Δημοσιεύσεις στο Forum του parentsclub.gr</b></td></tr></font>";
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
print "<tr valign='top'><td><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\"><font color=\"#3c3c3c\">Θέμα : <b><a href=\"$urlPath/viewtopic.php?f=$row[forum_id]&t=$row[topic_id]&p=$row[post_id]#p$row[post_id]\" TARGET=\"_blank\">" .$row["topic_title"]."</a></font></b></td><td><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\"><font color=\"#3c3c3c\"> από χρήστη : <a href=\"$urlPath/memberlist.php?mode=viewprofile&u=$row[user_id]\" TARGET=\"_blank\">" .$row["username"]."</a> στις <font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\"><font color=\"#0000ff\"> ".date('d/m/Y, G:i ', $row["post_time"]).$newline."</td></tr></font>";
}
print "</table>";
mysql_free_result($result);
mysql_close($link);
?>
{/source}
{source}
<!-- You can place html anywhere within the source tags -->
<p><iframe src="/./phpbb/?navigation=yes&color=0000ff&bgcolor=ffffff" width="100%" height="800" style="border: 0; margin: 0; padding: 0;" frameborder="0" marginwidth="0" marginheight="0" scrolling="auto"></iframe>
</p>
{/source}