Widget Framework New Replies

liko881

Member
hello
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
Code:
<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>'}
                                </xen:set>
                            </xen:include>
                        </xen:foreach>
 
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

Code:
{xen:link threads/unread, $thread}

to

Code:
{xen:link posts, $thread.lastPostInfo}
 
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

Code:
{xen:link threads/unread, $thread}

to

Code:
{xen:link posts, $thread.lastPostInfo}
Thanks You bro
 
Back
Top Bottom