MyBB Community Forums

Full Version: Collapse / expand
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Heloo there, this is a the code used to collapse or expand a certain box in the board, this on is for the board stats.

<div class="expcolimage"><a href="javascript:expandCollapse('boardstats');"><img src="$theme[imgdir]/collapse$collapsedimg[boardstats].gif" id="boardstats_collapseimg" border="0" alt="[-]" /></a></div>

ok now i would like to know, when we say expandCollapse('boardstats'), boardstats reffers to what ? i mean where do we set that the name of this box that will be collapesed is boardstats? and how to assign a certain name for a certain box we have on the board.


thx alot
<tbody style="" id="boardstats_e">
That means that the boardstats will show that body when expanded. Just change "boardstats" to whatever you want, but include the "_e".
umm ok

but it seems like didn't work, however, let's try it on the weclome panel.

I have added the collapse button's code in the header , and i have included $welcomepanel between <tbody style="" id="test_e">
</tbody>

isn't like that >?


I worked it out thx Smile