• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Tutorial: Sub Forum Grid Listing...

Thats actually wrong... it should not be:
HTML:
<li class="node category level-n node_{$category.node_id}{xen:if $renderedChildren, 'fullWidth'}">
It should be:
HTML:
<li class="node category level-n node_{$category.node_id} {xen:if $renderedChildren, 'fullWidth'}">

I specifically said in my opening post:
(Remeber to be aware of the SPACE between this element and previous element of the class)
 
This is how it looks:

JFUP6.png


Did I miss anything ?
 
Some of your forum titles are long... you may want to change:
Code:
.subForumsGrid .node { width: 20%; float: left; }

to:
Code:
.subForumsGrid .node { width: 25%; float: left; }
or
Code:
.subForumsGrid .node { width: 33%; float: left; }
 
All I did from my own custom style was remove this from the EXTRA.css
Code:
.node .nodeLastPost { margin-right: 0px !important; }
.node .nodeControls { right: 232px !important; }
 
All I did from my own custom style was remove this from the EXTRA.css
Code:
.node .nodeLastPost { margin-right: 0px !important; }
.node .nodeControls { right: 232px !important; }
Yes, those two lines make it look nicer with the DEFAULT theme... if you dont use the default theme, delete them.
 
Looks good! I almost completely forgot about the post I had made ;) It might look better if the image was on the right though, as it doesn't affect the text layout :)

I've changed your snippet to:

Code:
        <xen:if is="{$forum.hasNew}">
            <h4 class="nodeTitle"><a href="{xen:link forums, $forum}" class="menuRow">{$forum.title} <img style="vertical-align:text-bottom;" src="@imagePath/xenforo/widgets/discussion-new.png" alt="new" /></a></h4>
        <xen:else />
            <h4 class="nodeTitle"><a href="{xen:link forums, $forum}" class="menuRow">{$forum.title}</a></h4>
        </xen:if>

Looks great! (y)
 
That looks nice! Try using vertical-align:text-bottom; in the css style of the images, I found the images nudged the text down slightly, or at least didn't line up with the text (looks the same in your picture) and this resolved that for me.
 
Been wanting to mess with this and finally had time this AM.. did mine a little different. Only wanted the Sub Forum Grids on 2 forums and the rest remaining default xenforo. Also wanted 64 (32 new, 32 old) images for each of the 32 sub forums. Still have some tweaking that I want to do, but its coming along nicely :) Each Team uses 2 images (node_id-new.png and node_id-old.png).

Untitled-5.webp
 
You can do waht you guys are trying to do without template edits... here is my current css...
http://www.8wayrun.com/forum/
Code:
/* SUB FORUM GRID LISTING SETTINGS */
    .subForumsGrid { padding-right: 4px; }
    .subForumsGrid .blockLinksGrid { width: 100%; display: inline-block; }
    .subForumsGrid .fullWidth { width: 100% !important; padding-bottom: 4px; }
    .subForumsGrid .node { width: 20%; float: left; }
    .subForumsGrid .node ol { padding-left: 10px; }
    .subForumsGrid .node  a { padding: 5px 10px 5px 18px; }
    .subForumsGrid .node .node a { padding: 0px 10px 1px 18px; }
    .subForumsGrid .node .nodeTitle { font-size: 11px; white-space: nowrap; overflow: hidden; }
    .subForumsGrid .node div { background: url('@imagePath/xenforo/widgets/read.png') no-repeat 0px 50%; }
    .subForumsGrid .node div.unread { background: url('@imagePath/xenforo/widgets/unread.png') no-repeat 0px 50%; }
 
Thanks Jaxel...only one issue with that is that the image disappears on hover
All you would need to do is add a :hover pseudo-selector and it would handle that.
Code:
    .subForumsGrid .node div,
    .subForumsGrid .node div a:hover
    {
        background-image: url('@imagePath/xenforo/widgets/read.png');
        background-repeat: no-repeat;
        background-position: 0px 50%;
    }
    .subForumsGrid .node div.unread,
    .subForumsGrid .node div.unread a:hover
    {
        background-image: url('@imagePath/xenforo/widgets/unread.png');
        background-repeat: no-repeat;
        background-position: 0px 50%;
    }
 
wow after reading this thread , would like an option in xenforo to display 3 levels on forum home : Catergory,Forum,Subforum
 
Top Bottom