E minha pagina ja coloquei "charset=utf-8" e "iso-8859-1" e nao adiantou. Tipo pra acentução da minha pagina funciona normal mas pra pega as noticias não.
Vou postar minhas config pra puxa as noticias.
pagina onde exibe as noticias.
if (fnoticias == true)
{
$nwMy = new nwMySQL;
$nwMy->Connect();
?>
<h1>Ultimas noticias do fórum</h1>
<blockquote><table width="100%" border="0" cellspacing="2" cellpadding="4">
<tr bgcolor="#2d2d2d" height="25">
<td width="45%"><strong>Notícia</strong></td>
<td width="10%" align="center"><strong>Autor</strong></td>
<td width="17%" align="right"><strong>Estatísticas</strong></td>
<td width="29%"><strong>Último post</strong></td>
</tr>
<?php
global $foruns;
$p = prefix;
$t = tnoticiasf;
$trds = "select * from {$p}topics where ";
for($y = 0; $y < count($foruns); $y++)
{
$f = $foruns[$y];
if($y < count($foruns) - 1)
{
$trds .= "forum_id='{$f}' or ";
}
else
{
$trds .= "forum_id='{$f}' ";
}
}
$trds .= "order by tid desc limit {$t}";
$querys = $nwMy->query($trds);
if ($nwMy->num($querys) < 1)
{
echo "
<tr>
<td colspan=\"4\" align=\"center\"><blockquote class=\"error\">Não há nenhuma notícia registrada no fórum.</blockquote></td>
</tr>";
}
for ($b = 0; $b < $nwMy->num($querys); $b++)
{
$r2 = $nwMy->fet_array($querys);
$comentarios = $nwMy->fetch($nwMy->query("select count(*) from {$p}posts where topic_id='{$r2[tid]}' and new_topic=0"));
$data = date("d/m/Y, H:i:s", $r2["post_date"]);
if($b % 2)
{
$cor = "#2d2d2d";
}
else
{
$cor = "#444444";
}
?>
<tr>
<td bgcolor="<? echo $cor; ?>">» <a href="<? echo constant("linkforum"); ?>/index.php?showtopic=<? echo $r2["tid"]; ?>" target="_blank"><? echo utf8_encode($r2["title"]); ?></a></td>
<td bgcolor="<? echo $cor; ?>" align="center"><? echo utf8_encode($r2["starter_name"]); ?></td>
<td bgcolor="<? echo $cor; ?>" align="right"><strong><? echo number_format($comentarios[0], 0, false, "."); ?></strong> Respostas<br /><strong><? echo $r2["views"]; ?></strong> Visualizações</td>
<td bgcolor="<? echo $cor; ?>"><? echo date("d/m/Y, H:i:s", $r2["last_post"]); ?><br />Por: <strong><? echo $r2["last_poster_name"]; ?></strong></td>
</tr>
<? } ?>
</table></blockquote>config das noticias
define ("fnoticias",true); // -- Notícias do fórum (IPB - Invision Power Board)
define ("user", "forum"); // -- Usuário MySQL
define ("senha", "xxxxxxxx"); // -- Senha MySQL
define ("ip", "127.0.0.1"); // -- IP MySQL (Padrão => localhost)
define ("db", "forum"); // -- Database MySQL
define ("linkforum", "http://www.musplatter.net/forum/"); // -- Link do fórum
$foruns = array(2, 3, 4); // -- Aqui vai o numero do forum que você quer que mostre separado por vírgula Exemplo: array(1, 2, 3)
define ("tnoticiasf", 5); // -- Total de notícias (Padrão => 5)
define ("prefix", "ibf_"); // -- Mude aqui o prefixo do nome das tabelas (Padrão => ibf_)

Ajuda











