Get Free Hacks, Skins , addons and Support! and uploads everyday with scriptznulled and EVEN MORE! AND ITS ALL FREE!!!!

 

Scriptz Nulled

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more!

This message will be removed once you have signed in.

Attention: No Leeching Allowed! Anyone caught leeching content will be banned!

If you encounter any errors while browsing the forum please post here (technical support) so it can be resolved immediately 

blade6000

order sub-forums under each other

2 posts in this topic

Hello,

This tutorial will show you how to order sub-forums under each other

This tutorial is compatible with vBulletin 4.2.0

Open template forumhome_subforums


Replace it with:

 

<div class="subforums"> 
    <h4 class="subforumlistlabel">{vb:rawphrase subforums}:</h4> 
    <ol class="subforumlist commalist"> 
        <vb:each from="subforums" value="row"> 
            <li class="subforum"> 
                <vb:if condition="$row['canpost']"> 
                    <img class="inlineimg" src="{vb:stylevar imgdir_statusicon}/{vb:raw row.imageprefix}subforum_{vb:raw row.statusicon}-48.png" alt="" border="0" id="forum_statusicon_{vb:raw row.forumid}" />  
                <vb:else /> 
                    <br><img class="inlineimg" src="{vb:stylevar imgdir_statusicon}/subforum_{vb:raw row.statusicon}.png" alt="" border="0" id="forum_statusicon_{vb:raw row.forumid}" /> 
                </vb:if> 
                <a href="{vb:link forum, {vb:raw row}}">{vb:raw row.title}</a>{vb:raw row.comma} 
            </li><br /> 
        </vb:each> 
    </ol> 
</div>

 

Share this post


Link to post
Share on other sites

Why to edit templates, that options already exists in vbulletin admin control panel. You can do this in admincp - > forum manager and edit display order.

 

 

1 means that category/forum will be first, 2 is the after 1 etc.

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now