Simple Machines Community Forum

SMF Support => Language Specific Support => Bosanski/Hrvatski/Srpski (Bosnian/Croatian/Serbian) => Topic started by: ^code_future^ on June 25, 2008, 01:23:27 PM

Title: Podforumi
Post by: ^code_future^ on June 25, 2008, 01:23:27 PM
dakle ovako trazim po celm forumu neki mod, da podforumi izgledaju kao i ovde, znaci bez onih razmaka sa zarezom , kao i Moderatori za taj forum, znaci bez skidanja paketa, nego editom BoardIndex.template.php

meni ovako izgleda taj deo :
td class="windowbg2" style="padding-top:4px; padding-bottom:4px;">
               <font size="2"><u><b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b></u></font><br><font size="1">', $board['description'], '</font>';

            // Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
            if (!empty($board['moderators']))
               echo '
               <div style="padding-top: 1px;" class="smalltext"><b>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</b></div>';
           
            // 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'] ? '<img style="margin-right:2px;" src="' . $settings['images_url'] . '/' . $settings['theme_main_color'] . '/onk.gif" alt="' . $txt[333] . '"/><b>' . $child['link'] . '</b>' : '<img style="margin-right:2px;" src="' . $settings['images_url'] . '/' . $settings['theme_main_color'] . '/offk.gif" alt="' . $txt[334] . '"/>' . $child['link'];                     
               }

               echo '
               <table style="float:left; margin-top: 2px;" width="100%" cellspacing="0" cellpadding="1" border="0">
                  <tr>
                     <td class="lefttext" valign="middle" align="left" width="15%">
                        <font size="1"><b>', $txt['parent_boards'], ':</b></font>
                     ';

               $child_counter = 0;
               
               if(empty($settings['child_boards_rows']))
               {
                  echo '   
                     </td>
                     <td class="lefttext" valign="middle" align="left" width="19%">';
                       
                        for(; $child_counter < ceil(count($children)/2); $child_counter++)
                              echo $children[$child_counter], '<br/>';
               }
               
               echo '
                     </td>
                     <td class="lefttext" valign="top">';   
                        for(; $child_counter < count($children); $child_counter++)
                              echo $children[$child_counter], '<br/>';
               echo '
                     </td>
                  </tr>
               </table>';
            }


SMF 1.1.5

znaci da li znate, dali neko od vas ima tako podforume i da li je editovao template ...?
Title: Re: Podforumi
Post by: MarkoWeb on June 25, 2008, 07:31:01 PM
pa isto je i ovde i na obicnoj default temi http://www.smfarcade.info/forum/index.php ne znam sta tacno oces?
Title: Re: Podforumi
Post by: ^code_future^ on June 26, 2008, 04:25:45 AM
pa ja bih tako hteo ali to mora da je neki dodatak, pazi kako kod mene izgleda, doduse ne na default temi ....

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi124.photobucket.com%2Falbums%2Fp31%2FDachaArh%2Fpodforumi2.png&hash=af9f30257f8202c0c80a44e34a14db991458e716)

sacu da vidim

u pravu si, tako je na default temi, samo sto ja ne mogu d pogledam boardindextemplate.php za default temu jer se on ne moze editovati ....

kad bi mi neko poslao taj falj ja bih video taj deo i stavio ga u moju temu ;)

hvala ti
Title: Re: Podforumi
Post by: MarkoWeb on June 26, 2008, 10:25:54 AM
Skines instalaciju foruma i u njoj imas sve fajlove :D
Title: Re: Podforumi
Post by: ^code_future^ on June 26, 2008, 09:49:34 PM
imam, ali ja nikako da ukapiram kako da odradim bez gresaka, ne ide mi, kopiram ja taj deo odande ali posle imam greske, verovatno zbog nekog td, tr ili tako nesto.....
Title: Re: Podforumi
Post by: MarkoWeb on June 27, 2008, 05:48:26 AM
Kakve greske ima?
Title: Re: Podforumi
Post by: ^code_future^ on June 27, 2008, 06:56:42 AM
pa necu da cimam na forumu , dicicu sad test stranu i na nju SMF pa cu tu odraditi edit boardindextemplate, pa cu proveriti online ggreske, na strani iz tvog potpisa pa se javljam ovde ..
hvala