Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

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
  #82  
Old 01-21-2012, 05:47 PM
del Drago's Avatar
del Drago del Drago is offline
 
Join Date: Dec 2010
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This doesn't seem to work in 4.1.10 after upgrading. It's causing a conflict. Any ideas?
Reply With Quote
  #83  
Old 03-08-2012, 08:55 AM
Divokymuz Divokymuz is offline
 
Join Date: Jan 2002
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in 4.1.11 it also does not work. :-(
Reply With Quote
  #84  
Old 03-13-2012, 02:39 PM
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
Location: TURKEY - Istanbul
Posts: 437
Благодарил(а): 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 :

I need also this style :up:
Reply With Quote
  #85  
Old 03-15-2012, 10:42 PM
BF777 BF777 is offline
 
Join Date: Jan 2007
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gezuvor View Post
Working in 4.1.8 but I have a question. If I wanted to put a comma (,) between the poster and the date, is it as simple as adding the comma between the vb:rawphrase coding?
Where exactly did you put the comma? I'd like to do that as well because in IE the name and date are too close together.
Reply With Quote
  #86  
Old 03-15-2012, 10:48 PM
BF777 BF777 is offline
 
Join Date: Jan 2007
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I figured it out. Here's how I got it to work for VB 4.1.11

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

Instead of a comma, I used a hyphen and it looks good. I even added the @ symbol between the date and time so now it looks like this.

by Jimmy - Today @ 10:00 a.m.

Installed. Thank you.
Reply With Quote
  #87  
Old 06-04-2012, 05:31 AM
karkey karkey is offline
 
Join Date: Feb 2010
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works fine on 4.2.0 with, thank you

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: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>
Reply With Quote
Благодарность от:
cherylferraro
  #88  
Old 06-16-2012, 03:24 PM
peugeot405's Avatar
peugeot405 peugeot405 is offline
 
Join Date: Feb 2010
Posts: 312
Благодарил(а): 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 :
I have also been looking for this. haven't found it yet. Does anyone knows how to do this?

http://www.thewindows7site.com/forum...php?styleid=49 is a different site now.

I tried the e-Default Style - Separate Title/Views/Replies/Posts [Tables] found here: https://vborg.vbsupport.ru/showthrea...=246083&page=2 but the style doesn't work with the latest vb versions.
Reply With Quote
  #89  
Old 08-20-2012, 02:00 AM
Ikarrus2's Avatar
Ikarrus2 Ikarrus2 is offline
 
Join Date: Jan 2012
Location: U.S.A
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BF777 View Post
Ok, I figured it out. Here's how I got it to work for VB 4.1.11

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

Instead of a comma, I used a hyphen and it looks good. I even added the @ symbol between the date and time so now it looks like this.

by Jimmy - Today @ 10:00 a.m.

Installed. Thank you.
That did the trick in 4.2 also .. thanks
Reply With Quote
  #90  
Old 11-08-2012, 08:34 PM
synseal's Avatar
synseal synseal is offline
 
Join Date: Apr 2009
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ndut View Post
how to do that?
Just add the red part or copy and paste the whole of this.

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}}&nbsp;|&nbsp{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>
Attached Images
File Type: jpg lpb.jpg (9.5 KB, 0 views)
Reply With Quote
  #91  
Old 11-18-2012, 01:43 AM
killerford's Avatar
killerford killerford is offline
 
Join Date: Jan 2012
Location: United Kingdom
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work for 4.2?
Reply With Quote
Reply

Thread Tools

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 05:14 PM.


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.09004 seconds
  • Memory Usage 2,357KB
  • Queries Executed 28 (?)
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
  • (2)bbcode_code
  • (1)bbcode_php
  • (5)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete