Gönderen Konu: Ileti Konu sayilarini son iletilerde göstermek  (Okunma sayısı 609 defa)

Çevrimdışı ugur

  • Trade Sayısı: (0)
  • Yeni Üye
  • *
  • İleti: 26
  • Karma +1/-0
  • Cinsiyet: Bay
    • Profili Görüntüle
Ileti Konu sayilarini son iletilerde göstermek
« : 02 Eyl 2013, 08:28:27 »


./Themes/default/BoardIndex.template.php
Bul:
Kod: [Seç]
// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="stats windowbg">
<p>', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' <br />
', $board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . $txt['board_topics'], '
</p>
</td>
<td class="lastpost">';

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<p><strong>', $txt['last_post'], '</strong>  ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['in'], ' ', $board['last_post']['link'], '<br />
', $txt['on'], ' ', $board['last_post']['time'],'
</p>';
echo '
</td>
</tr>';

Değiştir:

Kod: [Seç]
// Show some basic information about the number of posts, etc.
echo '
<td class="lastpost">';

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<p><strong>', $txt['last_post'], '</strong>  : ', $board['last_post']['link'] , '<br />
', $txt['by'], ' <b>', $board['last_post']['member']['link'], ' </b> ', $txt['on'], ' ', $board['last_post']['time'], '<br />

</p>';
echo '
<div style="padding-top: 3px;"><table class="tbody" width="100%" class="tborder"><tr valign="bottom"><td align="center" class="stats windowbg">', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], '
</td>';
if (!empty($board['last_post']['id']))
echo '
<td align="center" class="stats windowbg">', $board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . $txt['board_topics'], '

</td>';
echo ' </tr></table></div>
</td></tr>';
« Son Düzenleme: 03 Eyl 2013, 13:19:41 Gönderen: orhan »