XF 1.5 Last Post Avatar URL swap from Membercard to Last Post

DieselMinded

Well-known member
I want to change that the last post avatar on forum home links to the member card and i want it to link to the last post in that forum instead ...

2.webp

can someone help me with this please
 
Code:
<xen:hook name="node_forum_level_2_before_lastpost" params="{xen:array 'forum={$forum}'}" />

        <div class="nodeLastPost secondaryContent">
            <xen:if is="{$forum.privateInfo}">
                <span class="noMessages muted">({xen:phrase private})</span>
            <xen:elseif is="{$forum.lastPost.date}" />
                <xen:if is="@uix_nodeLastPostAvatar AND {$forum.uix_lastPostAvatar}">
                    <xen:avatar user="$forum.uix_lastPostAvatar" size="s" img="true" />
                </xen:if>
                <span class="lastThreadTitle"><span>{xen:phrase latest}:</span> <a href="{xen:link posts, $forum.lastPost}" title="{$forum.lastPost.title}">{$forum.lastPost.title}</a></span>
                <span class="lastThreadMeta">
                    <span class="lastThreadUser"><xen:if is="{xen:helper isIgnored, $forum.last_post_user_id}">{xen:phrase ignored_member}<xen:else /><xen:username user="$forum.lastPost" /></xen:if>,</span>
                    <xen:if is="@uix_relTime && @uix_relTime_nodeLastPost">
                        <a href="{xen:link posts, $forum.lastPost}" title="{$forum.lastPost.title}">{xen:helper uix_datetime, $forum.lastPost.date}</a>
                    <xen:else />
                        <a href="{xen:link posts, $forum.lastPost}" title="{$forum.lastPost.title}"><xen:datetime time="$forum.lastPost.date" class="muted lastThreadDate" data-latest="{xen:phrase latest}: " /></a>
                    </xen:if>
                </span>
            <xen:else />
                <span class="noMessages muted">({xen:phrase contains_no_messages})</span>
            </xen:if>
 
Back
Top Bottom