[هاك] الوقت المقضي في المنتدى
التركيب
1) ارفع البرودكت (المنتج)
2) في مجلد المنتدى includes/class_core.php ابحث عن
كود PHP:
// on this to be updated in real time.
$this->registry->db->shutdown_query("
UPDATE " . TABLE_PREFIX . "user
SET lastactivity = " . TIMENOW . "
WHERE userid = " . $this->userinfo['userid'] . "
", 'lastvisit');
استبدله بـ
كود PHP:
// on this to be updated in real time.
/* $this->registry->db->shutdown_query("
UPDATE " . TABLE_PREFIX . "user
SET lastactivity = " . TIMENOW . "
WHERE userid = " . $this->userinfo['userid'] . "
", 'lastvisit');
*/
if(TIMENOW - $this->userinfo['lastactivity'] > $this->registry->options['cookietimeout'])
{
$newtime = '0';
}
else
{
$newtime = TIMENOW - $this->userinfo['lastactivity'];
}
$this->registry->db->shutdown_query("
UPDATE " . TABLE_PREFIX . "user
SET lastactivity = " . TIMENOW . ",
timeonboard = timeonboard + $newtime
WHERE userid = " . $this->userinfo['userid'] . "
", 'lastvisit');
3) في القالب postbit_legacy أو postbit ابحث عن
كود PHP:
<div>
$vbphrase[posts]: $post[posts]
</div>
اضف اسفله
كود PHP:
<div>
$vbphrase[timeonboard]: $post[timeonboard]
</div>
4) في القالب MEMBERINFO ابحث عن
كود PHP:
<tr>
<td>
$vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)
</td>
</tr>
اضف اسفله
كود PHP:
<tr>
<td>
$vbphrase[timeonboard]: $userinfo[timeonboard]
</td>
</tr>
5) (اختياري) في قالب navbar ابحث عن
كود PHP:
<if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>
اضف اسفله
كود PHP:
<br />$vbphrase[timeonboard]: $bbuserinfo[timeonboard]
جميع الحقوق محفوظة
مبرمج الهاك : http://www.vbviet.org
معرب الهاك : شبكة مخبر الدولية www.mo5ber.com