Insert in advanced forum: advf-forum-list.tpl.php. Please be aware of the XHTML 1.0 Strict! markup. a) In the top after the comments insert the inline jQuery (don't know where this actually should be). This is pretty static, we should count containers from the beginning and generate the appropriate amount of jQuery (php or something). b) After $forum_num = 0; insert this line. To have control over the container status. $container = 0; //collapsible container c) Insert af the first switch: "$position = 'middle_row';}". Increment the container ID if the "forum" is a container. //collapsible container if ($forum->is_container) $container = $container +1; d) Replace: