Forum Replies Created
Now I just need to hide the toolbar for non-admins (code for this is above – thanks, Robin) and put and edit profile link where I need it to be in the menu to display only when users are logged in.
***Apologies for all the posts I have made but there is a bug with this forum that was stopping me posting (and worse, deleting my posts so I needed to type them again). The only way I could get it to work was to split the post into smaller parts***
…3) I configured bbP Members Only to redirect non-logged-in users to the above page when they try to access forums
4) I created a menu item which is a custom link, directing to ‘…/forums’
5) I installed Peter’s login redirect https://wordpress.org/plugins/peters-login-redirect/ and configured it to take users directly to ‘…/forums’ when they log in and the home page when the log out.
Okay I managed to do roughly what I wanted without changing the functions.php. Here’s how:
1) I installed bbP Members Only plugin https://wordpress.org/plugins/bbpress-members-only/, I then created a test forum and topic
2) I created a page called ‘member login’ and put the [bbp-login] shortcode in this page (no menu link for this page)….
Something is wrong here, I am trying to post a solution to my problem and it keeps vanishing or, when I paste it in from text edit (after having to type it out a second time), giving me errors
ERROR: Slow down; you move too fast.
ERROR: Duplicate reply detected; it looks as though you’ve already said that!
What is going on with this forum? I can’t see my posts
Just to add to the above. I get the same warning if the forum index is on a different page to the login. It appears when you logout.
Sorry for disappearing on this. I was so busy with the rest of the site, I had to leave the forum to one side.
Anyway, thanks for your suggestions above. I tried them out and have unfortunately hit a couple of snags
1) I’m finding that once I login using the BBP login form, I’m left with a blue box that says ‘You are already logged in’. Is it possible to make this disappear, once logged in. Or if not, have you redirected to a different page once successfully logged in?
2) Is it possible to say exactly where in the menu the ‘Edit Profile’ goes? I would prefer it not to be a top level menu item and to go into the dropdown menu instead
3) Is the intention that I put the [bbp-forum-index] shortcode underneath the [BBP-login] shortcode? I want people to be taken straight to the forum once they have succesfully logged in. At the moment when I put those two shortcodes on a page together, I am getting a php error along the lines of
Warning: Cannot modify header information - headers already sent by...
I think this might be to do with me using the Genesis framework?
I have alreday installed the Genesis Extend BBpress plugin
Thanks again for the reply, Robin.
I want the forum menu link to be visible but nothing else, no forum titles/topics etc simply a login panel and a message explaining that the forum is for members only.
If I disable the toolbar in this way, will I need a plugin to allow users to make basic changes to their profile in an environment that is consistent with the front end of the website?
Thanks for your reply, Robin. I appreciate your help and advice.
I have tried to set things up as you suggest but when I change the forum to private, there is a message displayed which just says “Oh, bother! No forums were found here” rather than a log in panel.
What I’d like is a short message along the lines of ‘this is a private forum for members of …. only’ please login below to participate’ and then the login panel.
Also, will this method of private forum display the admin bar once the user is logged? If possible, I would like to keep them out of the back end of the site altogether and keep any user profile options styled consistently with the front end of the website.