وقم بتنصيب او اعمل install لمنتج نظام النقاط تجده بالاسفل
وانتظر الانتهاء من التنصيب وبعدها توجه الى الاف تي بي لملفات منتداك وقم بعمل التعديلات التاليه يفضل نسخ ملفات احتياطيه لكل ملف يعدل عليك لضمان عدم الخطأ
admin/applications/forums/modules_public/forums/topics.php
ابحث عن
m.members_bitoptions',استبدله بي
m.members_bitoptions, m.points',
ثم بفتح ملف
admin/applications/forums/sources/classes/post/classPost.php
ابحث عن
// If we are a member, lets update thier last post
// date and increment their post count.
//-----------------------------------------
if ( ! $this->_isMergingPosts )
{
$this->incrementUsersPostCount();
}اضف اسفله
//-----------------------------------------
// Upate iPoints
//-----------------------------------------
if($this->memberData['g_access_points'] && !$this->memberData['p_locked'])
{
if($this->getForumData('pweight') > 0)
{
$earned = round(strlen($post['post']) * $this->getForumData('pweight'));
if($earned < $this->getForumData('pmin'))
{
$earned = $this->getForumData('pmin');
}
else if($earned > $this->getForumData('pmax'))
{
$earned = $this->getForumData('pmax');
}
}
else if($this->getForumData('pweight') == 0)
{
$earned = intval($this->getForumData('preply'));
}
$update_sql['points'] = $this->getAuthor('points') + $earned;
IPSMember::save( $this->getAuthor('member_id'), array( 'core' => $update_sql ) );
}ابحث عن
//----------------------------------------- // If we are a member, lets update thier last post // date and increment their post count. //----------------------------------------- $this->incrementUsersPostCount();
اضف اسفله
//-----------------------------------------
// Upate iPoints
//-----------------------------------------
if($this->memberData['g_access_points'] && !$this->memberData['p_locked'])
{
if($this->getForumData('pweight') > 0)
{
$earned = round(strlen($post['post']) * $this->getForumData('pweight'));
if($earned < $this->getForumData('pmin'))
{
$earned = $this->getForumData('pmin');
}
else if($earned > $this->getForumData('pmax'))
{
$earned = $this->getForumData('pmax');
}
}
else if($this->getForumData('pweight') == 0)
{
$earned = intval($this->getForumData('ptopic'));
}
$update_sql['points'] = $this->getAuthor('points') + $earned;
IPSMember::save( $this->getAuthor('member_id'), array( 'core' => $update_sql ) );
}انتهى
ادخل لوحه التحكم للمنتديات
توجه
Look & Feel > SelectSkin > Manage Templates & CSS > Global Templates > userInfoPane
ابحث عن
<dt>{$this->lang->words['m_posts']}</dt>
<dd>{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}</dd>اضف اسفله
<if test="$this->memberData['g_access_points']">
<dt>iPoints:</dt>
<dd>
<if test="!$author['p_locked']">
{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['points'] ) )"}
<if test="$author['member_id'] != $this->memberData['member_id'] AND $this->memberData['g_donate_points']">
(<a href='{parse url="app=points&cmd=donate&id={$author['member_id']}" base="public"}' style='text-decoration:none;'>Donate</a>)
</if>
<else />
Locked
</if>
</dd>
</if>انتهى التثبيت
Attached File(s)
-
iPoints_System_3.0.1.rar (164.14كيلو)
Number of downloads: 4

مساعدة 














