Log in

View Full Version : Sub forums?


flyrib
01-27-2014, 11:44 AM
I´m looking for possibility to hide subforums on the index page and I´d like them to be visible when entering the main forum.
Both in vB4 and vB3 it has this solution, but where do I find it here?

thank you very much in advance

Lynne
01-27-2014, 06:33 PM
Template edit to display_Forums_list

change this line:
<vb:if condition="!empty($forum['subchannels']) ">

to this:
<vb:if condition="!empty($forum['subchannels']) and $root <> 2">

If that doesn't work, then at the top of the template, add this line to find out what your $root is and then you can delete it after you get the number:

root = {vb:raw root}

flyrib
01-27-2014, 08:09 PM
thank you very much Lynne, will try this.

--------------- Added 1390930000 at 1390930000 ---------------

Thanks again Lynne, the first replacement worked perfect!!