Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Needs more customization of error message #14

Open
osarusan82 opened this issue Apr 6, 2017 · 1 comment
Open

Needs more customization of error message #14

osarusan82 opened this issue Apr 6, 2017 · 1 comment

Comments

@osarusan82
Copy link

The error message when visiting a restricted forum ("This forum is for members only.") needs more customization ability. Right now the text gets slapped onto the top of the page and in my case is appended to the breadcrumb trail. It's very hard to see and also looks bad.

The ability to add a few html tags like div or p or br, or the ability ot adjust text size or weight would go a long way to help make the error message more visible.

@andrewlimaza
Copy link
Collaborator

Hi @osarusan82

I know this issue is old, and I still see that this is still occurring. Due to the lack of hooks on the bbPress forum archive page it's limiting for us.

There is a filter to adjust the message contents here - https://github.com/strangerstudios/pmpro-bbpress/blob/dev/pmpro-bbpress.php#L168

I do think this can be improved to allow for div's etc.

What you can do is unhook this function, and then hook it into wp_head for example and then create your own function/message for the ?noaccess message or even redirect user's to somewhere else.

Here's a link to the full function - https://github.com/strangerstudios/pmpro-bbpress/blob/dev/pmpro-bbpress.php#L161-L172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants