smf de Alt bölümleri çerçeve içerisine almak

Başlatan CeeMoo, 21 Eyl 2014 22:52

« önceki - sonraki »

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

*

  1. 1,077

  2. 98

  3. 283
21 Eyl 2014 22:52 Son düzenlenme: 21 Eyl 2014 22:58 acemi

Alt bölümleri sütunlar halinde gösterir.
Güncel sürüm: http://custom.simplemachines.org/mods/index.php?mod=2294
Alternatif olarak Hilmi Beyin modu: http://destek.smfmod.com/downloads/cat=7

Geçici demo: http://www.spinabifidaturkey.com/smf/index.php?action=forum





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

*

  1. 1,077

  2. 98

  3. 283
isterseniz ekteki modları kurabilirsiniz




MENU ×