Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
TW7S - Change the look of "Last Post" by Details »»
TW7S - Change the look of "Last Post" by
Version: 1.0.1, by LifesGreatestGift LifesGreatestGift is offline
Developer Last Online: Apr 2015 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.0.0 Rating:
Released: 01-01-2010 Last Update: Never Installs: 336
Template Edits
Re-useable Code Translations  
No support by the author.

Before


After


Click Here for Live Preview.

Instructions:

Open template forumhome_lastpostby

Replace All With:
PHP Code:
<vb:if condition="$show['lastpostinfo']">
    <
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>
    </
p>
    

<
div class="lastpostby">
    <
vb:if condition="$lastpostinfo['lastposterid']">
        {
vb:rawphrase by_x_memberaction, {vb:raw memberaction_dropdown}}{vb:raw lastpostinfo.lastpostdate} {vb:raw lastpostinfo.lastposttime}
<
vb:else />
    {
vb:rawphrase by_x_guest, {vb:raw lastpostinfo.lastposter}} {vb:raw lastpostinfo.lastpostdate} {vb:raw lastpostinfo.lastposttime}
</
vb:if>

    </
div>
    
</
vb:if> 

Version History
v1.0.0 Initial Release
v1.0.1 Guest post bug fixed

To reset back to default just revert the template

Enjoy!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 01-23-2010, 04:00 PM
synseal's Avatar
synseal synseal is offline
 
Join Date: Apr 2009
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks working fine here on 4.0.1 *installed.
Reply With Quote
  #23  
Old 01-24-2010, 12:03 AM
Rob F Rob F is offline
 
Join Date: Oct 2002
Location: Ireland
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice and simple mod. Does exactly as it says on the tin.

Installed. Thanks!
Reply With Quote
  #24  
Old 01-24-2010, 07:38 AM
badawidollah badawidollah is offline
 
Join Date: Nov 2008
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed
my forum look very nice now

but could it show 3 latest thread at forum display?
Reply With Quote
  #25  
Old 01-25-2010, 01:34 PM
nikosb nikosb is offline
 
Join Date: Dec 2008
Location: Greece
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #26  
Old 02-25-2010, 10:00 PM
Fifth Dimension Fifth Dimension is offline
 
Join Date: Jan 2010
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by abualk View Post
What about if I want to do this change in another style? "Not the default style"

Thanke you very much and I hope to find a method to change the look of this :


by this :
Was there ever a resolution to this comment? Have a similar question myself.

Looked at the link provided, but didn't seem to have the code necessary to make the forum show Threads and Posts in two separate columns.

Great original mod (for changing the look of "last post"), btw TheWindows7Site. Installed it and looks great.
Reply With Quote
  #27  
Old 02-25-2010, 10:11 PM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Stuff.

But I am running 4.0.2 PL1 and it is included with that.

Thank you very much though.
Reply With Quote
  #28  
Old 02-25-2010, 10:20 PM
Fifth Dimension Fifth Dimension is offline
 
Join Date: Jan 2010
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's included in 4.0.2, Welshy? Whereabouts? Thanks. Am also running 4.0.2.
Reply With Quote
  #29  
Old 02-26-2010, 09:46 AM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fifth Dimension View Post
It's included in 4.0.2, Welshy? Whereabouts? Thanks. Am also running 4.0.2.
In the "forumhome_lastpostby" template, Mate.

The code I have in there is shown below, and I have also attached a couple of screenshots. (one is the forum view and the other is the thread view).

Code:
<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>
	</p>
	<div class="lastpostby">
	<vb:if condition="$lastpostinfo['lastposterid']">
		{vb:rawphrase by_x_memberaction, {vb:raw memberaction_dropdown}}
	<vb:else />
		{vb:rawphrase by_x_guest, {vb:raw lastpostinfo.lastposter}}
	</vb:if>
	</div>
	<p class="lastpostdate">{vb:raw lastpostinfo.lastpostdate} <vb:if condition="!$show['detailedtime']"><span class="time">{vb:raw lastpostinfo.lastposttime}</span></vb:if></p>
<vb:else />
	<span class="lastpostdate">{vb:raw lastpostinfo.lastpostdate} <vb:if condition="!$show['detailedtime']"><span class="time">{vb:raw lastpostinfo.lastposttime}</span></vb:if></span>
	<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>
</vb:if>
Attached Images
File Type: jpg thread.jpg (16.0 KB, 0 views)
File Type: jpg forum.jpg (18.5 KB, 0 views)
Reply With Quote
  #30  
Old 03-05-2010, 03:16 AM
zeroality zeroality is offline
 
Join Date: Jul 2006
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My forum has staff names in bold so it is making the usernames wide enough to force the post date/time/year to wrap. IE:

by Mediocrity_Incarnate 03-03-
2010 06:13 PM

I tried looking in forumhome to change the width of the forum name/description column but I can't seem to find it. I like this mod and wouldn't mind shortening that column to accomodate this.

Edit: Btw marked as installed after posting so I don't know if that will show.
Reply With Quote
  #31  
Old 03-12-2010, 10:31 PM
Markos Markos is offline
 
Join Date: Aug 2006
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed thanks makes it look better :
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:51 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10209 seconds
  • Memory Usage 2,347KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete