XF 2.1 Add button to index page

Dubbed Navigator

Active member
Hello

Could anyone please share / advise what code I would need to place and where in order to add a "add media" (for the XFMG) button next to post thread?

1580379962829.webp

I want to make it so users can add media as quickly as possible

Thanks
 
@Dubbed Navigator

Template forum_overview_wrapper
Find:
Code:
    <xf:if is="$xf.visitor.canCreateThread() OR $xf.visitor.canCreateThreadPreReg()">
        <xf:button href="{{ link('forums/create-thread') }}" class="button--cta" icon="write" overlay="true">
            {{ phrase('post_thread...') }}
        </xf:button>
    </xf:if>
Add above (or below):
Code:
    <xf:if is="$xf.visitor.canAddMedia()">
        <xf:button href="{{ link('media/add') }}" class="button--cta" icon="add" data-xf-click="overlay">
            {{ phrase('xfmg_add_media...') }}
        </xf:button>
    </xf:if>

..better late than never! 😅
 
Back
Top Bottom