News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Son Mesaj & Mesaj ve Konu Tablosu V2

Started by FriedeKind*, February 13, 2009, 07:09:12 PM

Previous topic - Next topic

FriedeKind*

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:





sonrası:




Yorumlar :)

deejayss

bunu zaten BuRaK abi temalarında kullanmıyor muydu ?
hey gidi günler hey.

FriedeKind*

ben hiç görmedim böyle bir şey hiç bir temasında hemde

deejayss

pardon sen 1 tablo içinde göstermişsin BuRaK abinin temalarında ayrı ayrı tablolarda büyük boylardaymış :)
kusura bakma :(
hey gidi günler hey.

FriedeKind*

sorun değil kardeşim olan bir şeyi yaptığımı düşünmüyorumda ondan sert oldum sanırım bende kusura bakma

Balaban

.

FriedeKind*

daha geliştireceğim bunları arkadaşlar

B u m u™

Teşekkürler güzel mod gelişmesi dileğiyle :D

SADERR

bunu 2.0rc1 de nasıl yaparız kod farklılıkları var

Balaban

ş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>';

.

dejavu42

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

Advertisement: