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

XF 1.4 Remove Inline Display from Profile Posts

Discussion in 'Styling and Customization Questions' started by Amaury, Jan 24, 2015.

  1. Amaury

    Amaury Well-Known Member

    I've added a line break for profile posts on the sidebar so it's not easily confused that the username is part of the message, like so:

    Posts 1.png

    I also wanted to do it on the main profile posts page, profiles, and overlays that you bring up from the sidebar block (all of which I'm sure come from the same template), but differently since I have more room to work with. However, after some extensive searching, I can't seem to find the template I need to edit for statuses / posts.

    I managed to get it for comments, though:

    Posts 2.png

    Edit: Scratch that. A line break will be sufficient for profile statuses / posts because there are sometimes two names (when you post on another user's profile).

    Still don't know what I need to edit, though.
     
    Last edited: Jan 24, 2015
  2. Steve F

    Steve F Well-Known Member

    You should be able to do this with CSS and not use template edits.

    Remove the display: inline; from the class and it will drop to the next line.

    upload_2015-1-24_18-2-5.png
     
    Amaury likes this.
  3. Amaury

    Amaury Well-Known Member

    Thanks, Steve. I'd prefer to make the change in EXTRA.css, so what would I use? display: block?
     
  4. Steve F

    Steve F Well-Known Member

    display: inline-block; or block should both work okay I think.
     
    Amaury likes this.
  5. Amaury

    Amaury Well-Known Member

    Thank you, Steve. Just block worked perfectly.

    Just for consistency, I reverted my changes to profile_post_comment and profile_post_list_item_simple and used the following CSS in EXTRA.css instead:

    Code:
    .messageSimple .commentContent blockquote
    Code:
    .profilePostListItem .messageContent blockquote
     
  6. Amaury

    Amaury Well-Known Member

    @Steve, somewhat related, so I'm just posting here again.

    For the news feed -- of the three areas it appears in -- the inline is fine, but just to make it easier to distinguish the username from the message when it comes to profile statuses, I'd like to add a phrase following the username that says "updated their status" or something like that, and I know how to create the phrase and call it in the relevant template, but I don't know what template to edit, again.

    http://www.kh-flare.net/recent-activity/

    I tried doing a template search for the phrase {xen:phrase news_feed_post_insert}, but no results came up. I also tried {xen:phrase recent_activity}, and the only news feed templates that came up were templates like news_feed_page_global, but all they contain is this and it doesn't have anything with the actual feed:

    Code:
    <xen:title>{xen:phrase recent_activity}</xen:title>
    <xen:description>{xen:phrase activity_stream_for_all_registered_members_at_x, 'board_title={$xenOptions.boardTitle}'}</xen:description>
    
    <xen:require js="js/xenforo/news_feed.js" />
    
    <div class="newsFeed">
        <xen:include template="news_feed">
            <xen:set var="$noContentHtml">{xen:phrase news_feed_is_currently_empty}</xen:set>
        </xen:include>
        <xen:include template="news_feed_end">
            <xen:set var="$itemLoaderUrl">{xen:link recent-activity}</xen:set>
        </xen:include>
        <xen:include template="preview_tooltip" />
        <div class="extra">
            <xen:if is="{$visitor.user_id}"><a href="{xen:link account/news-feed}" class="button smallButton">{xen:phrase your_news_feed}</a></xen:if>
        </div>
    </div>
    
    <xen:sidebar>
     
  7. Steve F

    Steve F Well-Known Member

    That is in template news_feed_item_profile_post_insert.
     
    Amaury likes this.
  8. Amaury

    Amaury Well-Known Member

    Perfect! How's that look? (y)
     
    Steve F likes this.

Share This Page