2007-10-18, 08:02 AM
مرحب اخى الكريم
استخدم هذا الكود فى ملف global.php
استخدم هذا الكود فى ملف global.php
PHP كود :
$query = $db->query("SELECT tid, subject, username, uid FROM ".TABLE_PREFIX."threads ORDER BY tid DESC LIMIT 0, 10");
$latest_threads = '<marquee direction="right" scrollamount="2" scrolldelay="5" onmouseover="this.setAttribute(\'scrollamount\', 0)" onmouseout="this.setAttribute(\'scrollamount\', 2)">';
$sep = '';
while($row = $db->fetch_array($query))
{
$row['subject'] = htmlspecialchars_uni($row['subject']);
$profile_url = str_replace('{uid}', $row['uid'], PROFILE_URL);
$latest_threads .= " {$sep} <a href=\"".$mybb->settings['bburl']."/thread-".$row['tid'].".html\">{$row['subject']}</a> بواسطة: <a href=\"{$profile_url}\">{$row['username']}</a>";
$sep = '|';
}
$latest_threads .= '</marquee>';