$uids = $_GET['uid'];
$query = $db->query("
SELECT mybb_posts.username, mybb_posts.dateline, mybb_posts.fid,mybb_forums.fid,mybb_forums.name,mybb_posts.message,mybb_posts.subject,mybb_posts.tid FROM mybb_posts,mybb_forums
where
mybb_posts.fid = mybb_forums.fid
and
mybb_posts.uid = '$uids'
and
mybb_posts.replyto = 0
and
mybb_forums.lastposttid != ''
ORDER BY mybb_posts.dateline DESC LIMIT 8
");
while($fila = $db->fetch_array($query))
{
$msg = $fila['message'];
$id = $fila['tid'];
$title = $fila['subject'];
$fname = $fila['name'];
$fid = $fila['fid'];
$output = preg_match_all('/([-a-z0-9_\/:.]+\.(jpg|jpeg|png))/i', $msg, $matches);
$date = my_date($mybb->settings['dateformat'], $fila['dateline'], '', false);
$user = $fila['username'];
$img .= "<tr><td class='trow1'>
<div style='float:left;position:relative;width: 50px;overflow:show'><a href='showthread.php?tid=".$id."' title='".$title."'><center><img title='".$title."' src=".$matches [1] [0]." style='height: 50px;'></center></a></div>
<div style='float:left;position:relative;margin:8px;'><a href='showthread.php?tid=".$id."' title='".$title."'>".$title."</a><br>
Publicado en: ".$date."
</div>
</td></tr>
";
}