XF 2.2 Hide Post Thread Button Without Removing Permission

Robert4049

New member
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.png
 

Brogan

XenForo moderator
Staff member
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.
 
Top