The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I'm trying to make it so certain users have the option of collapsing the stickies, since sometimes we have a lot.
So I added an icon at the top of the thread header bar, with this code: Code:
<td class="thead" align="center"><a href="#top" onClick="return toggle_collapse('stickythreads')"><img id="collapseimg_stickythreads" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_stickythreads].gif" alt="Toggle stickies" border="0" /></a></td>
Code:
<tbody id="collapseobj_stickythreads" style="collapseobj_stickythreads"> $threadbits_sticky </tbody> From what I can tell I'm just mimicking the collapse code used by "Active Users" and the like on forumhome.php. So what am I missing that it's not keeping the collapse? |
|
#2
|
|||
|
|||
|
Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" width="100%">
<thead>
<tr><td class="tcat">
<a href="#top" style="float:$stylevar[right]"
onclick="return toggle_collapse('MyELEMENT')"><img
id="collapseimg_MyELEMENT"
src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_MyELEMENT].gif"
alt="" border="0" /></a>
<strong>Table title</strong>
</td></tr>
</thead>
<tbody id="collapseobj_MyELEMENT" style="$vbcollapse[collapseobj_MyELEMENT]">
<tr><td class="alt1">First row of collapsible element</td></tr>
<tr><td class="alt2">Second row of collapsible element</td></tr>
</tbody>
<tbody>
<tr><td class="alt1">Another row</td></tr>
</tbody>
</table>
(Note: The differences between the "style" attribute of your "tbody" and the one in that peice of code) |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|