News:

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

Main Menu

Neat Board Layout

Started by TY, February 23, 2008, 08:19:26 PM

Previous topic - Next topic

TY

Link to Mod

This is a minor modification to make your board index layout become neater. Similar to vbulletin and IPB.

-Neater "Last Post".
-Icon of the message of last post will be shown.
-Separation of number of topics and posts.
-Child Board in board index does not 'colspan' other columns. (Please see screenshot)
-Will also modify MessageIndex.template.php, Child Board view inside parent board will also be changed.

A picture is worth a thousand words. Please see the screenshot.

15/2/2008 - Version 1.0 Released
22/6/2008 - Version 1.5 Released
   - Support for 1.1.5
   - Child Board in board index does not 'colspan' other columns.
   - Neater child board view inside parent board.

Your feedback is appreciated.

goldenboy48

Looks better. More like vBulletin, am I right?

ApplianceJunk

Hi,

It looks much better with your mod in your image example.

I downloaded it and install went ok without any errors, but we are using Delber MC theme.
It did not change anything.

Can I manualy install this and have it work?

vbgamer45

The mod by default only works with the default theme but you can try installing on the other theme's using a manual install and see how it looks.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

goldenboy48

SMF Package Parser says,

"Error: This package is not Installable on SMF 1.1.3!"

ApplianceJunk

Quote from: vbgamer45 on February 24, 2008, 06:00:52 PM
The mod by default only works with the default theme but you can try installing on the other theme's using a manual install and see how it looks.

That's what I thought. :)

Any chance of someone posting the manual install info?

Thanks,

TY

Quote from: PanesarV on February 24, 2008, 09:26:12 PMSMF Package Parser says,"Error: This package is not Installable on SMF 1.1.3!"

You can try by changing the package-info.xml file.
change the <install for="1.1.4"> to your version. I did not test it on 1.1.3, but most probably it will work. Just try your luck.

Quote from: ApplianceJunk on February 24, 2008, 09:32:16 PM
Quote from: vbgamer45 on February 24, 2008, 06:00:52 PMThe mod by default only works with the default theme but you can try installing on the other theme's using a manual install and see how it looks.
That's what I thought.Any chance of someone posting the manual install info?Thanks,

Use the package parser: hxxp:www.smfhacks.com/packageparser/package.php [nonactive]

Bluey

#7
On install I get a Test Failed error on ./Themes/default/BoardIndex.template.php

I choose to install anyway and this is my index.template.php

Update


It appears that this mod is conflicting with the View Only Boards mod I have installed.  I need some help with working out the code sequence as I am not a coder by a long shot. 

lookang

2.     Execute Modification     ./Themes/default/BoardIndex.template.php     Test failed

any tips have to install ?

thanks! :D

waremock

Neat and simple MOD, Thanks.

syzable

Thanks for this............works a charm. :)

Caitlain

When I try to upload this to my site, I get "The package you tried to upload either is not a valid package or has become corrupted." 

waremock

Does this work with 2.0?


Chewy954

doesnt work good with child boards =[

Joker Grafix

Execute Modification ./Themes/default/BoardIndex.template.php Test failed

I am sure this is because I hid the childboards from the index is there a way I can get this mod to work with the childboards still hidden?

InternetMafia

I have a way different sets of variables for the following two mods.  Any advice of workarounds.

/* Each board in each category's boards has:
            new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
            children (see below.), link_children (easier to use.), children_new (are they new?),
            topics (# of), posts (# of), link, href, and last_post. (see below.) */
            foreach ($category['boards'] as $board)
            {
                echo '
            <tr>
                <td class="alt1" width="51" align="center" valign="middle"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';

                // If the board is new, show a strong indicator.
                if ($board['new'])
                    echo '<img src="'.$settings['images_url'].'/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
                // This board doesn't have new posts, but its children do.
                elseif ($board['children_new'])
                    echo '<img src="'.$settings['images_url'].'/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
                // No new posts at all! The agony!!
                else
                    echo '<img src="'.$settings['images_url'].'/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';

                echo '</a>
                </td>
                <td class="alt2" style="padding-top:12px; padding-bottom:12px;">';if ($board['new'])
                echo'
                    <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><img src="'. $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt=" " border="0" /><br />
                        ', $board['description'];
else
            echo'
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
                        ', $board['description'];

                // 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"><br/><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></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:5px;" src="' . $settings['images_url'] . '/subon.gif" alt="' . $txt[333] . '"/><b>' . $child['link'] . '</b>' . ' <img src="'. $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" width="25" height="15" alt=" " border="0" />': '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/suboff.gif" alt="' . $txt[334] . '"/>' . $child['link'];                           
                    }

                    echo '
                    <table style="float:right; margin-top: 15px;" width="100%" cellspacing="0" cellpadding="3" border="0">
                        <tr>
                            <td class="middletext" valign="middle" align="center" width="30%">
                                <b>', $txt['parent_boards'], ':</b><br/><br/>
                            ';

                    $child_counter = 0;
                   
                    if(empty($settings['child_boards_rows']))
                    {
                        echo '   
                            </td>
                            <td class="middletext" valign="top">';
                               
                                for(; $child_counter < ceil(count($children)/2); $child_counter++)
                                        echo $children[$child_counter], '<br/>';
                    }
                   
                    echo '
                            </td>
                            <td class="middletext" valign="top">';   
                                for(; $child_counter < count($children); $child_counter++)
                                        echo $children[$child_counter], '<br/>';
                    echo '
                            </td>
                        </tr>
                    </table>';
                }
                // Show some basic information about the number of posts, etc.
                    echo '
                </td>
                <td class="alt1" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
                    ', $board['posts'], ' ', $txt[21], ' <br />
                    ', $board['topics'],' ', $txt[330], '
                </span></td>
                <td class="alt2" valign="middle" width="22%">
                    <span class="smalltext">';

                /* 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 '
                        <b>', $txt[22], '</b>  ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />
                        ', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
                        ', $txt[30], ' ', $board['last_post']['time'];
                echo '
                    </span>
                </td>
            </tr>';


Also,the other mod is quite a bit different.

// Assuming the category hasn't been collapsed...
        if (!$category['is_collapsed'])
        {
            echo '
        <div class="catwrapleft">
<div class="catwrapright">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="">
<tbody>


Not really sure how to work it out.
Its better to be dead and cool than alive and uncool.

razorblitz07

I'm wondering if there was any way the following modification can happen:

Turn this layout:



into this



I want the Board Name, Latest Posts, Threads, and Posts table row to move up to the top instead of it being under each forum board header just like vBulletin has it.

razorblitz07


razorblitz07

sorry for triple post but i want to keep my question alive....and I really don't want to annoy any staff members with a pm.

Advertisement: