Smf alt kategorileri 2 3 4'lü yapma ( Tidy Child Boards )

Başlatan tarantula901, 18 Haz 2014, 02:53

« önceki - sonraki »

0 Üyeler ve 48 Ziyaretçiler konuyu incelemekte.

tarantula901

Sitenizde işlem yapmadan önce mutlaka yedek alın, yedek alın yedek almayı unutmayın her şeyden önce bu önemli

Pm'den ve Skype'den istenilen destekler ücretlidir. Ücret ödememek için lütfen sitede sorunuzu konu açarak sorabilirsiniz.

Ücretli Smf Destek İçin

Sosyal Öğretmeni

Benim sitede alt bölümler 2 li sıralıda sorun yok. Ama alt bölümlerin başına birer tane simge nasıl eklerim. alt blümlerin
başlarına ekleyeceğim simge png, jpeg gif uzantılı olabilir.
Herkes göründüğü gibi değil.

tarantula901

admin panelden Özellikler ve Seçenekler kısmından

Display unread child boards in bold

Display small board icon next to child board

Display [new] image next to unread child boards

translate çeviri bu kutucuklara siz tıklayarak kontrol edın resım cıkacktır

Kalın okunmamış çocuk panoları Display

Bir sonraki çocuk kurulu küçük bir tahta simgesini görüntüler

Okunmamış altbölümlerin yanında [yeni] görüntüyü ekrana
Sitenizde işlem yapmadan önce mutlaka yedek alın, yedek alın yedek almayı unutmayın her şeyden önce bu önemli

Pm'den ve Skype'den istenilen destekler ücretlidir. Ücret ödememek için lütfen sitede sorunuzu konu açarak sorabilirsiniz.

Ücretli Smf Destek İçin

Sosyal Öğretmeni

çok teşekkür ederim.
Hani derler ya bakmak yetmez görmek lazım işte bu benim durum buna şimdi çok iyi uydu.
Herkes göründüğü gibi değil.

tarantula901

:D Biraz inceleyim bakmak lazım bzen bizde bilemiyoruz aklımızda olduğu için anında buluyoruz :D bizimde bilmediğimiz çok şey vardır.
Sitenizde işlem yapmadan önce mutlaka yedek alın, yedek alın yedek almayı unutmayın her şeyden önce bu önemli

Pm'den ve Skype'den istenilen destekler ücretlidir. Ücret ödememek için lütfen sitede sorunuzu konu açarak sorabilirsiniz.

Ücretli Smf Destek İçin

Sosyal Öğretmeni

Bunu yeni bir siteye kuramadım.
Hata veriyor. Bunun 2.0.8 ile uyumlu olanı yada hatasız kurulumu yok mu?
Yardımcı olsanız ne iyi olur.
Herkes göründüğü gibi değil.

Sosyal Öğretmeni

Manüel Kurulumu SMF 2.0.8 için Yapılmıştır. Pket kurulumda benim gibi hata olursa......
Lütfen Hata Alanlar Bunu Uygulasınlar........


./Sources/Subs-BoardIndex.php
Bul
?>
Üstüne  Ekleyiniz

//For tidying boards; examine the children and realign into groups for tidying
function tidyBoards(&$board) {
global $modSettings, $context, $settings;

$limit = ceil(count($board['children']) / $modSettings['tidy_child_boards']);
$children = array();
$this_count = $limit + 1;
$this_division = 0;
foreach($board['children'] as $child) {
if($this_count >= $limit) {
$this_division++;
$this_count = 0;
}
$children[$this_division][] = $child;
$this_count++;
}

$board['tidy_children'] = $children;

// We don't need the original children (plus this means way less mess in templates)
unset($board['children']);
}

./Sources/BoardIndex.php de
Bul
// Do not let search engines index anything if there is a random thing in $_GET.
Üstüne ekle:
if(empty($context['added_tidy_header']) && !empty($modSettings['tidy_child_boards']) && $modSettings['tidy_child_boards'] > 1) {
if(empty($context['html_headers']))
$context['html_headers'] = '';
$context['html_headers'] .= '
<link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/css/tidyboards.css?rc2" />
<style type="text/css">.tidy_child { width:' . floor(100/$modSettings['tidy_child_boards']) . '%; }</style>';
$context['added_tidy_header'] = 1;
}


./Sources/MessageIndex.php de
Bul:
// If we can view unapproved
Üstüne Ekle
if(empty($context['added_tidy_header']) && !empty($modSettings['tidy_child_boards']) && $modSettings['tidy_child_boards'] > 1) {
if(empty($context['html_headers']))
$context['html_headers'] = '';
$context['html_headers'] .= '
<link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/css/tidyboards.css?rc2" />
<style type="text/css">.tidy_child { width:' . floor(100/$modSettings['tidy_child_boards']) . '%; }</style>';
$context['added_tidy_header'] = 1;
}


./Sources/ManageSettings.php de
Bul:
array('check', 'enableVBStyleLogin'),
Altına Ekle:

'',
array('select', 'tidy_child_boards', array(1 => $txt['tidy_child_boards_no'], 2 => $txt['tidy_child_boards_2col'], 3 => $txt['tidy_child_boards_3col'], 4 => $txt['tidy_child_boards_4col'])),
array('check', 'tidy_child_boards_bold'),
array('check', 'tidy_child_boards_icon'),
array('check', 'tidy_child_boards_new'),

./Themes/default/BoardIndex.template.php de
Bul:
foreach ($category['boards'] as $board)
{

Sonrasına Ekle:

if(!empty($board['children']) && !empty($modSettings['tidy_child_boards']) && $modSettings['tidy_child_boards'] > 1)
tidyBoards($board);

Bul:
// Show some basic
Önüne Ekleyin:
if(!empty($board['tidy_children'])) {
$context['tidy_board'] = $board;
template_tidy_children();
}

Bul:
?>
Önüne Ekle:

function template_tidy_children() {
global $context, $settings, $txt, $modSettings, $scripturl;
echo '
<div class="board_children">';
foreach($context['tidy_board']['tidy_children'] as $key => $child_block) {
echo '
<div class="tidy_child">
<ul>';
foreach($child_block as $child) {
echo '
<li>';

if(!empty($modSettings['tidy_child_boards_icon']))
echo '<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt=""> ';

if (!$child['is_redirect'])
$child['link'] = '<a href="' . $child['href'] . '" ' . ($child['new'] ? 'class="new_posts" ' : '') . 'title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . '</a>';
else
$child['link'] = '<a href="' . $child['href'] . '" title="' . comma_format($child['posts']) . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>';

if (!empty($modSettings['tidy_child_boards_new']) && $child['new'])
$child['link'] .= ' <a href="' . $child['href'] . '" title="' . $txt['new_posts'] . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')"><img src="' . $settings['lang_images_url'] . '/new.gif" class="new_posts" alt="" /></a>';

// Has it posts awaiting approval?
if ($child['can_approve_posts'] && ($child['unapproved_posts'] | $child['unapproved_topics']))
$child['link'] .= ' <a href="' . $scripturl . '?action=moderate;area=postmod;sa=' . ($child['unapproved_topics'] > $child['unapproved_posts'] ? 'topics' : 'posts') . ';brd=' . $child['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" title="' . sprintf($txt['unapproved_posts'], $child['unapproved_topics'], $child['unapproved_posts']) . '" class="moderation_link">(!)</a>';

if(!empty($modSettings['tidy_child_boards_bold']) && $child['new'])
$child['link'] = '<strong>' . $child['link'] . '</strong>';

echo $child['link'], '</li>';
}
echo '
</ul>
</div>';
}
echo '
</div>';
}

./Themes/default/MessageIndex.template.php de
Bul:
foreach ($context['boards'] as $board)
{

Sonrasına Ekle:

if(!empty($board['children']) && !empty($modSettings['tidy_child_boards']) && $modSettings['tidy_child_boards'] > 1)
tidyBoards($board);

Bul:
// Show some basic
Önüne Ekle:
if(!empty($board['tidy_children'])) {
$context['tidy_board'] = $board;
template_tidy_children();
}

Bul:
?>
Önüne (Dosyanın Sonuna yapıştırınız.)

function template_tidy_children() {
global $context, $settings, $txt, $modSettings;
echo '
<div class="board_children">';
foreach($context['tidy_board']['tidy_children'] as $key => $child_block) {
echo '
<div class="tidy_child">
<ul>';
foreach($child_block as $child) {
echo '
<li>';

if(!empty($modSettings['tidy_child_boards_icon']))
echo '<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt=""> ';

if (!$child['is_redirect'])
$child['link'] = '<a href="' . $child['href'] . '" ' . ($child['new'] ? 'class="new_posts" ' : '') . 'title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . '</a>';
else
$child['link'] = '<a href="' . $child['href'] . '" title="' . comma_format($child['posts']) . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>';

if (!empty($modSettings['tidy_child_boards_new']) && $child['new'])
$child['link'] .= ' <a href="' . $child['href'] . '" title="' . $txt['new_posts'] . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')"><img src="' . $settings['lang_images_url'] . '/new.gif" class="new_posts" alt="" /></a>';

// Has it posts awaiting approval?
if ($child['can_approve_posts'] && ($child['unapproved_posts'] | $child['unapproved_topics']))
$child['link'] .= ' <a href="' . $scripturl . '?action=moderate;area=postmod;sa=' . ($child['unapproved_topics'] > $child['unapproved_posts'] ? 'topics' : 'posts') . ';brd=' . $child['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" title="' . sprintf($txt['unapproved_posts'], $child['unapproved_topics'], $child['unapproved_posts']) . '" class="moderation_link">(!)</a>';

if(!empty($modSettings['tidy_child_boards_bold']) && $child['new'])
$child['link'] = '<strong>' . $child['link'] . '</strong>';

echo $child['link'], '</li>';
}
echo '
</ul>
</div>';
}
echo '
</div>';
}


./Themes/default/languages/Modifications.english.php de
Bul:
?>
Önüne Yapıştırınız

$txt['tidy_child_boards'] = 'Arrange child boards in to columns';
$txt['tidy_child_boards_no'] = 'Do not put in columns (default)';
$txt['tidy_child_boards_2col'] = 'Two columns';
$txt['tidy_child_boards_3col'] = 'Three columns';
$txt['tidy_child_boards_4col'] = 'Four columns';
$txt['tidy_child_boards_icon'] = 'Display small board icon next to child board';
$txt['tidy_child_boards_bold'] = 'Display unread child boards in bold';
$txt['tidy_child_boards_new'] = 'Display [new] image next to unread child boards';


Türkçe Yapmak için
./Themes/default/languages/Modifications.turkish.php de bul
?>
Önüne Ekle:
$txt['tidy_child_boards'] = 'Sutununa alt bolumleri düzenleyin';
$txt['tidy_child_boards_no'] = '(Varsayılanı) sütunlarda koymayın';
$txt['tidy_child_boards_2col'] = 'İki sutun Olsun';
$txt['tidy_child_boards_3col'] = 'Uc sutun olsun';
$txt['tidy_child_boards_4col'] = 'Dort sutun olsun';
$txt['tidy_child_boards_icon'] = 'Alt bolumlerin basinda simge goster';
$txt['tidy_child_boards_bold'] = 'Okunmamis bolumleri kalin goster';
$txt['tidy_child_boards_new'] = 'Okunmamis alt bölümlerde Yeni simgesi gorunsun';


Ekteki: tidyboards.css dosyasını ./Themes/default/css" içine atınız. Zip dosyasından çıkarmayı unutmayınız. Zip dosyasından  Çıkardıktan sonra yükleyiniz.

Türkçeleştirme %100 bana aittir. Diğer Yerleri: smf nin orijinal sitesinden aldım.
Herkes göründüğü gibi değil.

Sosyal Öğretmeni

Aşağıda ki kodlar XHTML hatalarına yol açıyor
bu hataları nasıl temizleriz? Bu kodlar içerisinde yer alan images taglar hataya yol açıyor.
Bunların yolları doğru verilmiş midir?
smf de   php ye uygun mudur? kodların belli özelliklere göre çekem yapması gerekiyormuş yoksa XHTML hatasının olması norma oluyormuş.

function template_tidy_children() {
global $context, $settings, $txt, $modSettings, $scripturl;
echo '
<div class="board_children">';
foreach($context['tidy_board']['tidy_children'] as $key => $child_block) {
echo '
<div class="tidy_child">
<ul>';
foreach($child_block as $child) {
echo '
<li>';

if(!empty($modSettings['tidy_child_boards_icon']))
echo '<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt=""> ';

if (!$child['is_redirect'])
$child['link'] = '<a href="' . $child['href'] . '" ' . ($child['new'] ? 'class="new_posts" ' : '') . 'title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . '</a>';
else
$child['link'] = '<a href="' . $child['href'] . '" title="' . comma_format($child['posts']) . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>';

if (!empty($modSettings['tidy_child_boards_new']) && $child['new'])
$child['link'] .= ' <a href="' . $child['href'] . '" title="' . $txt['new_posts'] . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')"><img src="' . $settings['lang_images_url'] . '/new.gif" class="new_posts" alt="" /></a>';

// Has it posts awaiting approval?
if ($child['can_approve_posts'] && ($child['unapproved_posts'] | $child['unapproved_topics']))
$child['link'] .= ' <a href="' . $scripturl . '?action=moderate;area=postmod;sa=' . ($child['unapproved_topics'] > $child['unapproved_posts'] ? 'topics' : 'posts') . ';brd=' . $child['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" title="' . sprintf($txt['unapproved_posts'], $child['unapproved_topics'], $child['unapproved_posts']) . '" class="moderation_link">(!)</a>';

if(!empty($modSettings['tidy_child_boards_bold']) && $child['new'])
$child['link'] = '<strong>' . $child['link'] . '</strong>';

echo $child['link'], '</li>';
}
echo '
</ul>
</div>';
}
echo '
</div>';
}

Herkes göründüğü gibi değil.

alien97


KurnaZ

katagori sorunu bazen karsılasılıyor ama halledile bilir.

astro1

www.forumtim.com
Geniş Çaplı MMO sevenlere...

tarantula901

Admin panelden Özellikler ve Seçenekler / kısmından kategori ile ilgili ayarlar çıkacak oradan yapacaksınız. üste dil dosyalarını ekleyin ki daha iyi anlarsınız ne yapacağınızı
Sitenizde işlem yapmadan önce mutlaka yedek alın, yedek alın yedek almayı unutmayın her şeyden önce bu önemli

Pm'den ve Skype'den istenilen destekler ücretlidir. Ücret ödememek için lütfen sitede sorunuzu konu açarak sorabilirsiniz.

Ücretli Smf Destek İçin

astro1

Alıntı yapılan: tarantula901 - 07 Mar 2016, 21:49Admin panelden Özellikler ve Seçenekler / kısmından kategori ile ilgili ayarlar çıkacak oradan yapacaksınız. üste dil dosyalarını ekleyin ki daha iyi anlarsınız ne yapacağınızı
saolun
www.forumtim.com
Geniş Çaplı MMO sevenlere...

tarantula901

Sitenizde işlem yapmadan önce mutlaka yedek alın, yedek alın yedek almayı unutmayın her şeyden önce bu önemli

Pm'den ve Skype'den istenilen destekler ücretlidir. Ücret ödememek için lütfen sitede sorunuzu konu açarak sorabilirsiniz.

Ücretli Smf Destek İçin