vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Move Lastpost Date / Time to Same Line as Lastpost Person? (https://vborg.vbsupport.ru/showthread.php?t=277632)

TenaciousD 01-27-2012 12:47 PM

Move Lastpost Date / Time to Same Line as Lastpost Person?
 
Can someone suggest an easy means of moving the lastpostdate on forumhome to align beside (and to the right of) last person posting, leaving both sets of information to share a single line (but remain below thread information)?

Please see the screenshot for an example of the effect I would like to achieve.

https://vborg.vbsupport.ru/external/2012/01/17.png

TenaciousD 02-15-2012 12:58 PM

Bump. Anyone? I've tried adjusting the width, with no success.

Lynne 02-15-2012 03:15 PM

I think you'll need to modify the template since the line with "by xxxx" is a <div> and the line with the time is a <p>. You'll want to combine them. (If just by CSS, then you'd need to make them both display as inline-blocks and float the first one left, but I think you'd have to set a width also that would work for all usernames - better to modify the template.)

LinkBliss_com 05-01-2012 12:43 PM

I managed to do this somewhat though I'm not totally satisfied with it, I wish the date was a smaller font size. I removed the time stamp because it will still wrap with smaller screen sizes/longer user names

Here is my site --
http://cpsobsessedforums.com/forum.php

And my slightly modified template code for forumhome_lastpostby --

HTML Code:

<vb:if condition="$show['lastpostinfo']">
        <p class="lastposttitle">
        <vb:if condition="$show['icon']"><img src="{vb:raw icon.iconpath}" class="postimg" 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}}" 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>
        </p>
        <div>
        <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> on {vb:raw lastpostinfo.lastpostdate}
        </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_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>

Eric

Lynne 05-01-2012 03:56 PM

For the date, modify the stylevar "small_fontSize" OR, add to additional.css:

HTML Code:

.forumbit_post .forumlastpost .lastpostdate {
        font-size: 9px;
}



All times are GMT. The time now is 07:05 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.01102 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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