edit info in new posts widget - sidebar

Hi,

i would like to remove some info from this widget if it is possible.

the name of the poster
the time it was posted
the word "latest"

Is that possible? thanks in advance

(Bolt style)
 
Solution
Sorry for the delay. This would be an edit inside of "thread_list_macros"

Find:

Code:
<xf:macro name="item_new_posts" arg-thread="!">
    <div class="contentRow">
        <div class="contentRow-figure">
            <xf:avatar user="$thread.LastPoster" size="xxs" defaultname="{$thread.last_post_username}" />
        </div>
        <div class="contentRow-main contentRow-main--close">
            <xf:if is="$thread.isUnread()">
                <a href="{{ link('threads/unread', $thread) }}">{{ prefix('thread', $thread) }}{$thread.title}</a>
            <xf:else />
                <a href="{{ link('threads/post', $thread, {'post_id': $thread.last_post_id}) }}">{{ prefix('thread', $thread) }}{$thread.title}</a>
            </xf:if>...

Russ

Pixel Exit Staff
Sorry for the delay. This would be an edit inside of "thread_list_macros"

Find:

Code:
<xf:macro name="item_new_posts" arg-thread="!">
    <div class="contentRow">
        <div class="contentRow-figure">
            <xf:avatar user="$thread.LastPoster" size="xxs" defaultname="{$thread.last_post_username}" />
        </div>
        <div class="contentRow-main contentRow-main--close">
            <xf:if is="$thread.isUnread()">
                <a href="{{ link('threads/unread', $thread) }}">{{ prefix('thread', $thread) }}{$thread.title}</a>
            <xf:else />
                <a href="{{ link('threads/post', $thread, {'post_id': $thread.last_post_id}) }}">{{ prefix('thread', $thread) }}{$thread.title}</a>
            </xf:if>

            <div class="contentRow-minor contentRow-minor--hideLinks">
                <ul class="listInline listInline--bullet">
                    <li>{{ phrase('latest_x', {'name': $thread.last_post_cache.username}) }}</li>
                    <li><xf:date time="{$thread.last_post_date}" /></li>
                </ul>
            </div>
            <div class="contentRow-minor contentRow-minor--hideLinks">
                <a href="{{ link('forums', $thread.Forum) }}">{$thread.Forum.title}</a>
            </div>
        </div>
    </div>
</xf:macro>

You can remove any elements you don't want here. You mentioned the name of the poster, but that's next to the latest word so wasn't sure.

Sounds like you want to remove this:

Code:
            <div class="contentRow-minor contentRow-minor--hideLinks">
                <ul class="listInline listInline--bullet">
                    <li>{{ phrase('latest_x', {'name': $thread.last_post_cache.username}) }}</li>
                    <li><xf:date time="{$thread.last_post_date}" /></li>
                </ul>
            </div>
to achieve what you're after.
 
Solution

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.