2016-01-31, 10:57 PM
I was wondering how I would get these to toggle open when clicked? Its the 'forumdisplay_subforums' area that I'm talking about.
I tried wrapping them in a toggling script but it does not work, would anyone have any ideas of what other templates I would need to edit to make this work?
I tried wrapping them in a toggling script but it does not work, would anyone have any ideas of what other templates I would need to edit to make this work?
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="5"><a href="#subs" onclick="toggle_visibility('subs');">{$lang->sub_forums_in}</a><br /><span class="smalltext">- click to toggle -</span></td>
</tr>
<div id="subs" style="display: none !important;">{$forums}</div>
</table>
<br />
<script type="text/javascript">
<!--
function toggle_visibility(id) {
var e = document.getElementById(id);
if(e.style.display == 'block')
e.style.display = 'none';
else
e.style.display = 'block';
}
//-->
</script>