Something like this...

betrocker

New Member
I have my forums aranged in columns and what i want to do is to add the "lastpost" part below the forum description like one on the image below?
How to do that?
 
first take a backup from your template ...

open your " forumhome_lastpostby "

delete all and past this

Code:
<if condition="$show['lastpostinfo']">
<div class="smallfont" align="$stylevar[align=left]">
	<div>
		<span style="white-space:nowrap">
		<if condition="$show['icon']"><img class="inlineimg" src="$icon[iconpath]" alt="$icon[title]" border="0" /></if>
		<if condition="$lastpostinfo['prefix']">
			$lastpostinfo[prefix]
			</span> <span style="white-space:nowrap">
		</if>
		<a href="showthread.php?$session[sessionurl]goto=newpost&t=$lastpostinfo[lastthreadid]" style="white-space:nowrap" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a>
		</span>
	</div>
	<div style="white-space:nowrap<if condition="is_browser('ie', 6)">; float:$stylevar[align=left]</if>">
		<phrase 1="member.php?$session[sessionurl]find=lastposter&f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase></div>

save and ...

open your " forumhome_forumbit_level2_post "

delete all & past this

Code:
<tr align="center"> 
    <td class="alt2"><img src="$stylevar[imgdir_statusicon]/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 href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a> 
        </div> 
        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if> 
        <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> 
        <table border="0" cellpadding="2" cellspacing="2" width="100%"><tr><td> <div class="smallfont" style="border-color: #D0D7E5; border-style: solid; border-width: 1px; background-color: #F7F6F6"> 
    Last Post: $lastpostinfo[lastpostdate]<if condition="!$show['detailedtime']"> $lastpostinfo[lastposttime]</if></div></td></tr></table>  
    </td> 
    <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</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> 
$childforumbits

hope this will work with you
 
Back
Top