What’s the best way to go about adding a custom page under the bbPress directory (/forums)?
I’ve created a new page in WordPress that uses bbPress shortcodes. I’d like the URL to remain under ‘/forums’ like ‘/forums/new-page’. WordPress automatically converts the directory to /forumsnew-page (due to a conflict with bbPress using /forums)
Any help would be greatly appreciated!
We’re getting an email to noreply@ourwebsite.com every single time someone posts a reply. Looking into bbpress/includes/common/function.php starting on line 1023 it looks like this is the intended behavior. It sends an email to:
$do_not_reply = '<noreply@' . ltrim( get_home_url(), '^(http|https)://' ) . '>';
…and it BCC’s any users who are subscribed:
wp_mail( $do_not_reply, $subject, $message, $headers );
This seems silly. Am I really reading this right? Why can we not disable emails coming to noreply@ ? Big forums will get hundreds of emails a day….
Robin,
Can you work on my forums work, I have some theme related work left and few other settings. I guess it would take max 6-7 hours to you to complete this. I have seen your website, and I understand that your forte is bbPress.
Please let me know if you are interested, then we can discuss other things e.g. payments, time etc.
Thanks!
either :
shortcode [bbp-topic-index]
or
bbp additional shortcodes
Hi All,
I’m beginner in bbPress development. Recently I’ve installed bbPress forum. My Query is:
On homepage of my forum (front-end), I can see only list of Forums (Forums Block) but I want to show Topic block as well just below forum block Could you guys please tell me that how to do it?
Cheers 🙂
Hi, am using wp 4.0, twenty twelve theme, am having trouble getting the forum to look nice in iphone etc..
http://photohunters.org/photohunters/lets-talk/
there is a rather large space on right hand side for some reason, the titles “topics” and “post” are for some reason cut and on 2 lines
CAN ANYONE HELP?
ps. have had to disable the sidebar as it looked ridiculous, not sure how to solve that…
thank you in advance
Melanie
My topics were not showing and I found that a recent install of coursepress plugin was the problem. Is there a way to fix this? Both plugins I need! They are the ony ones I’ve found that can do what I need.
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)….
Dear forum,
I am new to WordPress and bbPress. I am looking for the following solution and hope some of you can help me along. Unfortunately, all my attempts of getting the stuff together myself failed.
I have a very simple site that only displays some information on a couple of pages. Now I would like to introduce a forum that is only accessible for registered users. (I am in no need to automate a process of registration since the number of users is very small.) I figured out how to set up the forum with categories etc. and it looks charming. However, I am not able to create any topics in the forums (apart form the admin panels) and the following message appears: “You must be logged in to create new topics.”
I have now the following question: How can I get a user to login in order to post to the forum?
Thank you in advance for any help, link, suggestion.
Regards
Woltan
you add this to your themes functions.php or a functionality plugin.
you then use css to style the roles from there.
add_filter('bbp_before_get_reply_author_role_parse_args', 'ntwb_bbpress_reply_css_role' );
function ntwb_bbpress_reply_css_role() {
$role = strtolower( bbp_get_user_display_role( bbp_get_reply_author_id( $reply_id ) ) );
$args['class'] = 'bbp-author-role bbp-author-role-' . $role;
$args['before'] = '';
$args['after'] = '';
return $args;
}
add_filter('bbp_before_get_topic_author_role_parse_args', 'ntwb_bbpress_topic_css_role' );
function ntwb_bbpress_topic_css_role() {
$role = strtolower( bbp_get_user_display_role( bbp_get_topic_author_id( $topic_id ) ) );
$args['class'] = 'bbp-author-role bbp-author-role-' . $role;
$args['before'] = '';
$args['after'] = '';
return $args;
}
It grabs the topic or reply author role and adds another CSS class with prefix bbp-role- so you now have a new set of CSS classes e.g. bbp-role-keymaster, bbp-role-moderator, bbp-role-participant etc that you can then add your custom CSS styles to.
link this was from
Topic background color depending on role
Hi Robin, thanks for the reply.
I’ve only just come back to this problem, and I followed your advice with the plugins. I don’t know why I didn’t try it before. It seems the custom permalinks plugin was causing the error. I’ve now disabled it, however am without custom permalinks for my site.
Does anyone have any experience successfully using custom permalinks with bbpress?
AH,…
user-details.php is file im looking for
So if i can add that custom link below:
<a href="<?php bbp_user_profile_edit_url(); ?>" title="<?php printf( esc_attr__( "Edit %s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Edit', 'bbpress' ); ?></a>
So need link to http://wotlabs.net/na/player/%s i guess? 🙂
I am not able to change my bbPress forum to be locked so only members in our Membership site can access it. Is that possible? We use WishList Member.
Also, no one but the website administrator can create new topics on the forum. How can I change this?
It says “You must be logged in to create new topics.” but when our members log in, it says “You cannot create new topics.”
@themesdefrance – thanks for posting that – we know that wp4.0 changed the way it worked with search, so that all makes sense !
@anmari – does that help you?
EDIT – @anmari have just seen your other thread that it’s fixed https://bbpress.org/forums/topic/users-cannot-view-own-replies/#post-154445
Hi Robin
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
Hey guys,
As a theme developper I wanted to bring bbPress support and I was facing the same issue.
The plugin that @robin-w brought was working but I know something was wrong with my theme.
I managed to make it work without the plugin by deleting this snippet from functions.php :
https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts#Exclude_Pages_from_Search_Results
The intent of this snippet is to exclude pages from search results and I guess this was conflicting with WP4.
If you have this problem with your theme, look for “pre_get_posts” actions and if the search query is updated.
Hope that can helps 🙂
I’ve been searching for two hours now but unfortunately have not found any reasonable solution so far.
But I wanted to follow this topic as I do need a fix for my multisite bbPress install.
Hi,
Is there any fix to this issue?
I though bbPress was multisite friendly…
I’d like not to use a third party plugin but to fix the redirection to the main site.
Yup – delete super cache and delete the lines it added in wp-config.
Users Cannot View Own Replies
for the record, see this post https://bbpress.org/forums/topic/users-cannot-view-own-replies/#post-154445
I eventually figured out It was only me who couldnt see my own replies and while super cache no longer active, it was still installed. Deleted it and the lines in wp-config and voila i could now see own replies.
Just adding my voice so i can subscribe to topic. also last reply not showing, no bbpress extensions, fairly vanilla setup (2010 theme). Counts/last voice/freshness wrong/inconsistent depending where one looks despite running recalc tools. no cache plugin.
Thanks, that did the trick. Looking back, I probably should have noticed that was the problem! It was obvious in the error message.
Setting up the role worked, but if I set “spectate” to false, the role can’t see the forum at all to even post.
After searching some more, I found there was a bbPress setting to allow “anonymous” posting without an account. With that enabled, and the forum set to public, I used the following code to hide the list of topics from users who aren’t logged in (I believe they always come back with an ID of 0).
This is in the “loop-single-topic.php” file. I’ll probably also need to add this code to template files that display single topics, in case any sneaky people figure out the URL structure. The concept remains the same, however.
<?php
$currentUserID = bbp_get_current_user_id();
if($currentUserID == '0'){
//Display stuff if user's ID is 0 (they aren't logged in)
} else {
//Put all the topic loop code here, it will display if the user is logged in (has an ID other than 0
}
?>
This seems like a pretty secure way to do it, none of the topic information is displaying in the source code or anything like that. I’ll add any other relevant information I find tomorrow. For now, it’s time to sleep.
**EDIT**
I’ll definitely need to set something up with regards to the single topic templates. Creating a new topic as an anonymous user still redirects you to that topic. I’ll have something tomorrow.
Wordpress: 4.0
bbPress: 2.5.4
Buddypress: 2.1.1
Hi,
My site mainly runs hidden groups for various discussions in group forums. Membership rotates roughly once a year. At the moment, if a member of my site has subscribed to a hidden group forum and then is removed from that group, their subscription isn’t turned off – they still get emails and can see the forum listed in their “My Subscriptions” in their account. This is not OK as the discussions undertaken are confidential and so the subscriptions need to be terminated.
Is there a way to unsubscribe users from forums and topics for a group forum when they are removed from that group? I’m sure there must be an easy way to do this with template tags, but I can’t seem to find the answer. I’m surprised this doesn’t happen as standard to be honest.
Thank you for your help!