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

As Designed Phrase "sort_by" not showing in thread list

Discussion in 'Resolved Bug Reports' started by ManOnDaMoon, Nov 21, 2012.

  1. ManOnDaMoon

    ManOnDaMoon Well-Known Member

    As detected by Neil E.

    The thread_list template contains the following:
    HTML:
        <dl class="sectionHeaders">
            <dt class="posterAvatar"><a><span>{xen:phrase sort_by}:</span></a></dt>
            <dd class="main">
                <a href="{xen:link forums, $forum, '_params={$orderParams.title}'}" class="title"><span>{xen:phrase title}{xen:helper sortArrow, $order, $orderDirection, title}</span></a>
                <a href="{xen:link forums, $forum, '_params={$orderParams.post_date}'}" class="postDate"><span>{xen:phrase start_date}{xen:helper sortArrow, $order, $orderDirection, post_date}</span></a>
            </dd>
        </dl>
    But on XenForo and other XF sites, the phrase loaded with
    Code:
    {xen:phrase sort_by}
    does not show up in any thread list: Capture d’écran 2012-11-21 à 23.37.53.png

    The text shows up when the template is modified as follows ("dt" element becomes "dd"):
    Code:
        <dl class="sectionHeaders">
            <dd class="posterAvatar"><a><span>{xen:phrase sort_by}:</span></a></dt>
            <dd class="main">
                <a href="{xen:link forums, $forum, '_params={$orderParams.title}'}" class="title"><span>{xen:phrase title}{xen:helper sortArrow, $order, $orderDirection, title}</span></a>
                <a href="{xen:link forums, $forum, '_params={$orderParams.post_date}'}" class="postDate"><span>{xen:phrase start_date}{xen:helper sortArrow, $order, $orderDirection, post_date}</span></a>
            </dd>
        </dl>
    though it is printed on two lines due to the column being not wide enough.
     
    Jake Bunce likes this.
  2. Russ

    Russ Well-Known Member

    Well not sure if it's intended... I know they're ones for clean interfaces.

    discussion_list.css :
    This hides it:
    Code:
        .discussionList .sectionHeaders dt span
        {
            display: none !important;
        }
    
    For those who want to display it:


    Code:
    .discussionList .posterAvatar {
    width: 60px;
    }
    .discussionList .sectionHeaders dt span  {
    display: inline !important;
    }
     
    
     
    Jake Bunce and ManOnDaMoon like this.
  3. Neil E.

    Neil E. Active Member

    TMS edit on discussion_list
    search > first code block from Russ
    replace> second code block by Russ

    Problem solved, many thanks for the help.
     
    Jake Bunce likes this.
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Clearly intentional given the CSS.
     
  5. Jeremy P

    Jeremy P Well-Known Member

    It used to be visible, it was removed on purpose.
     
  6. Neil E.

    Neil E. Active Member

    I like it there only for the reason that not all headers include the sort function. This way the function is indicated when available.

    [Yes it's "small potatoes".]
     

Share This Page