Log in

View Full Version : Forum Home Enhancements - Last Post Enhancement to add forum name with link


mach_y
08-05-2010, 10:00 PM
This mod will change the last post message to fit on two lines instead of 3, and will add the forum name as a link after the name of the thread.

AdminCP -> Styles and Templates -> Style Manager -> Edit Templates (for the style you are editing) -> Forum Home Templates -> forumhome_lastpostby

Replace the entire contents with the following:


<vb:if condition="$show['lastpostinfo']">
<p class="lastposttitle">
<vb:if condition="$show['icon']"><img src="{vb:raw icon.iconpath}" alt="{vb:raw icon.title}" border="0" /></vb:if>
<vb:if condition="$lastpostinfo['prefix']">{vb:raw lastpostinfo.prefix}</vb:if>
<a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_newpost}}#post{vb:raw lastpostinfo.lastpostid}" class="threadtitle" title="{vb:rawphrase go_first_unread_in_thread_x, {vb:raw lastpostinfo.lastthread}}">{vb:raw lastpostinfo.trimthread}</a>
<a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_newpost}}#post{vb:raw lastpostinfo.lastpostid}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
in <a href="{vb:link forum, {vb:raw lastpostinfo}}">{vb:raw lastpostinfo.title}</a>
</p>
<div class="lastpostby">
<vb:if condition="$lastpostinfo['lastposterid']">
{vb:rawphrase by_x_memberaction, {vb:raw memberaction_dropdown}}
{vb:raw lastpostinfo.lastpostdate} <vb:if condition="!$show['detailedtime']"><span class="time">{vb:raw lastpostinfo.lastposttime}</span></vb:if>
<vb:else />
{vb:rawphrase by_x_guest, {vb:raw lastpostinfo.lastposter}} {vb:raw lastpostinfo.lastpostdate} {vb:raw lastpostinfo.lastposttime}
</vb:if>
</div>
</vb:if>

Save.

Show Your Support


To receive notifications regarding updates -> Click to Mark as Installed.
If you like this modification -> Click to Nominate for Modification of the Month.


Screenshot:

merk_aus
08-09-2010, 01:48 AM
Nice small modification that does an absolutely fantastic job. Well done rated and marked installed.

Dr.osamA
08-10-2010, 08:38 AM
thanxx man good work

installed

COL NIL SATIS
08-13-2010, 04:42 PM
Fantastic and looks way way better ....top top work mate ..installed and rates 5

wd4x4
09-23-2010, 11:41 AM
Works great with a sub-forum manager :up: Just need to edit sub's template instead. :D

as7apcool
09-25-2010, 05:34 AM
thanks 4 good work

Dr.osamA
10-13-2010, 07:05 AM
installed in 4.0.7

5 stars

thanxxx

Qrius
10-14-2010, 03:24 AM
Installed v4.06

Working great !!

Thanks.

Skyrider
10-14-2010, 11:35 PM
How exactly is this different from:
https://vborg.vbsupport.ru/showthread.php?t=231919 ?

grey_goose
07-29-2011, 05:58 PM
How exactly is this different from:
https://vborg.vbsupport.ru/showthread.php?t=231919 ?

It adds the forum name the last post is in -- useful if you have sub-forums.

Nice work, installed.