News:

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

Main Menu

Tema Nasıl Editlenir - Ufak Taktikler - Defaultu Editleyelim

Started by #Serseri, February 26, 2007, 02:20:28 AM

Previous topic - Next topic

BRAVE_01

S e r s e r i eline sağlık çok güzel taktikler..yalnız aşağıdaki gibi default temaya konu msj sayısı falan diye nasıl yazacağız.


Yağız...

Quote from: Turklord
Vbulletin gibi göstermek için.
Resimler açıklayıcıdır.

///////////////////////////////////////////////////////////////////


Default temadaki
boardindex.template.php yi açın
bul
<div class="catbg', $category['new'] ? '2' : '', '" style="padding: 5px 5px 5px 10px;">';

üstüne ekle
        <table width="100%" cellspacing="0" cellpadding="0">


bul
// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 1px;">';



de?i?tir

// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
echo '
<table class="bordercolor" border="0" width="100%" cellspacing="1" cellpadding="4" >
<tr>
<td class="titlebg">&nbsp;</td>
<td class="titlebg" style="text-align:left;">', $txt[20], '</td>
<td class="titlebg"><center>', $txt[22], '</center></td>
<td class="titlebg"><center>', $txt[330], '</center></td>
<td class="titlebg"><center>', $txt[21], '</center></td>
</tr>';



bul
// 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>
</tr>';
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}

echo '
<tr>
<td colspan="3" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">
<span class="smalltext"><b>', $txt['parent_boards'], '</b>: ', implode(', ', $children), '</span>
</td>
</tr>';
}


de?i?tir


// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                                                $children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : '' . $child['link'];
}

echo '
<table style="15px;"width="100%" cellspacing="0" cellpadding="0"border="0">
<tr>
<br><i>', $txt['parent_boards'], ':</i><td class="middletext" valign="middle"align="center">';
                        $child_counter = 0;

if(empty($settings['child_boards_rows']))
{
echo '
</td>
<td class="middletext" valign="top">';

for(; $child_counter < ceil(count($children)/2); $child_counter++)
echo $children[$child_counter], '<br/>';
}

echo '
</td>
<td class="middletext" valign="top">';
for(; $child_counter < count($children); $child_counter++)
echo $children[$child_counter], '<br/>';
echo '
</td>
</tr>
</table>';
}
// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" width="27%">
<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 '
<img align="left" src="', $settings['images_url'], '/post/xx.gif"/>
                                                <font style="font-size:8pt">', $txt['smf88'], ' <b>', $board['last_post']['link'], '</b></font><br />
                                                ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />                                           
                                                <div align="right"> ', $txt[30], ' ', $board['last_post']['time'], '<a href="', $board['last_post']['href'], '">
                                               </a></div>' ;
echo '
</span>
</td>
        <td class="windowbg2" valign="middle" align="center" width="10%">', $board['topics'], '</td>
                <td class="windowbg" valign="middle" align="center" width="10%">', $board['posts'], '</td>
</tr>';






antitezz

Quote from: S e r s e r i on February 26, 2007, 02:27:47 AM
Düzelt - alıntı - Sil Yerine Sadece Buton Koyalım

Normalde aşağıdaki resmi



Alttaki hale getirmek için



display.template.php  aç

Alttaki Kodu Bul

// These are some cache image buttons we may want.
$reply_button = create_button('quote.gif', 145, 'smf240', 'align="middle"');
$modify_button = create_button('modify.gif', 66, 17, 'align="middle"');
$remove_button = create_button('delete.gif', 121, 31, 'align="middle"');
$split_button = create_button('split.gif', 'smf251', 'smf251', 'align="middle"');


değiştir

// These are some cache image buttons we may want.
$reply_button = create_button('quote.gif', 145);
$modify_button = create_button('modify.gif', 66);
$remove_button = create_button('delete.gif', 121);
$split_button = create_button('split.gif', 'smf251');


burda geçen resimleride verseymişsin güzel olacakmış.. eline sağlık..

bkarakoc

Alıntı yapılan kodlar hangi satırda, dosyanın neresinde bunları da alıntı yaparken printscreen yaparsanız antitezz in de dediğgibi daha iyi olacak. Emeğinize sağlık.
TEKNOLOJİ VE TASARIM DERSİ
hxxp:www.teknolojitasarim.com [nonactive]
hxxp:www.teknolojitasarim.com/ [nonactive]


mcMiSYoN

Herşey için teşekkürler.Verdiğin bilgilerden de yararlanarak bir tema aditledim.

hcm_erhan

Temanın adını değiştirmen ,  o temayı yapana saygısızlık olmaz mı sence?

JeeFo

evet bunun gibi paylasımlar bu qünlerde çok işi yarıyor
inşallah devamı gelir :)



NOB

forumumda sadece index.php ye geldiğimde sola dayalı ama diğer bölümlere geldiğimde forum ortalanmış durumda.

bu sorunu nasıl çözebilirim.

yardımcı olabilecek arkadaşlara şimdiden teşekkür ederim.

#Serseri


emirce

Merhaba arkadaşlar aşağıdaki bölüme logo nasıl koyarım sitemin logosounu?

[nofollow]

teşekkür ederim

Evo™


oguzhanali

bişi sorcam satece tema dosyaları ile oynayan modları temana eklemek için mutlaka sahibinden izin almak gerekiyormu?

#Serseri

Quote from: oguzhanali on August 10, 2007, 08:19:43 AM
bişi sorcam satece tema dosyaları ile oynayan modları temana eklemek için mutlaka sahibinden izin almak gerekiyormu?

Kendin Kullanacaksan Hayır ;)

oguzhanali

hyr tek kendim kullanmıcam paylaşacam bisakıncası olurmu? olursa mecburen ya kullanmicas yada izin alacas

o2gr

yukarıda forum ismi ve smf logosu olan yeri kaldırıp oraya kocamn bi resim nasıl konulur?
my playground
aquila non captat muscas..

lemanyak

Dostum hani 12345 varya o rayı yaptım fakat sadece ordaki sayılar istediğim renk oldu :S diğer alan aynı renkte hala ben istıorum ki mesaj yazınca da mesaj alanıda böel renkli olsun warmı onun için bişli
Hayat Her Seye Rağmen Güzeldir...

adu


Advertisement: