arkadaşlar admin panelinden
Forum ana sayfasında gösterilecek son ileti sayısı:: 10
yapmama rağmen 8 tane görünüyor.
bunun sebebi nedir?
son 2 gunun mesajlarını alıyor. yani 10 tane değil. son 2 gun içerisindeki mesajları alıyor
konuya bi el atsa ustalar. nerden kaynaklanıyor. şimdide 3 mesaja düştü.
son 2 yada 1 gunun mesajlarını alıyor
Lainaus käyttäjältä: Wolt - syyskuu 09, 2011, 08:02:35 AP
Allah rızası için biri yardım etsin arkadaşlar
Resmi yeniler misin?
Ekde hocam
kullandığın modun linkini alabilir miyim?
Lainaus käyttäjältä: ємяє - syyskuu 09, 2011, 08:26:31 AP
kullandığın modun linkini alabilir miyim?
hocam paket olarak değil manuel olarak kurmuştum bu modu http://www.smf.gen.tr/smf/index.php?topic=63888.0
lakin kaldırmama rağmen sorun devam etti
analamadığım son 24 saatteki konuları nasıl alır. yani bunun admin panelinde bir ayarı falanmı var
kodları buraya alırsan rahat edicem. Kodları göremiyorum üye olmamı istiyor.
Lainaus käyttäjältä: D'ssConnecTed - helmikuu 01, 2010, 01:25:52 IP

Boardindex.template.php de
bul ve sil:
// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<h4 class="titlebg"><span class="left"></span>
<a href="', $scripturl, '?action=recent"><img class="icon" src="', $settings['images_url'], '/post/xx.gif" alt="', $txt['recent_posts'], '" /></a>
<span>', $txt['recent_posts'], '</span>
</h4>
<div class="hslice" id="recent_posts_content">
<div class="entry-title" style="display: none;">', $context['forum_name_html_safe'], ' - ', $txt['recent_posts'], '</div>
<div class="entry-content" style="display: none;">
<a rel="feedurl" href="', $scripturl, '?action=.xml;type=webslice">', $txt['subscribe_webslice'], '</a>
</div>';
// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<strong><a href="', $scripturl, '?action=recent">', $txt['recent_posts'], '</a></strong>
<p id="infocenter_onepost" class="middletext">
', $txt['recent_view'], ' "', $context['latest_post']['link'], '" ', $txt['recent_updated'], ' (', $context['latest_post']['time'], ')<br />
</p>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<dl id="ic_recentposts" class="middletext">';
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<dt><strong>', $post['link'], '</strong> ', $txt['by'], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</dt>
<dd>', $post['time'], '</dd>';
echo '
</dl>';
}
echo '
</div>';
}
Bul ve sil :
// Show statistical style information...
if ($settings['show_stats_index'])
{
echo '
<h4 class="titlebg"><span class="left"></span>
<a href="', $scripturl, '?action=stats"><img class="icon" src="', $settings['images_url'], '/icons/info.gif" alt="', $txt['forum_stats'], '" /></a>
<span>', $txt['forum_stats'], '</span>
</h4>
<p>
', $context['common_stats']['total_posts'], ' ', $txt['posts_made'], ' ', $txt['in'], ' ', $context['common_stats']['total_topics'], ' ', $txt['topics'], ' ', $txt['by'], ' ', $context['common_stats']['total_members'], ' ', $txt['members'], '. ', !empty($settings['show_latest_member']) ? $txt['latest_member'] . ': <strong> ' . $context['common_stats']['latest_member']['link'] . '</strong>' : '', '<br />
', (!empty($context['latest_post']) ? $txt['latest_post'] . ': <strong>"' . $context['latest_post']['link'] . '"</strong> ( ' . $context['latest_post']['time'] . ' )<br />' : ''), '
<a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a>', $context['show_stats'] ? '<br />
<a href="' . $scripturl . '?action=stats">' . $txt['more_stats'] . '</a>' : '', '
</p>';
}
Bul :
// Here's where the "Info Center" starts...
echo '
<span class="clear upperframe"><span></span></span>
<div class="roundframe"><div class="innerframe">
<h3 class="catbg"><span class="left"></span>
<img class="icon" id="upshrink_ic" src="', $settings['images_url'], '/collapse.gif" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />
', sprintf($txt['info_center_title'], $context['forum_name_html_safe']), '
</h3>
<div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>';
Altına ekle :
// Son 10 mesaj D'ssConnecTed
echo '
<h4 class="titlebg"><span class="left"></span>
<a href="', $scripturl, '?action=recent"><img class="icon" src="', $settings['images_url'], '/post/xx.gif" alt="', $txt['recent_posts'], '" /></a>
<span>', $txt['recent_posts'], '</span>
</h4>
<table cellspacing="1" width="100%" cellpadding="0" border="0">';
$ino=1;foreach ($context['latest_posts'] as $sonm){
echo '<tr>
<td class="windowbg2" valign="top" width="32%"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext"> ', $sonm['board']['link'], '</span></td>
<td class="windowbg2" valign="top" width="28%"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><a href="',$sonm['href'],'"><span class="smalltext"> ', $sonm['short_subject'], '</span></a></td>
<td class="windowbg2" valign="top" width="15%"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext"> ', $sonm['poster']['link'],'</span></td>
<td class="windowbg2" valign="top" width="18%"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext"> ', $sonm['time'], '</span></td>
</tr>';$ino++;}
echo '</table><br />';
// Son 10 mesaj D'ssConnecTed
// günlük üye konu mesaj sayıları D'ssConnecTed
global $db_prefix, $db_connection;
$sorgu = "SELECT * FROM {$db_prefix}log_activity ORDER BY date DESC Limit 1";
$bugunuye = mysql_query($sorgu, $db_connection) or die(mysql_error());
$contex['sonuyesayisi'] = mysql_fetch_array($bugunuye);
// İstatistikler D'issConnecTed
echo'<h4 class="titlebg"><span class="left"></span>
<a href="', $scripturl, '?action=stats"><img class="icon" src="', $settings['images_url'], '/icons/info.gif" alt="', $txt['forum_stats'], '" /></a>
<span><a href="' . $scripturl . '?action=stats" title="Daha fazla istatistik göster">', $txt['forum_stats'], ' </a></span>
</h4>
<table width="100%">
<tr>
<td width="25%">Son üyemiz: <strong>' ,$context['common_stats']['latest_member']['link'], ' </strong><br /> Aramıza Hoşgeldiniz.<br />
Atılan son mesaj: ' ,$context['latest_post']['link'], '
</td>
<td width="28%">Sitemizde Toplam <strong>', $context['common_stats']['total_topics'], '</strong> Konu açıldı.<br />
Bu konulara Toplam <strong>', $context['common_stats']['total_posts'], '</strong> Yorum yapıldı. <br />
Sitemize bugün <strong>', $contex['sonuyesayisi']['topics'], '</strong> konu ve <strong>', $contex['sonuyesayisi']['posts'], '</strong> mesaj yazıldı..
</td>
<td width="25%">Bugün : <strong>' , $contex['sonuyesayisi']['registers'] , '</strong> kişi aramıza katıldı.<br />
<br />
Toplam : <strong>', $context['common_stats']['total_members'], '</strong> kişilik bir aileyiz.</td>
<td width="22%">Şuanda <strong>', $context['num_guests'],'</strong> misafirimiz <br />
ve Şuanda online <strong>', $context['num_users_online'],'</strong> Üyemiz var.<br />
<span style="text-align:right;"><a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a></span>
</td>
</tr>
</table><br />';
// İstatistikler D'issConnecTed
ekte bulunan zip içindeki resimlelri de temanız images klasörüne atınız..
hepsi bu kadar .
örnek: www.kuaforum.org/forum/
1.1.11 için sadece son iletiler kısmı :
// Son 10 mesaj D'ssConnecTed
echo '<div>
<table cellspacing="1" width="100%" cellpadding="0" border="0">';
echo '<tr class="catbg"><td colspan="5" height="25px"><a href="', $scripturl, '?action=recent">
<img class="icon" src="', $settings['images_url'], '/icons/info.gif" width="20px" height="20px" alt="', $txt['recent_posts'], '" /></a>
<span>Son İletiler</span></td></tr>
<tr class="titlebg">
<td valign="top" width="32%"><span class="smalltext">Konu </span></td>
<td valign="top" width="28%"><span class="smalltext">Mesaj </span></td>
<td valign="top" width="15%"><span class="smalltext">Gönderen </span></td>
<td valign="top" width="5%"><span class="smalltext">Hit </span></td>
<td valign="top" width="20%"><span class="smalltext">Tarih </span></td>
</tr>';
$ino=1;foreach ($context['latest_posts'] as $sonm){
echo '<tr>
<td class="windowbg2" valign="top" width="32%"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext"> ', $sonm['board']['link'], '</span></td>
<td class="windowbg2" valign="top" width="28%"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><a href="',$sonm['href'],'"><span class="smalltext"> ', $sonm['short_subject'], '</span></a></td>
<td class="windowbg2" valign="top" width="15%"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext"> ', $sonm['poster']['link'],'</span></td>
<td class="windowbg2" valign="top" width="5%"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext"> ', $sonm['ivan_hit'], '</span></td>
<td class="windowbg2" valign="top" width="20%"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext"> ', $sonm['time'], '</span></td>
</tr>';$ino++;}
echo '</table></div><br />';
// Son 10 mesaj D'ssConnecTed
Hocam bu hatanın tema ile alakası yok galiba
çünkü hangi temayı denersem deneyeyim aynı hatayı alıyorum.