if ($jointime < 1)
{
// User has been a member for less than one day.
$postsperday = $PowerBB->functions->pbb_number_format($this->Info['posts']);
}
else
{
$postsperday = $PowerBB->functions->pbb_number_format($this->Info['posts'] / $jointime, 2);
}
$this->Info['postsperday'] = $postsperday;
إذا كنت تستخدم نسخة من الجيل الثاني ابحث عن :
CODE
if (is_numeric($this->RInfo[$this->x]['register_date']))
اضف اعلاه :
CODE
$jointime = ($PowerBB->_CONF['now'] - $this->RInfo[$this->x]['register_date']) / 86400; // Days Joined
if ($jointime < 1)
{
// User has been a member for less than one day.
$postsperday = $PowerBB->functions->pbb_number_format($this->RInfo[$this->x]['posts']);
}
else
{
$postsperday = $PowerBB->functions->pbb_number_format($this->RInfo[$this->x]['posts'] / $jointime, 2);
}
$this->Info['postsperday'] = $postsperday;
$jointime = ($PowerBB->_CONF['now'] - $ReplierInfo['register_date']) / 86400; // Days Joined
if ($jointime < 1)
{
// User has been a member for less than one day.
$postsperday = $PowerBB->functions->pbb_number_format($ReplierInfo['posts']);
}
else
{
$postsperday = $PowerBB->functions->pbb_number_format($ReplierInfo['posts'] / $jointime, 2);
}
$ReplierInfo['postsperday'] = $postsperday;