Arkadaşım Bu Yazı SmfGrup Adlı Smf Sitesinden Alıntıdır
Buyur
Bunu yapmadan önce admin / kulanılan tema / ana sayfada görükecez mesaj sayısına 10 yazın /
Temanızın Boardindexi acıyoruz ;

Buradan
// This is the "Recent Posts"

Buraya Kadar Silip (burası kalsın );

// Show information about events, birthdays, and holidays on the calendar.
Bunu Ekliyoruz ;

	// This is the "Recent Posts" bar. Allah Allah



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



{



echo '



<tr>



<td class="catbg" colspan="2">', $txt[214], '</td>



</tr>



<tr>



<td class="windowbg" width="20" valign="middle" align="center">



<a href="', $scripturl, '?action=recent"><img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" /></a>



</td>



<td class="windowbg3">';







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



<b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>



<div class="smalltext">



', $txt[234], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt[235], ' (', $context['latest_post']['time'], ' <br />



</div>';



}



// Show lots of posts.



elseif (!empty($context['latest_posts']))



{



echo '



<table border="0" width="100%" cellspacing="1" cellpadding="0" class="bordercolor">



 <tr>



<th class="titlebg" align="left" width="48%">Son Mesaj</th>



<th class="titlebg" align="left" width="12%">Yazılan</th>



<th class="titlebg" align="left" width="12%">Yazan </th>



<th class="titlebg" align="left" width="14%">Tarih</th>







 </tr>';











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







<tr>







<td class="windowbg2" valign="middle" width="42%"><font style="font-size: 9pt">', $post['link'], '</font></td>



<td class="windowbg2" valign="middle" width="25%"><font style="font-size: 9pt">', $post['board']['link'], '</font></td>



<td class="windowbg2" valign="middle" width="12%"><font style="font-size: 9pt">', $post['poster']['link'], '</font></td>



<td class="windowbg2" valign="middle" width="21%"><font style="font-size: 9pt">', $post['time'], '</font></td>







</tr>';



echo '



</table>';



}



echo '



</td>



</tr>';



         }



//Smfgrup.com
Kolay Gelsin Baktım Çözememişsin Ben Yardımcı Olayım Dedim