1. افتح ملف forumdisplay.php
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
وابحث عن :
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
كود PHP:
$lastread = $bbuserinfo['lastvisit'];
}
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
بعده اضف:
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
كود PHP:
$topposter='';
$top = $DB_site->query("
SELECT count(post.postid) AS total_post,count(thread.threadid) AS total_thread, user.userid,user.username,user.joindate from " . TABLE_PREFIX . "user AS user
LEFT JOIN " . TABLE_PREFIX . "post AS post ON(user.userid = post.userid)
LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON(post.threadid = thread.threadid) where
thread.forumid='$forumid'
group by user.userid order by total_post DESC LIMIT 5");
$counteruser=0;
while ($topp = $DB_site->fetch_array($top))
{
$counteruser++;
$topp['joindate'] = vbdate($vboptions['dateformat'], $topp['joindate'], true);
eval('$topposter .= "' . fetch_template('forumdisplay_topposter') . '";');
}
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
وابحث عن:
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
كود PHP:
'forumhome_lastpostby',
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
فوقه اضف :
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
كود PHP:
'forumdisplay_topposter',
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+