Hi, I used the PHP to retrieve the latest topics but I see this "" to the up.
Site:
http://habbocean.altervista.org/
In the box "Ultimi topic".
What can I do for delete this ?
Thanks for answering.
I used this code:
<?php
$limit = 10;
//$forumpath = '/';
define("IN_MYBB", 1);
require('global.php');
$unviewable = get_unviewable_forums(true);
if($unviewable)
{
$unview = "AND fid NOT IN ({$unviewable})";
}
$query = $db->simple_select('threads', '*', "1=1 {$unview} ORDER BY tid DESC LIMIT {$limit}");
if($db->num_rows($query) > 0)
{
while($row = $db->fetch_array($query))
{
$date = my_date($mybb->settings['dateformat'], $row['lastpost'], "", 1);
$time = my_date($mybb->settings['timeformat'], $row['lastpost'], "", 1);
if(strlen($row['subject'])>25)
{
$val = substr($row['subject'],0,28)."...";
}
else {
$val= $row['subject'];
}
{
if ($i==1)
{
$i=2;
}
else
{$i=1;
}
}
echo "<tr class=\"trow$i\"><td width=\"1%\" align=\"center\"><img src=\"http://www.habbocean.altervista.org/images/icons/topic.gif\"></td>
<td width=\"32%\"><a
href=\"http://www.habbocean.altervista.org/forum/showthread.php?tid={$row['tid']}\" target=\"_blank\">{$val}</a></td>
<td width=\"10%\" align=\"center\">{$row['replies']}</td>
<td width=\"10%\" align=\"center\">{$row['views']}</td>
<td width=\"18%\"><a href=\"http://www.habbocean.altervista.org/forum/member.php?action=profile&username={$row['lastposter']}\" style=\"font-size: 11px;\">{$row['lastposter']}</a></td></tr>";
}
}
else
{
echo '<font style="font-size: 11px; font-family:verdana, sans-serif;"><b>Nessuna nuovo topic.</b></font>';
}
?>
What's wrong?
What text editor are you using?? If it's Notepad it'll be that, use Wordpad or another text editor.
I used Altervista's text-editor, it's my hosting.
1 Week ago was ok ç_ç
I don't know what's the problem...
1. Download and install
Notepad++.
2. Copy and paste your code into Notepad++.
3. Go to Encoding > Encode in UTF-8 without BOM.
4. Save, upload and overwrite the file to your server.
Seems to work for me. And like Matt said, make sure there's nothing before the
<?php tag.
Go to AdminCP -> Tools & Maintenance -> File Verification.
What does it say??
Where is "File Verification"? I don't see it °-°