Back to vBulletin 3.8 Template Modifications

Collapsible first posts like vb.org or collapse every post
Mod Version: 1.00, by RyanFabbro

vB Version: 3.8.7 Rating: (0 vote - 0 average) Installs: 4
Released: 08 Sep 2012 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  

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]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
below add:
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>
then find:
Code:
<tr valign="top">
above add
Code:
<tbody id="collapseobj_firstpost_$post[postid]" style="{$vbcollapse['collapseobj_firstpost_' . $post[postid]]}">
then search for
Code:
$template_hook[postbit_end]
above add
Code:
</tbody>
to only display on first post wrap that first code you add with the if condition like so:
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

Click image for larger version
Name:	9-7-2012 9-36-41 PM.jpg
Views:	193
Size:	43.0 KB
ID:	141072   Click image for larger version
Name:	9-7-2012 9-37-06 PM.jpg
Views:	163
Size:	41.0 KB
ID:	141073   Click image for larger version
Name:	9-7-2012 10-02-44 PM.jpg
Views:	177
Size:	59.6 KB
ID:	141074  

Similar Mods

Show/Hide Sticky Posts (collapsible) vBulletin 3.5 Template Modifications

vblts.ru supports vBulletin®, 2022-2024