XF 2.2 Hide Post Thread Button Without Removing Permission

Why?
The use case is that we have forms plugin that requires certain fields and it's tagged to the top as a link but yet people still click the "Post Thread" and type whatever.
The forms plugin emulates the user so they still need permission to post, but by "hiding" the button for certain nodes it would be prevent this error.

https://nextgen-rp.com/forums/bugs.29/

1657123804870.webp
 
Solution
Add this to the extra.less template.

HTML:
[data-container-key="node-2"],
[data-container-key="node-4"]
{
    .p-title-pageAction
    {
        display: none;
    }
}

Change/add node IDs as required.
Add this to the extra.less template.

HTML:
[data-container-key="node-2"],
[data-container-key="node-4"]
{
    .p-title-pageAction
    {
        display: none;
    }
}

Change/add node IDs as required.
 
Solution
Top Bottom