10 Şubat 2008 Pazar

Basit Top 10

Merhaba Arkadaşlar Basit Top 10 Üzerinde Biraz Ugrastım Ve Bu Görüntüyü Elde Ettim..

Canlı Örneği TurkSMF



Resmi Büyük Grmek İçin Tıklayın http://www.system-tr.com/resim/basittop10.png


Bu Görüntüyü Elde Etmek için Temanızın Boardindex.template.php Dosyasında Bul:





Kod:
// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '

', $txt[214], '



', $txt[214], '

';

// 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 '
', $txt[214], '

', $txt[234], ' "', $context['latest_post']['link'], '" ', $txt[235], ' (', $context['latest_post']['time'], ')

';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
';

/* 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 '



';
echo '
', $post['link'], ' ', $txt[525], ' ', $post['poster']['link'], ' (', $post['board']['link'], ') ', $post['time'], '
';
}
echo '

';
}


Bununla Değiştirin:

Kod:
// This is the "Recent Posts" bar.


if (!empty($settings['number_recent_posts']))
{
echo '



', $txt[214], '

';

// 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 '
', $txt[214], '

', $txt[234], ' "', $context['latest_post']['link'], '" ', $txt[235], ' (', $context['latest_post']['time'], ')

';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '






';
echo '













';
echo '
' , $txt[747] , '

' , $txt[748] , '
' , $txt[749] , '
' , $txt[750] , '


';

/* 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 '

| ', $post['poster']['link'],'
| ', $post['board']['link'], '
| ', $post['short_subject'], '
| ', $post['time'], '
';
}
echo '

';
}


Alıntı Değil Alın Teridir Gülümseme

Hiç yorum yok: