XF 2.3 How to remove the "Post thread in..." pop-up?

collantphile

Active member
Hi everyone, please I would to know how to remove the "Post thread in..." pop-up in the forums (not on the home page)?
In sections where I have subforums, I would like the user not to have to choose from all the forums and to immediately access the Post thread page.

2025-01-21 13_50_40-2025-01-21 13_47_57-FireShot Capture 107 - 🔐 Le meilleur d'internet pour ...webp

But on the other hand, I want this pop-up to remain active only for the forum home page. I don't want to disable it for the home page.
 
Last edited:
That seems like some sort of add-on/custom edit. The default functionality as far as I'm seeing does not do this. Default code on "forum_view" which I believe is the template you're seeing has this:

Code:
<xf:pageaction if="$forum.canCreateThread() OR $forum.canCreateThreadPreReg()">
    <xf:button href="{{ link('forums/post-thread', $forum) }}" class="button--cta" icon="write" rel="nofollow">
        {{ $forum.TypeHandler.getTypeActionPhrase('cta') ?: phrase('post_thread') }}
    </xf:button>
</xf:pageaction>

Where as the forum home page has this:
Code:
        <xf:button href="{{ link('forums/create-thread') }}" class="button--cta" icon="write" overlay="true" rel="nofollow">
            {{ phrase('post_thread...') }}
        </xf:button>

You can see the overlay="true" in the home page. That doesn't exist on the forum_view template.
 
Hi Russ, OK according to you it would need a custom add-on. I saw that on an italian forum (under Xenforo) that it works for them: https://www.phica.eu
Thank you very much for your opinion, it helps me a little to move forward, I will take a look at the "forum_view" template.
It's complicated from what I understood, the piece of code to remove would not necessarily contain the word "overlay" from what I understood, Unless I'm mistaken.
 
Back
Top Bottom