Log in

View Full Version : Can you use collapse code for the subforums in forumdisplay.php?


DISLEX
07-22-2008, 02:19 PM
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
<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

<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

ssslippy
07-22-2008, 02:25 PM
If im correc the collapse inside the collapse doesnt work well.

DISLEX
07-23-2008, 04:11 AM
There shouldn't be any nested collapses?

DISLEX
07-25-2008, 01:53 AM
anyone else have any ideas? Am I doing something wrong or can you just not do it?