vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Home Enhancements - Last Post Enhancement to add forum name with link (https://vborg.vbsupport.ru/showthread.php?t=248127)

mach_y 08-05-2010 10:00 PM

Last Post Enhancement to add forum name with link
 
1 Attachment(s)
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:

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

Quote:

Originally Posted by FF|Skyrider (Post 2110244)
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.


All times are GMT. The time now is 04:55 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.01610 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete