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

Widget Framework New Replies

Discussion in 'XenForo Development Discussions' started by liko881, Aug 21, 2013.

  1. liko881

    liko881 Member

    Please tell me how to do that when you click on the last message is passed to the last message and not on where it was left last post
    Please tell us what's you want to change
    <xen:elseif is="{$widget.options.type} == 'recent'" />
                            <xen:foreach loop="$threads" value="$thread">
                                <xen:include template="wf_widget_threads_thread_sidebar">
                                    <xen:set var="$_threadLink">{xen:if '{$visitor.user_id} > 0', {xen:link threads/unread, $thread}, {xen:link posts, {xen:array 'post_id={$thread.last_post_id}'}}}</xen:set>
                                    <xen:set var="$_secondRow">
                                        {xen:phrase wf_x_replied, 'user=<a href="{xen:link 'members', $thread}">{$thread.username}</a>'}
  2. JulianD

    JulianD Well-Known Member

    If I understand correctly, you want to redirect your users to the last message of a thread instead of the first unread message.

    You need to change your link from

    {xen:link threads/unread, $thread}

    {xen:link posts, $thread.lastPostInfo}
    liko881 likes this.
  3. liko881

    liko881 Member

    Thanks You bro

Share This Page