News:

Wondering if this will always be free?  See why free is better.

Main Menu

Podforumi

Started by ^code_future^, June 25, 2008, 01:23:27 PM

Previous topic - Next topic

^code_future^

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 ...?

MarkoWeb

pa isto je i ovde i na obicnoj default temi http://www.smfarcade.info/forum/index.php ne znam sta tacno oces?

^code_future^

pa ja bih tako hteo ali to mora da je neki dodatak, pazi kako kod mene izgleda, doduse ne na default temi ....



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

MarkoWeb

Skines instalaciju foruma i u njoj imas sve fajlove :D

^code_future^

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.....

MarkoWeb


^code_future^

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

Advertisement: