MyBB Community Forums

Full Version: Cookies with new expand/collapse boxes?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am working on a theme and have a custom sidebar. The table is supposed to collapse when you click the collapse button, and expand when you click the expand button. It does. However, it doesn't save any cookies. Is there a way to do this?

Here is my code:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead">
<span class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['textblock1']}.gif" id="textblock1_img" class="expander" alt="[-]" /></span>
Some Random Textblock
</td>
</tr>
</thead>
<tbody style="{$collapsed['textblock1_e']}" id="textblock1_e">
<tr>
<td class="trow1">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ut scelerisque purus. Duis accumsan ultrices ipsum. Curabitur consequat adipiscing orci nec luctus. Nullam lacus turpis, blandit at blandit nec, facilisis nec augue. Nullam eu sem orci, non tincidunt risus. Maecenas nec massa ac tortor sodales convallis. Etiam sed dapibus nisl. Donec imperdiet lacus id nunc pharetra tempor.
</td>
</tr>
</tbody>
</table>