19-01-2008, 08:07
رقم المشاركة :
1 (permalink )
هاك احصائيات الاقسام للاصدار 2.3
هاك احصائيات الاقسام للاصدار 2.3
مميزات هذا الاصدار توافق مع هاك التنصيب الشامل
اضافه امكانيه تفعيل او تعطيل الهاك من لوحه التحكم . صورة للهاك صورة للوحة التحكم طريقة التركيب: ارفع جميع الملفات الى مسارها وأذهب إلى Universal Mod Installer وقم بتثبيت الهاك أفتح الملف sources/action_public/forums.php وأبحث عن: اقتباس
if ( ! $this->pinned_topic_count and $this->announce_out )
{
$this->announce_out .= $this->ipsclass->compiled_templates['skin_forum']->render_pinned_end();
}
اضف بعدها اقتباس
foreach( $topic_array as $tid => $topic )
{
$tids .= $topic['tid'].",";
$this->forum['total_views'] += $topic_array[$tid]['views'];
}
$this->forum['tids'] = preg_replace("/,$/", "", $tids);
$this->output = str_replace("<!--IBF.FORUM_QUICK_STATS-- >", $this->forum_quick_stats( $this->ipsclass->forums->forums_format_lastinfo( $this->forum ) ), $this->output);
ابحث عن فى اخر الملف عن أضف قبلها: اقتباس
/*-------------------------------------------------------------------------*/
//(AM23) Forum Quick Stats
/*-------------------------------------------------------------------------*/
function forum_quick_stats($data=array())
{
$data['stats_date'] = $this->ipsclass->get_date( time(), 'SHORT' );
$data['total_views'] = $this->ipsclass->do_number_format( $data['total_views'] );
$dif = time() - $this->forum['last_post'];
$year = 0; $mon = 0; $day = 0; $hour = 0; $min = 0;
while( $dif >= 86400 ){ $day++; $dif -= 86400; }
while( $dif >= 3600 ){ $hour++; $dif -= 3600; }
while( $dif >= 60 ){ $min++; $dif -= 60; }
$time_pass = "{$day} يوم {$hour} ساعه {$min} دقيقه";
$data['last_post_passed'] = sprintf($this->ipsclass->lang['fq_passed'], $time_pass);
$data['top_topic'] = 0;
$this->ipsclass->DB->query( "SELECT COUNT(*) as tcnt, starter_id, starter_name FROM ".SQL_PREFIX."topics WHERE forum_id=".$this->forum['id']. " GROUP BY starter_id ORDER BY tcnt DESC LIMIT 1" );
$r = $this->ipsclass->DB->fetch_row();
$data['top_starter'] = $this->ipsclass->make_profile_link( $r['starter_name'], $r['starter_id'] );
$data['top_topic'] = $r['tcnt'];
$data['top_topic_p'] = $data['topics'] ? round($r['tcnt']/$data['topics']*100,2) : 0;
$data['top_post'] = 0;
$this->ipsclass->DB->query( "SELECT COUNT(*) as pcnt, author_id, author_name FROM ".SQL_PREFIX."posts WHERE topic_id IN (".$this->forum['tids'].") GROUP BY author_id ORDER BY pcnt DESC LIMIT 1" );
$row = $this->ipsclass->DB->fetch_row();
$data['top_poster'] = $this->ipsclass->make_profile_link( $row['author_name'], $row['author_id'] );
$data['top_post'] = $row['pcnt'];
$data['top_post_p'] = $data['posts'] ? round($row['pcnt']/$data['posts']*100,2) : round($row['pcnt']/$row['pcnt']*100,2);
return $this->ipsclass->compiled_templates['skin_forum']->forum_quick_stats( $data );
}
اقتباس
أحفظ الملف ثم أرفعه مرة آخرى . إذهب إلى لوحة التحكم ومنها
إلى LOOK & FEEL (المظهر والقوالب )
من امام الأستايل انقر على Edit Template HTML ( تحرير قوالب HTML )
Board Index
حرر القالب PageTop
أضف في أعلاه اقتباس
<if="$this->ipsclass->vars['forum_quick_stats'] == 1 ">
<!--IBF.FORUM_QUICK_STATS-- >
</if >
احفظ القالب وبكده يكون الهاك ركب حمل المرفقات