Simple Machines Community Forum

SMF Support => Türkçe Bölümü (Turkish) => Language Specific Support => İpuçları ve Hileler => Topic started by: FriedeKind* on February 13, 2009, 07:09:12 PM

Title: Son Mesaj & Mesaj ve Konu Tablosu V2
Post by: FriedeKind* on February 13, 2009, 07:09:12 PM
aslında bunu yaptım güzel oldu bence

benim hoşuma gitti paylaşmayacaktım ama

yapılan bir şey paylaşmak ve herkese yardımcı olmak kullanması içindir diye düşündüm ve paylaşmaya karar verdim basit bir şey aslında ama olsun

gelelim kodlarımıza :)




style.css de en sonra alttaki kodları ekleyiniz

.friedebg, tr.friedebg th, tr.friedebg td, .friedebg2, tr.friedebg2 th, tr.friedebg2 td
{
color: grey;
font-style: normal;
background: url(images/friedebg.jpg) #E9F0F6 repeat-x;
border-bottom: solid 1px #9BAEBF;
border-top: solid 1px #FFFFFF;
padding-left: 10px;
padding-right: 10px;
}
.friedebg, .friedebg a:link, .friedebg a:visited
{
font-weight: bold;
color:grey;
font-style: normal;
}

.friedebg a:hover
{
color: black;
}


.friedebg2 a:link, .friedebg2 a:visited
{
color:grey;
font-style: normal;
text-decoration: underline;
}

.friedebg2 a:hover
{
text-decoration: underline;
}


Boardİndex.template.php de bulun


// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';

// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
', $board['posts'], ' ', $txt[21], ' <br />
', $board['topics'],' ', $txt[330], '
</span></td>
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">';

/* 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 '
<b>', $txt[22], '</b>  ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
', $txt[30], ' ', $board['last_post']['time'];
echo '
</span>
</td>


yerine bu kodları ekleyiniz
// Last Post By FriedeKind
// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';

echo'</td>
<td class="friedebg2" align="left" width="22%">
<span class="smalltext">
';

    /* 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 '
<b>', $txt[22], '</b>  ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['smf88'], ' ', $board['last_post']['link'], '<a href="', $board['last_post']['href'], '"></a><br />
', $txt[30], ' ', $board['last_post']['time'];
echo '
</span></td>

<td class="friedebg2" align="right" valign="middle" width="22%">
<center><span class="largetext">', $board['posts'], '</span><span class="smalltext">', $txt[21], '</span>
|
<span class="largetext">', $board['topics'],'</span><span class="smalltext">', $txt[330], '</span></span></center>
</td>


ve son olarakta ekteki resimi imagese atınız





görünümü:
öncesi:
(http://i0902.hizliresim.com/2009/2/13/1559.jpg)




sonrası:
(http://i0902.hizliresim.com/2009/2/13/1563.jpg)



Yorumlar :)
Title: Re: Son Mesaj & Mesaj ve Konu Tablosu V2
Post by: deejayss on February 14, 2009, 11:32:00 AM
bunu zaten BuRaK abi temalarında kullanmıyor muydu ?
Title: Re: Son Mesaj & Mesaj ve Konu Tablosu V2
Post by: FriedeKind* on February 14, 2009, 11:34:53 AM
ben hiç görmedim böyle bir şey hiç bir temasında hemde
Title: Re: Son Mesaj & Mesaj ve Konu Tablosu V2
Post by: deejayss on February 14, 2009, 11:39:30 AM
pardon sen 1 tablo içinde göstermişsin BuRaK abinin temalarında ayrı ayrı tablolarda büyük boylardaymış :)
kusura bakma :(
Title: Re: Son Mesaj & Mesaj ve Konu Tablosu V2
Post by: FriedeKind* on February 14, 2009, 11:41:44 AM
sorun değil kardeşim olan bir şeyi yaptığımı düşünmüyorumda ondan sert oldum sanırım bende kusura bakma
Title: Re: Son Mesaj & Mesaj ve Konu Tablosu V2
Post by: Balaban on February 14, 2009, 12:03:31 PM
eyw kardeşim..Güzel durdu..
Title: Re: Son Mesaj & Mesaj ve Konu Tablosu V2
Post by: FriedeKind* on February 14, 2009, 12:21:29 PM
daha geliştireceğim bunları arkadaşlar
Title: Re: Son Mesaj & Mesaj ve Konu Tablosu V2
Post by: B u m u™ on February 17, 2009, 02:38:09 AM
Teşekkürler güzel mod gelişmesi dileğiyle :D
Title: Re: Son Mesaj & Mesaj ve Konu Tablosu V2
Post by: SADERR on February 28, 2009, 10:32:56 AM
bunu 2.0rc1 de nasıl yaparız kod farklılıkları var
Title: Re: Son Mesaj & Mesaj ve Konu Tablosu V2
Post by: Balaban on March 01, 2009, 03:46:25 PM
şununla değiştirmeyi deneyin .


//By FriedeKind
// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
    if (!empty($board['moderators']))
     echo '
     <div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';
    echo'</td>
    <td class="friedebg2" align="left" width="22%">
     <span class="smalltext">
   ';
   
       /* 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 '
      <b>', $txt['last_post'], '</b>  ', $txt['post_by'], ' ', $board['last_post']['member']['link'] , '<br />
      ', $txt['smf88'], ' ', $board['last_post']['link'], '<a href="', $board['last_post']['href'], '"></a><br />
      ', $txt[30], ' ', $board['last_post']['time'];
    echo '
     </span></td>
   
    <td class="friedebg2" align="right" valign="middle" width="22%">
     <center><span class="largetext">', $board['posts'], '</span><span class="smalltext">', $txt['posts'], '</span>
    |
     <span class="largetext">', $board['topics'],'</span><span class="smalltext">', $txt['topics'], '</span></span></center>
    </td>
   </tr>';

Title: Re: Son Mesaj & Mesaj ve Konu Tablosu V2
Post by: dejavu42 on March 20, 2009, 05:14:45 PM
ben bu modifasyonu uyguladım ama benim temada ters oldu usta ya iletilerle son mesajlar tam capraz oldu 2.0 rc1 kulanıyorum nasıl duzeltebiliriz acaba temamda runet adlı tema nasıl duzeltebiliriz yada bu surume uygun boyle bir uygulama varmı acaba