I did it for stickies and it worked perfectly, but I tried to do the code for the subforum display and that didn't work out as well.
Here's the code:
This is an img placed on the title line
Code:
<td class="thead" align="center"><a href="#top" onClick="return toggle_collapse('hidesubforums')"><img id="collapseimg_hidesubforums" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_hidesubforums].gif" alt="Toggle subforums" border="0" /></a></td>
This is the collapse obj
Code:
<tbody id="collapseobj_hidesubforums" style="$vbcollapse[collapseobj_hidesubforums]">
$forumbits
</tbody>
When you click the image it swaps between the collapsed/not-collapsed images, and it stores the cookies. But it doesn't actually hide the subforum list. Not sure if there's an HTML restriction here because of the way the forumbits are formed.
Thanks