MyBB Community Forums

Full Version: Collapsing and expanding commands list
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi I was wondering if it is possible to have (on my PJIRC page which is integrated like shown here) and I was wondering if it is possible to have a collapsing/expanding commands list. Like when you click on either a +/- icon it would open a box (on the page) that has common IRC commands (specified by myself).

Thank you for helping Smile
<thead>
<tr>
<td colspan="2" class="thead">
<div class="expcolimage"><a href="javascript:expandCollapse('irccommands');"><img src="images/collapse.gif" id="irccommands_collapseimg" border="0"></a></div>
<div><strong>IRC Commands</strong></div>
</td>
</tr>
</thead>
<tbody style="" id="irccommands_e">
<tr>
<td class="trow1" valign="top">
Hi!
</tbody>
</table>

That should work fine - just add it into the template and edit the content.

Chris
Chris Boulton Wrote:
<thead>
<tr>
<td colspan="2" class="thead">
<div class="expcolimage"><a href="javascript:expandCollapse('irccommands');"><img src="images/collapse.gif" id="irccommands_collapseimg" border="0"></a></div>
<div><strong>IRC Commands</strong></div>
</td>
</tr>
</thead>
<tbody style="" id="irccommands_e">
<tr>
<td class="trow1" valign="top">
Hi!
</tbody>
</table>

That should work fine - just add it into the template and edit the content.

Chris

Thanks so much for your help Smile. It works great

Thanks again Smile
Sorry to double post but when I click the collapse button it says this page can not be found.

Please help
<a href="java script:expandCollapse('irccommands');">

Remove the space between "java" and "script". MyBB puts that space there as a security precaution. Toungue