شباب iT: هاك 3.0 : نظام النقاط في المنتديات جميل - شباب iT

ذهاب للمحتوى

صفحة 1 من 1
  • You cannot start a new topic
  • You cannot reply to this topic

هاك 3.0 : نظام النقاط في المنتديات جميل

#1 غير متواجد   nOwRs 

  • تـقـنـي بـرفـسـور
  • PipPipPipPipPipPipPipPipPip
  • عرض الـ blog
  • عرض الـ gallery
  • المجموعة: إدارة الموقع
  • المشاركات: 26552
  • الإنضمام: 13-April 05
  • Facebook:
  • Youtube :
  • Twitter :
  • Gender : Man
  • Location : Gaza Strip
  • الهوايات:أعشق الفن بكل أبوابه

Posted 02 March 2010 - 01:48 PM

ثم برفع ملف admin و public داخل مجلد منتداك الرئيسي ثم ادخل لوحه التحكم ثم توجه Applications & Modules => Manage Applications & Modules
وقم بتنصيب او اعمل 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&amp;cmd=donate&amp;id={$author['member_id']}" base="public"}' style='text-decoration:none;'>Donate</a>)
			</if>
			<else />
			Locked
			</if>
			</dd>
			</if>


انتهى التثبيت

Attached File(s)


صورة
0

Share this topic:


صفحة 1 من 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users