bolubeyi
03.Ağustos.2014, 11:26
https://imageshack.com/a/img594/9008/x6im.png
Sıfır default temaya göre anlatıyorum. Editli ya da default harici temalarda anlatım değişiklik arz edebilir.
şuradaki (https://www.smfdestek.com/index.php?topic=136.0) Aligned_and_Bilateral_Child_Boards modunu kurun.
Geçici demo: Spina Bifida - Forum (https://www.spinabifidaturkey.com/smf/index.php?action=forum)
index.css
Bul:
Kod:
fieldset
{
border: 1px solid #c4c4c4;
padding: 1em;
margin: 0 0 0.5em 0;
}
Değiştir:
Kod:
fieldset
{
border: 1px solid #ff0000;
padding: 1em;
margin: 0 0 0.5em 0;
border-radius: 5px;
}
BoardIndex.template.php
Bul:
Kod:
{
// 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'] = '' . $child['name'] . ' (https://webmaster.bbs.tr/' . $child['href'] . ')';
$children[] = $child['new'] ? 'https://webmaster.bbs.tr/' . $settings['images_url'] . '/new_some.png' . $child['link'] . '' : 'https://webmaster.bbs.tr/' . $settings['images_url'] . '/new_none.png' . $child['link'];
}
echo '
';
$child_counter = 0;
if(empty($settings['child_boards_rows']))
{
echo '
';
for(; $child_counter < ceil(count($children)/2); $child_counter++)
echo $children[$child_counter], '
';
}
echo '
';
for(; $child_counter < count($children); $child_counter++)
echo $children[$child_counter], '
';
echo '
';
}
}
Değiştir:
Kod:
{
// 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'] = '' . $child['name'] . ' (https://webmaster.bbs.tr/' . $child['href'] . ')';
$children[] = $child['new'] ? 'https://webmaster.bbs.tr/' . $settings['images_url'] . '/new_some.png' . $child['link'] . '' : 'https://webmaster.bbs.tr/' . $settings['images_url'] . '/new_none.png' . $child['link'];
}
echo '
' . $txt['alt_bolumler'], '
';
$child_counter = 0;
if(empty($settings['child_boards_rows']))
{
echo '
';
for(; $child_counter < ceil(count($children)/2); $child_counter++)
echo $children[$child_counter], '
';
}
echo '
';
for(; $child_counter < count($children); $child_counter++)
echo $children[$child_counter], '
';
echo '
';
}
}
Modifications.english.php
Bul:
Kod:
?>
Değiştir:
Kod:
$txt['alt_bolumler'] = 'Alt Bölümler';
?>
Çerçeve rengini kırmızı yerine farklı renkte yapmak için aşağıdaki kodda görülen ff0000 değerini index.css dosyanızdan değiştirebilirsiniz.
Kod:
fieldset
{
border: 1px solid #ff0000;
padding: 1em;
margin: 0 0 0.5em 0;
border-radius: 5px;
}
Kaynak: Alt bölümleri çerçeve içerisine almak (https://www.webmasterlord.net/2224-alt-bolumleri-cerceve-icerisine-almak-konusu.html)
Sıfır default temaya göre anlatıyorum. Editli ya da default harici temalarda anlatım değişiklik arz edebilir.
şuradaki (https://www.smfdestek.com/index.php?topic=136.0) Aligned_and_Bilateral_Child_Boards modunu kurun.
Geçici demo: Spina Bifida - Forum (https://www.spinabifidaturkey.com/smf/index.php?action=forum)
index.css
Bul:
Kod:
fieldset
{
border: 1px solid #c4c4c4;
padding: 1em;
margin: 0 0 0.5em 0;
}
Değiştir:
Kod:
fieldset
{
border: 1px solid #ff0000;
padding: 1em;
margin: 0 0 0.5em 0;
border-radius: 5px;
}
BoardIndex.template.php
Bul:
Kod:
{
// 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'] = '' . $child['name'] . ' (https://webmaster.bbs.tr/' . $child['href'] . ')';
$children[] = $child['new'] ? 'https://webmaster.bbs.tr/' . $settings['images_url'] . '/new_some.png' . $child['link'] . '' : 'https://webmaster.bbs.tr/' . $settings['images_url'] . '/new_none.png' . $child['link'];
}
echo '
';
$child_counter = 0;
if(empty($settings['child_boards_rows']))
{
echo '
';
for(; $child_counter < ceil(count($children)/2); $child_counter++)
echo $children[$child_counter], '
';
}
echo '
';
for(; $child_counter < count($children); $child_counter++)
echo $children[$child_counter], '
';
echo '
';
}
}
Değiştir:
Kod:
{
// 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'] = '' . $child['name'] . ' (https://webmaster.bbs.tr/' . $child['href'] . ')';
$children[] = $child['new'] ? 'https://webmaster.bbs.tr/' . $settings['images_url'] . '/new_some.png' . $child['link'] . '' : 'https://webmaster.bbs.tr/' . $settings['images_url'] . '/new_none.png' . $child['link'];
}
echo '
' . $txt['alt_bolumler'], '
';
$child_counter = 0;
if(empty($settings['child_boards_rows']))
{
echo '
';
for(; $child_counter < ceil(count($children)/2); $child_counter++)
echo $children[$child_counter], '
';
}
echo '
';
for(; $child_counter < count($children); $child_counter++)
echo $children[$child_counter], '
';
echo '
';
}
}
Modifications.english.php
Bul:
Kod:
?>
Değiştir:
Kod:
$txt['alt_bolumler'] = 'Alt Bölümler';
?>
Çerçeve rengini kırmızı yerine farklı renkte yapmak için aşağıdaki kodda görülen ff0000 değerini index.css dosyanızdan değiştirebilirsiniz.
Kod:
fieldset
{
border: 1px solid #ff0000;
padding: 1em;
margin: 0 0 0.5em 0;
border-radius: 5px;
}
Kaynak: Alt bölümleri çerçeve içerisine almak (https://www.webmasterlord.net/2224-alt-bolumleri-cerceve-icerisine-almak-konusu.html)