News:

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

Main Menu

Forum Categrory

Started by Wiki80, March 17, 2016, 09:44:21 AM

Previous topic - Next topic

Wiki80

There is a way to convert your forum category.

Search BoardIndex.template.php :

            // Show some basic information about the number of posts, etc.
               echo '
               </td>
               <td class="stats windowbg">
                  <p>', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' <br />
                  ', $board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . $txt['board_topics'], '
                  </p>
               </td>
               <td class="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 '
                  <p><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'],'
                  </p>';
            echo '
               </td>
            </tr>';


Replace:

            // Show some basic information about the number of posts, etc.
               echo '               
               <td colspan="2">';           
               /* 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 '                 
                      <p align="lefttext"><b>', $txt['last_post'], '</b>   ', $board['last_post']['link'] , '<br />                 
                     ', $txt['by'], ' <b>', $board['last_post']['member']['link'], ' </b> ', '<br /></p>';           
                echo '           
               <div style="padding-top: 3px;"><table class="tbody" width="100%" class="tborder"><tr valign="bottom"><td align="center" class="stats windowbg">', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], '                   
                   </td>';           
                  if (!empty($board['last_post']['id']))               
               echo '               
                   <td align="center" class="stats windowbg">', $board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . $txt['board_topics'], '                                   
               </td>';           
               echo '     
               </tr></table>
                        </td>
                </tr>';


Screenshots:

Before:



After:



Complete package on the basis of the description. But it can not be installed. What can be wrong?

Illori

since the mod you attached is actually lacking the license.txt to define the license you are not allowed to distrubute it. so it has been removed from your post.

you really should be asking for support for that mod from where you found it. or in the correct support topic if you got it from here.

Advertisement: