Alternative Forumhome Lastpost Display

cinneke

New Member
This tutorial changes the look of the last posted post in the forumhome template. The vertical column for the last posts disappears and a box with the last posted post appears below the forum description. Also see the included screenshot to get a better view of this mod.

History:
Version 1.0: First release.
Version 1.1: Added collapsable boxes.
Version 1.2: Fixed boxes for subforums.
Version 1.3: Fixed scrambled box without forum description, fixed box for no-posts forum, added missing "collapseimg" variable to lastpostby.gif, compatible with vBulletin 3.7.x.
Version 1.31: Small adjustment to the "forumhome_forumbit_level2_post" template.
 
instructions make no sense.

replace what?????

Code:
Replace with:
----------
<tbody>
	<tr align="center">
		<td><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
		<td class="alt1Active" align="$stylevar[align=left]" id="f$forum[forumid]">
			<div>
				<a style="float:$stylevar[align=right]" href="#top" onclick="return toggle_collapse('forumhome_lastpostby_$forum[forumid]')"><img id="collapseimg_forumhome_lastpostby_$forum[forumid]" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_lastpostby].gif" alt="" border="0" /></a><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
				<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
			</div>
			<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<div id="collapseobj_forumhome_lastpostby_$forum[forumid]" class="smallfont" style="padding:6px; margin-top:6px; border: 1px solid #000000; $vbcollapse[collapseobj_forumhome_lastpostby]" align="$stylevar[align=left]">$forum[lastpostinfo]</div>
			<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
			<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
			</td>
		<td class="alt1">$forum[threadcount]</td>
		<td class="alt2">$forum[replycount]</td>
		<if condition="$vboptions['showmoderatorcolumn']">
		<td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
		</if>
	</tr>
</tbody>
<if condition="$childforumbits">
<tbody>
	$childforumbits
</tbody>
</if>
----------
 
Back
Top