As designed Phrase "sort_by" not showing in thread list

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.webp

The text shows up when the template is modified as follows ("dt" element becomes "dd"):
Rich (BB 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.
 
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;
}
 
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".]
 
Top Bottom