Web sayfamız sadece phpBB 3.0.x sürümlerine destek vermektedir. Konu açmadan, ileti yazmadan önce lütfen site kuralları sayfamıza göz atınız.
/**
* @todo normalize?
*/
$fid = $forum_id;
// sadece normal konular
$sql = 'SELECT topic_title, forum_id, topic_id
FROM ' . TOPICS_TABLE . '
WHERE forum_id = '.$fid.'
AND topic_status <> ' . FORUM_LINK . '
AND topic_approved = 1
AND topic_type = ' . POST_NORMAL . '
ORDER BY topic_time DESC';
$result = $db->sql_query_limit($sql, 5);
while( ($row = $db->sql_fetchrow($result)) && ($row['topic_title']) )
{
// auto auth
if (($auth->acl_get('f_read', $row['forum_id'])) || ($row['forum_id'] == '0'))
{
$template->assign_block_vars('other_topic', array(
'TITLE' => censor_text($row['topic_title']),
'U_VIEW_TOPIC' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id'] . '&t=' . $row['topic_id']),
));
}
}
$db->sql_freeresult($result);
<!-- INCLUDE jumpbox.html -->
<!-- BEGIN other_topic -->
<a href="{other_topic.U_VIEW_TOPIC}">{other_topic.TITLE}</a><br />
<!-- END other_topic -->
AND topic_id <> '.$topic_id.'
/**
* @todo normalize?
*/
$fid = $forum_id;
// sadece normal konular
$sql = 'SELECT topic_title, forum_id, topic_id
FROM ' . TOPICS_TABLE . '
WHERE forum_id = '.$fid.'
AND topic_status <> ' . FORUM_LINK . '
AND topic_approved = 1
AND topic_type = ' . POST_NORMAL . '
AND topic_id <> '.$topic_id.'
ORDER BY topic_time DESC';
$result = $db->sql_query_limit($sql, 20);
while( ($row = $db->sql_fetchrow($result)) && ($row['topic_title']) )
{
// auto auth
if (($auth->acl_get('f_read', $row['forum_id'])) || ($row['forum_id'] == '0'))
{
$template->assign_block_vars('other_topic', array(
'TITLE' => censor_text($row['topic_title']),
'U_VIEW_TOPIC' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id'] . '&t=' . $row['topic_id']),
));
}
}
$db->sql_freeresult($result);
<!-- INCLUDE jumpbox.html -->
<div class="forumbg" style="width:100%; margin:0 auto">
<span class="corners-top"><span></span></span>
<div style="color: #FFFFFF; height: 20px; width:100%">
<b> • <a style="color:#FFFFFF" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></b></div>
<table border="0" class="bg1" width="100%">
<tr>
<td ><!-- BEGIN other_topic -->
<div style="border-bottom:1px dotted #CCCCCC; padding:3px"><a href="{other_topic.U_VIEW_TOPIC}">{other_topic.TITLE}</a></div>
<!-- END other_topic --></td>
</tr>
</table>
<span class="corners-bottom"><span></span></span>
</div>
Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir