Back to vBulletin 4.x Template Modifications

Goto last post - Register to enable
Mod Version: 1.00, by AURFSCAN

vB Version: 4.0.8 Rating: (0 vote - 0 average) Installs: 3
Released: 18 Feb 2011 Last Update: Never Downloads: 0
Not Supported Template Edits  

This will disable guests from using the 'Goto last post' feature....why?? ... why not
-done on 4.08, not sure about later versions

edit template
forumhome_lastpostby

find
Code:
<vb:if condition="$lastpostinfo['prefix']">{vb:raw lastpostinfo.prefix}</vb:if>

add after

Code:
<vb:if condition="$show['guest']">
{vb:raw lastpostinfo.trimthread}
<img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post} - Register to enable"  />
<vb:else />
<a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_newpost}}" 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_lastpost}}#post{vb:raw lastpostinfo.lastpostid}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
</vb:if>

edit template
threadbit

find
Code:
<dd>{vb:raw thread.lastpostdate} <em class="time">{vb:raw thread.lastposttime}</em>

add after
Code:
<vb:if condition="$show['guest']">
<img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post} - Register to enable" />
<vb:else />
<a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_lastpost}, 'threadid', 'threadtitle'}#post{vb:raw pageinfo_lastpost.p}" class="lastpostdate understate" title="{vb:rawphrase go_to_last_post}"> &nbsp; <img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
</vb:if>

you can also apply the if/else conditional to Latest post/threads sidebar blocks and cms widgets, editing relevant templates.

Download

No files for download.

Screenshots

Click image for larger version
Name:	goto.jpg
Views:	201
Size:	16.9 KB
ID:	126773  


vblts.ru supports vBulletin®, 2022-2025