PDA

View Full Version : how to add "go to first post" icon in the thread list


radiofranky
07-01-2011, 06:31 PM
Hi,
I was wondering how to add "go to first post" feature on vb 4.14?
the little black arrow down and link to the "first post".

thanks

LifesGreatestGift
07-01-2011, 08:09 PM
Refer to image. Not really sure what you are asking.

radiofranky
07-01-2011, 08:13 PM
the down arrow before the forum topic. Thanks

LifesGreatestGift
07-01-2011, 08:24 PM
open template forumhome_lastpostby

Find:

<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>

Add after:

<a href="{vb:link thread, {vb:raw threadinfo}}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" title="Go to first post" /></a>

Find:

<span class="lastpostdate">{vb:raw lastpostinfo.lastpostdate} <vb:if condition="!$show['detailedtime']"><span class="time">{vb:raw lastpostinfo.lastposttime}</span></vb:if></span>

Add before:

<a href="{vb:link thread, {vb:raw threadinfo}}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" title="Go to first post" /></a>

Feel free to change the image and fit the code to your needs.

radiofranky
07-01-2011, 09:02 PM
thanks. One more question, I guess I don't have the image file set. Where and how to set that?

--------------- Added 1309558047 at 1309558047 ---------------

I noticed your code is for "lastest post". I would like to have the "first post" down arrow displayed.

thanks