default tema özelleştirme ile ilgili bir kaç soru.

Started by enseran, September 20, 2015, 08:09:22 AM

Previous topic - Next topic

enseran

merhaba arkadaşlar. default temada ufak düzenleme yapmak istiyorum ama kodlama bilmediğim için yardımız gerekli.


1- siyah ile içine aldığım kısmı silmek istiyorum ayrıca ufak kutucuk içindeki ok'unda işlevini kaldırmak istiyorum.
2- yeşil içindeki menü kısmınıda tam ortaya gelecek şekilde ortalamak.
3- en alttaki kırmızı ve yeşil kutucukdaki fontların renki siyah bununda rengini turuncu yapmak istiyorum.

yardımlarınız için teşekkür ederim.

gecitli

1soru
index.template.php

bul sil
';

// the upshrink image, right-floated
echo '
<img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />';
echo '
', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />' : '<div id="siteslogan" class="floatright">' . $settings['site_slogan'] . '</div>', '


2 soru

index.css bul

.dropmenu {
    padding: 0 0.5em;
}


degis

.dropmenu {
    padding: 0 0.5em;
    z-index: 1000;
    float: right;
    position: relative;
    right: 24%;
}

3 soru
index.css bul

h3.titlebg a, h3.titlebg, h4.titlebg, h4.titlebg a {
    color: #222;
}


bunu color: #222; istedigin renkle degis.
http://www.webtiryaki.com
webmaster forumu
Free & Premium Responsive Themes for SMF.

enseran

Quote from: gecitli on September 20, 2015, 08:33:04 AM
1soru
index.template.php

bul sil
';

// the upshrink image, right-floated
echo '
<img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />';
echo '
', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />' : '<div id="siteslogan" class="floatright">' . $settings['site_slogan'] . '</div>', '


2 soru

index.css bul

.dropmenu {
    padding: 0 0.5em;
}


degis

.dropmenu {
    padding: 0 0.5em;
    z-index: 1000;
    float: right;
    position: relative;
    right: 24%;
}

3 soru
index.css bul

h3.titlebg a, h3.titlebg, h4.titlebg, h4.titlebg a {
    color: #222;
}


bunu color: #222; istedigin renkle degis.

ilk ve sonuncusu oldu ama menü tam olarak ortalanmıyor sağa doğru kaydı.

Antes

Menüyü ortalamanın daha kolay bi yolu var.

.dropmenu li (satır : 1146 civarı)- float: left'i silin yerine display: inline-block; ekleyin. sonrasında .dropmenu (satır: 1115 cvarı) text-align: center; ekleyin.

enseran

Quote from: Antes on September 20, 2015, 10:06:57 AM
Menüyü ortalamanın daha kolay bi yolu var.

.dropmenu li (satır : 1146 civarı)- float: left'i silin yerine display: inline-block; ekleyin. sonrasında .dropmenu (satır: 1115 cvarı) text-align: center; ekleyin.

çok teşekkür ederim ikinize de bu sefer oldu ama ufak bir sıkıntı daha oluştu. açılıp kapanır menüde ortalandı bunu sola doğru dayama şansımız varmı.


Antes


enseran


enseran

#7
Quote from: Antes on September 20, 2015, 10:20:55 AM
.dropmenu li li 'ye text-align: left; ekleyin.

çok özür dileyerek son bir isteğim daha olacak tema aynı şekilde default. resimler ile anlatmaya çalıştım ama pek başarılı olamadım. :))

orjinal hali şuan böyle


ve bunu şu şekile getirmem gerek.
- kmsitemap eklentisi kurulu ve temanın tam içinde onu smf copyrightın altına koymak istiyorum.
- çevrim içi üyeler kısmını da forum istatiskilerinin yanına almak istiyorum


aynı şekilde tidy child boards ekletisi kurulu ve alt konular çerçeve içinde değil onu alttaki resim deki gibi çerçeve içine alabilir miyiz.




bolubeyi61

Çerçeve yapmak için:
index.css
Bul:
fieldset
{
border: 1px solid #c4c4c4;
padding: 1em;
margin: 0 0 0.5em 0;
}


Değiştir:
fieldset
{
border: 1px solid #ff0000;
padding: 1em;
margin: 0 0 0.5em 0;
border-radius: 5px;
}


BoardIndex.template.php
Bul:
{
            // 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['new_posts'] : $txt['old_posts']) . ' (Konu: ' . $child['topics'] . ', Mesaj: ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                     $children[] = $child['new'] ? '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/new_some.png" width="12" height="12" alt=""/><b>' . $child['link'] . '</b>' : '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/new_none.png" width="12" height="12" alt=""/>' . $child['link'];                     
               }

               echo '
               <table style="float:right; padding-left:10px;" width="100%" cellspacing="0" cellpadding="3" border="0">
                  <tr>';

               $child_counter = 0;
               
               if(empty($settings['child_boards_rows']))
               {
                  echo '   
                     
                     <td style="width:50%" class="smalltext" valign="top">';
                       
                        for(; $child_counter < ceil(count($children)/2); $child_counter++)
                              echo $children[$child_counter], '<br />';
               }
               
               echo '
                     </td>
                     <td style="width:50%" class="smalltext" valign="top">';   
                        for(; $child_counter < count($children); $child_counter++)
                              echo $children[$child_counter], '<br />';


               echo '
                     </td>
                  </tr>
               </table>';
            }
}


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['new_posts'] : $txt['old_posts']) . ' (Konu: ' . $child['topics'] . ', Mesaj: ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                     $children[] = $child['new'] ? '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/new_some.png" width="12" height="12" alt=""/><b>' . $child['link'] . '</b>' : '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/new_none.png" width="12" height="12" alt=""/>' . $child['link'];                     
               }

               echo '
<fieldset>
   <legend class="smalltext">

         <b>' . $txt['alt_bolumler'], '</b>

   </legend>
               <table style="float:right; padding-left:10px;" width="100%" cellspacing="0" cellpadding="3" border="0">
                  <tr>';

               $child_counter = 0;
               
               if(empty($settings['child_boards_rows']))
               {
                  echo '   
                     
                     <td style="width:50%" class="smalltext" valign="top">';
                       
                        for(; $child_counter < ceil(count($children)/2); $child_counter++)
                              echo $children[$child_counter], '<br />';
               }
               
               echo '
                     </td>
                     <td style="width:50%" class="smalltext" valign="top">';   
                        for(; $child_counter < count($children); $child_counter++)
                              echo $children[$child_counter], '<br />';


               echo '
                     </td>
                  </tr>
               </table>    
</fieldset> ';  

            }
}


Modifications.english.php
Bul:
?>


Değiştir:
$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.
fieldset
{
border: 1px solid #ff0000;
padding: 1em;
margin: 0 0 0.5em 0;
border-radius: 5px;
}

enseran

Quote from: bolubeyi61 on September 20, 2015, 06:20:49 PM
Çerçeve yapmak için:
index.css
Bul:
fieldset
{
border: 1px solid #c4c4c4;
padding: 1em;
margin: 0 0 0.5em 0;
}


Değiştir:
fieldset
{
border: 1px solid #ff0000;
padding: 1em;
margin: 0 0 0.5em 0;
border-radius: 5px;
}


BoardIndex.template.php
Bul:
{
            // 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['new_posts'] : $txt['old_posts']) . ' (Konu: ' . $child['topics'] . ', Mesaj: ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                     $children[] = $child['new'] ? '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/new_some.png" width="12" height="12" alt=""/><b>' . $child['link'] . '</b>' : '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/new_none.png" width="12" height="12" alt=""/>' . $child['link'];                     
               }

               echo '
               <table style="float:right; padding-left:10px;" width="100%" cellspacing="0" cellpadding="3" border="0">
                  <tr>';

               $child_counter = 0;
               
               if(empty($settings['child_boards_rows']))
               {
                  echo '   
                     
                     <td style="width:50%" class="smalltext" valign="top">';
                       
                        for(; $child_counter < ceil(count($children)/2); $child_counter++)
                              echo $children[$child_counter], '<br />';
               }
               
               echo '
                     </td>
                     <td style="width:50%" class="smalltext" valign="top">';   
                        for(; $child_counter < count($children); $child_counter++)
                              echo $children[$child_counter], '<br />';


               echo '
                     </td>
                  </tr>
               </table>';
            }
}


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['new_posts'] : $txt['old_posts']) . ' (Konu: ' . $child['topics'] . ', Mesaj: ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                     $children[] = $child['new'] ? '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/new_some.png" width="12" height="12" alt=""/><b>' . $child['link'] . '</b>' : '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/new_none.png" width="12" height="12" alt=""/>' . $child['link'];                     
               }

               echo '
<fieldset>
   <legend class="smalltext">

         <b>' . $txt['alt_bolumler'], '</b>

   </legend>
               <table style="float:right; padding-left:10px;" width="100%" cellspacing="0" cellpadding="3" border="0">
                  <tr>';

               $child_counter = 0;
               
               if(empty($settings['child_boards_rows']))
               {
                  echo '   
                     
                     <td style="width:50%" class="smalltext" valign="top">';
                       
                        for(; $child_counter < ceil(count($children)/2); $child_counter++)
                              echo $children[$child_counter], '<br />';
               }
               
               echo '
                     </td>
                     <td style="width:50%" class="smalltext" valign="top">';   
                        for(; $child_counter < count($children); $child_counter++)
                              echo $children[$child_counter], '<br />';


               echo '
                     </td>
                  </tr>
               </table>    
</fieldset> ';  

            }
}


Modifications.english.php
Bul:
?>


Değiştir:
$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.
fieldset
{
border: 1px solid #ff0000;
padding: 1em;
margin: 0 0 0.5em 0;
border-radius: 5px;
}


board.index de dediğiniz yer tam olarak uyuşmuyor ekte dosyaları verdim acaba düzenlemeniz mümkün müdür?.. içinde iki tane board index mevcut tinychield kolasöründeki yazan " tidy child boards " eklentisi kurulmuş hali. orjinal yazan ise hiç dokunulmamış halidir.

Advertisement: