بابهت: [زیادکراو]چۆنیەتی دانانی شریتی دواین 10 بابەت لە سەرەوەى مەکۆ [نوێ].
بەناوى خودایی گەورە و میهرەبان
دوایی ئەوەى پێشتر بابەتێکم خستە ڕوو سەبارەت بە چۆنیەتى دانانى دواین ١٠ بابەت, پاشتر تاقیم کردەوە بینیم بەتەواوەتى کارى نەکرد بۆیە لێرە دووبارە ئەو بابەتە ئەنووسمەوە کە بێکێشە کارئەکات .... ئەم زیادکراوە بەم شێوەیە دەردەکەوێ

--------------------------------------------
هەنگاوەکان :
پەڕگەیەکى نوێی php دروستبکە بەناوى Dwatren_10_Babat.php ئەم کۆدانەى خوارەوەى بخەرەناو,پاشان پاشەکەوتى بکە.
<?php
// Zhmary Babatakan Ka Nishan Bdre
$topics_count = 10;
$query_active_topics= array(
'SELECT' => 't.id AS tid, t.poster, t.subject, t.posted AS has_posted, t.last_post, t.last_post_id, t.num_replies, t.num_views, t.closed, t.sticky, t.forum_id, t.last_poster',
'FROM' => 'topics AS t',
'JOINS' => array(
array(
'INNER JOIN' => 'forums AS f',
'ON' => 'f.id=t.forum_id'
),
array(
'LEFT JOIN' => 'forum_perms AS fp',
'ON' => '(fp.forum_id=f.id AND fp.group_id='.$forum_user['g_id'].')'
)
),
'WHERE' => '(fp.read_forum IS NULL OR fp.read_forum=1)',
'ORDER BY' => 't.last_post DESC',
'LIMIT' => $topics_count
);
$result_active = $forum_db->query_build($query_active_topics) or error(__FILE__, __LINE__);
if ($forum_db->num_rows($result_active) == 1) {
}else {
$item_num = 0;
while ($cur_set = $forum_db->fetch_assoc($result_active))
{
$item_title = array();
if (!empty($item_subject_status))
$item_title['status'] = ''.sprintf($lang_forum['Item status'], implode(' ', $item_subject_status)).'';
$item_title['link'] = '<a href="'.forum_link($forum_url['post'], $cur_set['last_post_id']).'">'.forum_htmlencode($cur_set['subject']).'</a>';
$item_body['subject']['title'] = '
'.implode(' ', $item_title).'|';
?>
<span><?php echo implode("\n\t\t\t\t", $item_body['subject'])."\n" ?></span>
<?php
}
}T.B// پەڕگەکەى سەرەوە بەشێوەى UTF-8 پاشەکەوت بکە ,پاشان پەڕگەکە بار بکە بۆ نێو بوخچەى /include/user
پاشان پەڕگەی main.tpl بکەرەوە,ئەم کۆدانەى خوارەوەى بۆ زیاد بکە لەدوایی <!-- forum_javascript -->
<div id="Aim">دواین 10 بابەت</div>
<div id="KarDo">
<marquee direction="right" onMouseOver="this.stop();" onMouseOut="this.start();" scrolldelay="110">
<!--forum_include "Dwatren_10_Babat.php"-->
</marquee>
</div>پاشان ئەم کۆدانە زیاد بکە بۆ پەڕگەى ئەو ستایلەى کە بەکاریدێنى
/**************************************
/ Style For Recent 10 topics .
**************************************/
#KarDo {
background:#e4e4ec;
background-image:-moz-linear-gradient(bottom,#2a6ab8 0,#4795cc 100%);
background-image:-ms-linear-gradient(bottom,#2a6ab8 0,#4795cc 100%);
background-image:-o-linear-gradient(bottom,#2a6ab8 0,#4795cc 100%);
background-image:-webkit-gradient(linear,0 100%,0 0,from(#2a6ab8),to(#4795cc));
background-image:-webkit-linear-gradient(bottom,#2a6ab8 0,#4795cc 100%);
background-image:linear-gradient(bottom,#2a6ab8 0,#4795cc 100%);
border-bottom:1px solid #FFCC66;
left: 0;
position: fixed;
float: right;
width: 100%;
height: 18px;
padding: 6px 0 3px 0;
z-index: 999;
text-align: center;
color: #FFCC66;
text-shadow:0 1px 1px #1F4F8A;
font-family: Tahoma, Arial;
font-size: 10pt;
font-weight: bold;
top: 0px;
}
#KarDo a {
color: #FFE6B4;
text-shadow:0 1px 1px #1F4F8A;
text-decoration: none;
}
#KarDo a:hover {
color:#FFCC66;
text-shadow:0 1px 1px #454545;
}
#Aim {
background:#e4e4ec;
background-image:-moz-linear-gradient(bottom,#4795cc 0,#2a6ab8 100%);
background-image:-ms-linear-gradient(bottom,#4795cc 0,#2a6ab8 100%);
background-image:-o-linear-gradient(bottom,#4795cc 0,#2a6ab8 100%);
background-image:-webkit-gradient(linear,0 100%,0 0,from(#4795cc),to(#2a6ab8));
background-image:-webkit-linear-gradient(bottom,#4795cc 0,#2a6ab8 100%);
background-image:linear-gradient(bottom,#4795cc 0,#2a6ab8 100%);
border-top:1px solid #FFCC66;
right: 0;
position: fixed;
width: 144px;
text-align: center;
height: 28px;
padding-left:10px;
padding-top:4px;
color: #FFE6B4;
text-shadow:0 1px 1px #1F4F8A;
font-family: Tahoma, Arial;
font-size: 12pt;
font-weight: bold;
top: 28px;
border-radius:0 0 0 33px;
}
#brd-head {
margin-top:60px;
}
/**************************************
/ Style For Recent 10 topics .
**************************************/ڕێز.
