Separar o assunto e o número de Resposta

Iniciado por candidosa2, 20 de Novembro de 2010, 07:10

Tópico anterior - Tópico seguinte

0 Membros e 1 Visitante estão a ver este tópico.

candidosa2

Messageindex.Template.php

      echo '
     <div class="tborder marginbottom" id="childboards">
        <table cellspacing="1" class="bordercolor boardsframe">
           <tr>
              <td colspan="4" class="catbg headerpadding">',   $txt['parent_boards'], '</td>
           </tr>';


      echo '
       <div class="tborder marginbottom" id="childboards">
          <table cellspacing="1" class="bordercolor boardsframe">
             <tr>
                <td colspan="5" class="catbg headerpadding">',   $txt['parent_boards'], '</td>
             </tr>';




Messageindex.Template.php

         // Show some basic information about the number of posts,   etc.
           echo '
           </td>
           <td', !empty($board['children']) ? ' rowspan="2"' : '', '   class="windowbg stats smalltext">
              ', comma_format($board['posts']), ' ', $board['is_redirect']   ? $txt['redirects'] : $txt['posts'], ' <br />
              ', $board['is_redirect'] ? '' :   comma_format($board['topics']) . ' ' . $txt['board_topics'], '
           </td>
           <td', !empty($board['children']) ? ' rowspan="2"' : '', '   class="windowbg2 smalltext lastpost">';

           /* The board's and children's 'last_post's have:
           time, timestamp (a number that represents the time.), id (of   the post), topic (topic id.),
           link, href, subject, start (where they should go for the first   unread post.),
           and member. (which has id, name, link, href, username in it.)   */
           if (!empty($board['last_post']['id']))
              echo '
              <strong>', $txt['last_post'], '</strong>  ',   $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
              ', $txt['in'], ' ', $board['last_post']['link'], '<br   />
              ', $txt['on'], ' ', $board['last_post']['time'];
           echo '
              </td>
           </tr>';
 


         // Show some basic information about the number of posts,   etc.
           echo '
           </td>
           <td', !empty($board['children']) ? ' rowspan="2"' : '', '   class="windowbg stats smalltext">
              ', $board['is_redirect'] ? '' :   comma_format($board['topics']) . ' ' . $txt['board_topics'], '
           </td>
           <td', !empty($board['children']) ? ' rowspan="2"' : '', '   class="windowbg stats smalltext">
              ', comma_format($board['posts']), ' ', $board['is_redirect']   ? $txt['redirects'] : $txt['posts'], ' <br />
           </td>
           <td', !empty($board['children']) ? ' rowspan="2"' : '', '   class="windowbg smalltext lastpost">';
  echo'
            <strong>', $txt['last_post'], '</strong>  ',   $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />';
  echo'

              ', $txt['in'], ' ', $board['last_post']['link'], '<br   />
              ', $txt['on'], ' ', $board['last_post']['time'], ' ';
  echo'
              </td>';
  echo'
   </tr>
  ';