Collapsible first posts like vb.org or collapse every post
this will allow each of your posts to be collapsible, i use it to only collapse the first post like here at vb.org.
in postbit legacy find: Code:
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if> Code:
<a href="#top" onclick="return toggle_collapse('firstpost_$post[postid]')"><img id="collapseimg_firstpost_$post[postid]" src="$stylevar[imgdir_button]/collapse_tcat{$vbcollapse['collapseimg_firstpost_' . $post[postid]]}.gif" alt="" border="0" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" /></a> Code:
<tr valign="top"> Code:
<tbody id="collapseobj_firstpost_$post[postid]" style="{$vbcollapse['collapseobj_firstpost_' . $post[postid]]}"> Code:
$template_hook[postbit_end] Code:
</tbody> Code:
<if condition="$post[postcount] == 1"> <a href="#top" onclick="return toggle_collapse('firstpost_$post[postid]')"><img id="collapseimg_firstpost_$post[postid]" src="$stylevar[imgdir_button]/collapse_tcat{$vbcollapse['collapseimg_firstpost_' . $post[postid]]}.gif" alt="" border="0" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" /></a> </if> Download No files for download. Screenshots |
Similar Mods
Show/Hide Sticky Posts (collapsible) | vBulletin 3.5 Template Modifications |