Quote:
Originally Posted by TigerWare
I'd like to add my voice to adding a collapse option too, just to make it consistent with the other tables there.
|
Hope you don't mind
Atakan KOC, but I made a modification to your template
FORUMHOME_toprep, which allows the table to be collapsable like the others. Please feel free to steal this slight alteration. :up:
Your current html:-
HTML Code:
<tbody>
<tr><td class="thead" colspan="2">
$vbphrase[tr_popular]
</td></tr>
</tbody>
<tbody>
<tr>
<td class="alt2"><a href="memberlist.php">
<img src="$stylevar[imgdir_misc]/stats.gif" alt="" border="0" />
</td>
<td class="alt1" width="100%">
<div class="smallfont">$sonuclaryaz</div>
</td>
</tr>
</tbody>
Changed to this:-
HTML Code:
<thead>
<tr><td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('topxxxreputation')"><img id="collapseimg_topxxxreputation" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_topxxxreputation].gif" alt="" border="0" /></a>
$vbphrase[tr_popular]
</td></tr>
</thead>
<tbody id="collapseobj_topxxxreputation" style="$vbcollapse[collapseobj_topxxxreputation]">
<tr>
<td class="alt2"><a href="memberlist.php">
<img src="$stylevar[imgdir_misc]/stats.gif" alt="" border="0" />
</td>
<td class="alt1" width="100%">
<div class="smallfont">$sonuclaryaz</div>
</td>
</tr>
</tbody>