that exactly I did paste script in html box
Code:
<?php
include("./forum/config.php");
$sqlconnect = mysql_connect($dbhost, $dbuser, $dbpasswd);
$sqlselect = mysql_select_db($dbname);
$fltNrTopics = 8; //pocet posledních príspevku
$sql = "SELECT phpbb_posts.forum_id AS forum_id, phpbb_posts.topic_id AS topic_id, phpbb_topics.topic_title AS topic_title "
."FROM phpbb_posts, phpbb_topics "
."WHERE (phpbb_posts.topic_id = phpbb_topics.topic_id) "
."ORDER BY phpbb_posts.post_time DESC LIMIT ".max($fltNrTopics*2,10);
$result = mysql_query($sql);
$Topic_IDs_Used = array();
$Topics_Printed = 0;
while ( ($row = mysql_fetch_array($result,MYSQL_ASSOC)) && ($Topics_Printed < $fltNrTopics) ){
$forum_id = $row['forum_id'];
$topic_id = $row['topic_id'];
$topic_title = $row['topic_title'];
if (!in_array($topic_id,$Topic_IDs_Used)) {
$Topics_Printed = array_push($Topic_IDs_Used,$topic_id);
//Nyní máme název a id tématu serazených podle data
//Autorizace pro ctení(nezobrazení príspevku z uavrených sekcí)
$sql_auth = "SELECT auth_view, auth_read FROM phpbb_forums WHERE forum_id='$forum_id'";
$result_auth = mysql_query($sql_auth);
$row_auth = mysql_fetch_array($result_auth,MYSQL_ASSOC);
$auth_view = $row_auth['auth_view'];
$auth_read = $row_auth['auth_read'];
if (($auth_view < 2) OR ($auth_read < 2)) {
$content .= ' <a href="forum/viewtopic.php?t='.$topic_id.'" class="forum">'.$topic_title.'</a><br>';
}
}
}
echo $content;
?> But this text is too big and I need to make it maller. just like word "contact" (left down) that's why i need adjust the code