58sniper
08-16-2004, 11:39 PM
Okay, I don't think this version has been posted anywhere, so.....
This module is a "blank" collapsible module that doesn't require editing of ANYTHING other than the content inside of it. No need to modify the name, etc.
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat smallfont" style="font-weight: bold;"><a style="float: $stylevar[right]" href="#" onclick="return toggle_collapse('forumhome_$mods[filename]')"><img id="collapseimg_forumhome_$mods[filename]" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" width="15" height="15" border="0" alt="Collapse/Expand" /></a>$vba_options[portal_blockbullet] $mods[title]</td>
</tr>
</thead>
<tfoot style="display: none;"><tr><td></td></tr></tfoot>
<tbody id="collapseobj_forumhome_$mods[filename]">
<tr style="$vbcollapse[collapseobj_forumhome_randomtopic]">
<td class="$getbgrow">
<!-- put module content here -->
</td>
</tr>
</tbody>
</table>
<br />
When you create a new module using this code, the Module Title (in ACP> vBa Settings) will automatically be used as the title when viewing the module. Also, this validates 100% as XHTML 1.0, something many of the others don't do (and my primary reason for creating this version).
Keep in mind that this uses the collapsible image from the default image set. If you're going to use an image of a different size, you'll need to adjust the width and height accordingly.
You can see this in use at a site I'm working on at demo (http://dev.defensivetactics.com/).
I'd appreciate any comments.
Edit: updated code to get rid of annoying "double" bottom border. All I did was add the code in red. Tested and validates fine.
This module is a "blank" collapsible module that doesn't require editing of ANYTHING other than the content inside of it. No need to modify the name, etc.
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat smallfont" style="font-weight: bold;"><a style="float: $stylevar[right]" href="#" onclick="return toggle_collapse('forumhome_$mods[filename]')"><img id="collapseimg_forumhome_$mods[filename]" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" width="15" height="15" border="0" alt="Collapse/Expand" /></a>$vba_options[portal_blockbullet] $mods[title]</td>
</tr>
</thead>
<tfoot style="display: none;"><tr><td></td></tr></tfoot>
<tbody id="collapseobj_forumhome_$mods[filename]">
<tr style="$vbcollapse[collapseobj_forumhome_randomtopic]">
<td class="$getbgrow">
<!-- put module content here -->
</td>
</tr>
</tbody>
</table>
<br />
When you create a new module using this code, the Module Title (in ACP> vBa Settings) will automatically be used as the title when viewing the module. Also, this validates 100% as XHTML 1.0, something many of the others don't do (and my primary reason for creating this version).
Keep in mind that this uses the collapsible image from the default image set. If you're going to use an image of a different size, you'll need to adjust the width and height accordingly.
You can see this in use at a site I'm working on at demo (http://dev.defensivetactics.com/).
I'd appreciate any comments.
Edit: updated code to get rid of annoying "double" bottom border. All I did was add the code in red. Tested and validates fine.