1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Position of Posting Date/Time

Discussion in 'Styling and Customization Questions' started by vFranky, Jan 11, 2016.

  1. vFranky

    vFranky Active Member

    Hello,

    the position of date/time of the posting is per default at the end of each posting. Our users don't like this and would prefer to have at the top of the posting instead. Is there an option?

    Thank you in advance!

    Kind regards,
    Frank
     
  2. Sunka

    Sunka Well-Known Member

    I solved this way...

    Add this in Extra.css

    Code:
    .messageUserInfo abbr,
    .messageUserInfo span.DateTime {
        position: relative;
        padding: 5px 10px 5px 10px;
        line-height: 16px;
        display:block;
        font-size: 10.5px;
    }
    
    .messageUserBlock .arrow span {
        border-left-color:#d7edfc !important;
    }
    And in template mesage_user_info
    Find this:
    Code:
    <xen:hook name="message_user_info_avatar" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">
    After that insert:
    Code:
    <xen:datetime time="$post.post_date" />
     
    Focker and vFranky like this.
  3. vFranky

    vFranky Active Member

    Thank you very much.
     
    Sunka likes this.
  4. vFranky

    vFranky Active Member

    Do I have to edit the Extra.css directly? Or is there a way to do it within XenForo?

    @XenForo: Would be fine to have a toggle inside XenForo configuration for this option.
     
  5. Sunka

    Sunka Well-Known Member

    Type extra in admin search, select extra.css, copy/paste code there, save
     
    vFranky likes this.
  6. vFranky

    vFranky Active Member

    Thank you, up and running! (y)
     
    Sunka likes this.

Share This Page