Simple Machines Community Forum

SMF Support => Türkçe Bölümü (Turkish) => Language Specific Support => Özelleştirme => Topic started by: yenidagci on September 08, 2009, 09:56:31 AM

Title: Tablolarım Bozuldu!
Post by: yenidagci on September 08, 2009, 09:56:31 AM
Buradaki linkte   (http://www.simplemachines.org/community/index.php?topic=153671.msg1096774#msg1096774)Yağız abinin vermiş olduğu bir kodu kullanarak düzenlemeye çalıştım ama görüntüdeki gibi oldu. Yardımcı olabilirmisiniz?

(https://www.simplemachines.org/community/index.php?action=dlattach;topic=335398.0;attach=114780;image)
Title: Re: Tablolarım Bozuldu!
Post by: husmen73 (Gulhin) on September 08, 2009, 11:55:39 AM
Yağız abin hangi kodu verdi sana?
Title: Re: Tablolarım Bozuldu!
Post by: yenidagci on September 09, 2009, 06:59:56 AM
Bu mesajındaki kodları kullanmıştım. 2 yıl önceki bir konu..

Quote from: Yağız... on May 18, 2007, 05:59:35 PM
Quote from: Turklord
Vbulletin gibi göstermek için.
Resimler açıklayıcıdır.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg175.imageshack.us%2Fimg175%2F2953%2Fanard9.gif&hash=5792fe400d297c8e20afaa0ad62cc0368f6c84ea) (http://imageshack.us)
///////////////////////////////////////////////////////////////////
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg139.imageshack.us%2Fimg139%2F2213%2Fana2jv1.gif&hash=7aaae7116e34b75cd3f26904e32d3b0a8270f321) (http://imageshack.us)

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





Title: Re: Tablolarım Bozuldu!
Post by: !!kaos!! on September 09, 2009, 10:03:38 AM
Ektekini denermisin
Title: Re: Tablolarım Bozuldu!
Post by: yenidagci on September 10, 2009, 05:13:11 AM
Quote from: !!kaos!! on September 09, 2009, 10:03:38 AM
Ektekini denermisin

Ben tabloların orjinal halde değil, resimdeki halde olmasını istiyorum.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg139.imageshack.us%2Fimg139%2F2213%2Fana2jv1.gif&hash=7aaae7116e34b75cd3f26904e32d3b0a8270f321)
Title: Re: Tablolarım Bozuldu!
Post by: husmen73 (Gulhin) on September 10, 2009, 05:59:29 AM
Sitende Modifikasyon yüklü değilse sıfır Boardindex.template i yükleyiver. Mod varsa, hangileri var?
Title: Re: Tablolarım Bozuldu!
Post by: yenidagci on September 10, 2009, 06:09:14 AM
Quote from: husmen73 (Gulhin) on September 10, 2009, 05:59:29 AM
Sitende Modifikasyon yüklü değilse sıfır Boardindex.template i yükleyiver. Mod varsa, hangileri var?

Sinan abi ben resimdeki gibi olsun tablolar istiyorum. Verilen kodda bir yanlışlık var galiba. Ona bi bakabilirmisiniz.
Title: Re: Tablolarım Bozuldu!
Post by: husmen73 (Gulhin) on September 12, 2009, 04:41:18 AM
Modifikasyon var mı site'nde? (Bana Sinan abi diyorsan ben Sinan değilim, Hüseyin.)
Title: Re: Tablolarım Bozuldu!
Post by: yenidagci on January 01, 2010, 02:03:17 AM
Quote from: husmen73 (Gulhin) on September 12, 2009, 04:41:18 AM
Modifikasyon var mı site'nde? (Bana Sinan abi diyorsan ben Sinan değilim, Hüseyin.)

Modifikasyon varda sıfır bi boardindexe kuralım.
Title: Re: Tablolarım Bozuldu!
Post by: yenidagci on January 02, 2010, 05:29:09 AM
Kodlar yanlış çözemedim.