xF2 Template Modification Fast Reply Button for Threads

uydudoktoru

Tanınmış Üye
Yönetici
Yönetici
With this guide you can add a Fast Reply button at top of thread, which can be useful when replying.

No need to scroll down to bottom of the page.


1592139012786.png

Open thread_view template, find:
Kod:
<xf:if contentcheck="true">
    <div class="buttonGroup-buttonWrapper">

Add ABOVE
Kod:
<a href="{{ link('threads/reply', $thread) }}" class="button--link button" data-xf-click="scroll-to" data-silent="true"><span class="button-text">
                                Fast Reply
                        </span></a>

At the end your code must look like this:
Kod:
<a href="{{ link('threads/reply', $thread) }}" class="button--link button" data-xf-click="scroll-to" data-silent="true"><span class="button-text">
                                Fast Reply
                        </span></a>
                    <xf:if contentcheck="true">
                        <div class="buttonGroup-buttonWrapper">

Save and enjoy.
 
Geri
Yukarı