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

XF 1.5 Add "Sticky:" in front of thread title

Discussion in 'Styling and Customization Questions' started by dutchbb, Sep 21, 2015.

  1. dutchbb

    dutchbb Well-Known Member

    I found a solution for Polls, but how to add this for stickies?
  2. Mike Creuzer

    Mike Creuzer Well-Known Member

    This can be done by going into thread_list_item:

                <h3 class="title">
                    <xen:if is="{$thread.canInlineMod}"><input type="checkbox" name="threads[]" value="{$thread.thread_id}" class="InlineModCheck" id="inlineModCheck-thread-{$thread.thread_id}" data-target="#thread-{$thread.thread_id}" title="{xen:phrase select_thread}: {$thread.title}" /></xen:if>
                    <xen:if is="{$showSubscribeOptions}"><input type="checkbox" name="thread_ids[]" value="{$thread.thread_id}" /></xen:if>
                    <xen:if is="{$thread.prefix_id}">
                        <xen:if is="{$linkPrefix}">
                            <a href="{xen:link forums, $forum, 'prefix_id={$thread.prefix_id}'}" class="prefixLink"
                                title="{xen:phrase show_only_threads_prefixed_by_x, 'prefix={xen:helper threadPrefix, $thread, plain, ""}'}">{xen:helper threadPrefix, $thread, html, ''}</a>
                        <xen:else />
                            {xen:helper threadPrefix, $thread}
                    <xen:if is="{$thread.sticky}">Sticky: </xen:if>
                    <a href="{xen:link "threads{xen:if '{$thread.isNew} AND {$thread.haveReadData}', '/unread'}", $thread}"
                        title="{xen:if '{$thread.isNew} AND {$thread.haveReadData}', {xen:phrase go_to_first_unread_message}}"
                        class="{xen:if $thread.hasPreview, PreviewTooltip}"
                        data-previewUrl="{xen:if $thread.hasPreview, {xen:link threads/preview, $thread}}">{xen:helper wrap, $thread.title, 50}</a>
                    <xen:if is="{$thread.isNew}"><a href="{xen:link threads/unread, $thread}" class="unreadLink" title="{xen:phrase go_to_first_unread_message}"></a></xen:if>
    Note the red is additional code. Screen Shot 2015-09-21 at 11.16.49 AM.png
  3. Cyb3r

    Cyb3r Well-Known Member

    I like that theme, what theme is that?
  4. Mike Creuzer

    Mike Creuzer Well-Known Member

    Cyb3r likes this.
  5. Cyb3r

    Cyb3r Well-Known Member

  6. Mike Creuzer

    Mike Creuzer Well-Known Member

    If you mean the light and dark version, currently no they are separate themes.

    Feel free to send me a PC if you have more questions :)

Share This Page