PDA

View Full Version : Another question... Make the Table Header Bar Collapsible?


Sonno
05-20-2006, 09:01 PM
I'd like to make this:
http://www.oldtimersguild.com/testbb/junk/theadbar.jpg

Look like this:
http://www.oldtimersguild.com/testbb/junk/theadbar2.jpg
(yes, I photoshopped it :) )

How would I go about making the "Forum, Last Post, Threads, Posts" bar collapsible with the rest of the forum?

peterska2
05-20-2006, 09:18 PM
In your forumhome template

FIND

<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>



DELETE IT

in your forumhome_forumbit_level1_nopost

FIND


<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>

Replace with

<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>

<if condition="$childforumbits">
$childforumbits
</if>
</tbody>

Hey presto, the bar you are referring to then collapses. :)

Sonno
05-20-2006, 09:38 PM
Worked like a charm! Thanks a bunch... again :D

peterska2
05-20-2006, 09:42 PM
No problem. :)

Once you get the hang of it, it is pretty straightforward, but it can seem very daunting at first so feel free to ask questions. You'll be amazed how much you start to pick up without realising it.