• 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

ManOnDaMoon

Well-known member
#1
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.
 

Russ

Well-known member
#2
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;
}
 

Neil E.

Active member
#6
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".]