Hello @8ball106,
I was looking for this code! I want to know the forums that user is subscribed to! Can you tell me how do I use this code to view the user’s subscribed forums?
Hello to ALL!
First, my English is not perfect. But i hope some people understand my problem.
I use the Theme great! But the this theme make same troubble with bbpress. The Answers will displayed in the top of Page, behind the Black Admin Bar. If i change the Theme to Twenty Fifteen it Looks fine! In the Documentation i read, i have to move a page to bbpess.php .. but it will not work .. can anyone tell me what i have to do. i only want the twenty Fifteen Forum Theme code use in my Great! Theme !
Thanks and greets!
IRoN
You can use this CSS to remove it. Add the CSS where you can add custom css.
.bbpress p.howto {
display: none;
}
Well you can easily customize bbPress by creating a child theme and placing the bbPress templates into that child theme and edit them with no worries.
Theme Compatibility
The author column should be in the loop templates, for example loop-single-reply.php for replies of course. It should be in a div with the class bbp-reply-author. It would be bbp-topic-author if you have are editing the loop-single-topic.php template and so on.
Wait the original code really still doesn’t work.
It really did work for me, and I have the latest version of WP too.
Sorry I missed your reply.
The bbPress error is displayed when there is another plugin causing it.
It is detailed here.
bbp_setup_current_user was called incorrectly
You did to see if was a cache, theme, and plugin issue right, and received no resolutions?
Can you tell me the url you are being directed to instead of the topic pages?? Can you check in your browsers dev tools to tell me the url in the link?
You are experiencing this issue as a logged in registered user right??
Did you try reinstalling bbPress as a last resort?? It is possible for an issue to happen during installation because of some server hiccup.
Has bbPress worked fine before, then it just broke all of a sudden, or was it just broken during a fresh installation??
This is more suited for topics.
bbp_topic_reply_count()
Not entirely sure what you are going for to really help more.
The reply form border styles is inherited from your theme.
Do you want to remove the topic and forum descriptions too??
This php code snippet will remove the descriptions. Place this code snippet in your child themes functions.php or in a functionality plugin.
add_filter( 'bbp_get_single_forum_description', 'ja_return_blank' );
add_filter( 'bbp_get_single_topic_description', 'ja_return_blank' );
function ja_return_blank() {
return '';
}
This user said they got forums, but not topics from forums with the code posted in this topic.
How to query recently active topics from user subscribed forums?
@casiepa
Thanks for sometimes helping out here in the forums.
Did you try some troubleshooting to see if it could be a possible theme issue. Some theme frameworks do not play nice with bbPress’s theme compatibility, so try to check in a default theme to see if it works fine.
Troubleshooting
I guess you can also ask these questions too.
Did you import any users?
Are you allowing users to register with their email?
How about having a shortcode that just does it?
Won’t work since profiles are dynamic public pages, might work if it was private profile pages though.
I didn’t see a bbpress ‘users’ shortcode amongst those listed in the documentation.
Because there is none.
@joopstringer where do I add the code you suggested?
His code is SQL query code that you input into phpMyAdmin.
I’m setting up a site and only my admin user page comes up, all others are 404 pages.
It could be many possibilities but I will explain that in your other topic.
Users’ Profile page is a 404 page
It might be possible to use some code to calculate the posts like this or wait til 2.6 adds this feature.
https://wordpress.org/plugins/bbp-topic-count/
Then I guess setting the role using the code below when they reach the count. I am not sure entirely though, I have never tried something like this yet.
bbp_set_user_role();
Right now this is most likely custom development and you may need to hire a developer to create this for you.
In the guide it does say this.
—-
Use this function below instead with new argument added to be able to add new media like the emoticon button.
function bbp_enable_visual_editor( $args = array() ) {
$args['tinymce'] = true;
$args['teeny'] = false;
return $args;
}
add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );
Please note that if you disable the teeny mode in the visual editor and allow other media buttons through the TinyMCE Advanced plugin, you will probably need to add on to this function and put it into your child theme functions.php file to allow your users to use some of the buttons like the table button.
When I was talking about User ID, I was talking about a number not the name.
Here is an example on the other site I mentioned. The users username is 谢益辉 but the user profile shows the users ID in their profile url.
cos.name/cn/profile/1/
The plugin I mentioned will just help if you do not want the chinese characters in the urls of your forum posts it will just show the ID instead of the name. It is just a helpful plugin that might be useful, it won’t really help you with the profile issue though.
I do see that the profile page url is filterable and I could possibly make it the users ID instead, so I might try to fool with this. I post a snippet later If I can get it to work, and if it does work might suggest the plugin author of the plugin I listed earlier to add it to their plugin as it might be helpful.
You can also try switching to the default permalinks to see if that would help, because bbPress by default displays the profile links to be ?bbp_user=1, with the number being the ID which bypasses using the chinese characters completely. See if that works.
This should show the items in the specific menu.
add_filter( 'wp_nav_menu_items', 'rkk_add_auth_links', 10 , 2 );
function rkk_add_auth_links( $items, $args ) {
if (is_user_logged_in() && $args->theme_location == 'sub-header-menu') {
$items .= '<li><a href="'. wp_logout_url() .'">Log Out</a></li>';
}
elseif (!is_user_logged_in() && $args->theme_location == 'sub-header-menu') {
$items .= '<li><a href="'. site_url('wp-login.php') .'">Log In</a></li>';
$items .= '<li><a href="'. site_url('wp-login.php?action=register') .'">Register</a></li>';
$items .= '<li><a href="'. site_url('wp-login.php?action=lostpassword') .'">Lost Password</a></li>';
}
return $items;
}
By default it leads to the regular wordpress login form. if you want to change that to a frontend page, you can change this site_url('wp-login.php') to something like this site_url('/login/').
login redirect you would need to use something like this.
function rkk_login_redirect($redirect_to, $request, $user) {
return (is_array($user->roles) && in_array('administrator', $user->roles)) ? admin_url() : site_url('/forums/');
}
add_filter('login_redirect', 'rkk_login_redirect', 10, 3);
This login redirect code redirect admins to the WordPress backend, but anything else to the forums.
@sumanthbhe
Try this to remove the comma.
add_filter('bbp_after_list_forums_parse_args', 'rkk_bbpress_list_forums' );
function rkk_bbpress_list_forums() {
$args['separator'] = '';
return $args;
}
Okay sorry for the late reply.
This is how I tested it.
Without reply threading
Topic author gets notified like normal no problem. It shows the repliers name and everything fine.
With Reply threading
Topic author gets notified of a unthreaded reply like normal no problem. It shows the repliers name and everything fine.
If the topic author threads under a reply. The reply author who commented that is being threaded does not get a notification, neither does the topic author.
If a user replies to their own reply the topic author gets notified.
if the topic author replies to an already threaded reply by another user, the topic author gets notified of the other user replying although it was the topic author. So although the user being replied to should get the notification, the user replying is.
iF a user replies to an already threaded reply created by the topic author, the topic author gets notified that they have replied although it was the other user.
If a user replies to an already threaded reply, sometimes the topic author may receive two notifications one with the user who replied and also one that says the topic author just replied also.
All i can really say that these notifications are a mess…
I am creating replies as a test user but for some reason the topic author is getting all of the notifications, even for threaded replies being posted under my test user’s reply even though in the code for the notifications it states that the test user should receive a notification.
I created a ticket for this bug in the trac though.
https://bbpress.trac.wordpress.org/ticket/2869
I am trying to use bbPress with a custom theme. I have a child theme and I have a bbpress.php created. The forum page loads but none of the links work (Forum, author, search). It’s as though the whole section is behind a sheet of glass. I can’t even select text. They work in the default themes. They work if I use the custom theme and create a page using a shortcode. Disabling all plugins doesn’t help.
It’s making me crazy. Any thoughts as to what might be blocking the page?
Unfortunately the template builder isn’t very helpful. His default response is that they never said it would work with bbpress. While true, I wouldn’t think it should eat normal functionality.
Almost solved:
function lugpa_change_subscribe_button_texts($args){
$fakeCbox = "<span class='subscribe-icon'></span>";
$args = array_merge($args, array(
'before' => '',
'subscribe'=> $fakeCbox.' Subscribe to thread notifications',
'unsubscribe'=> $fakeCbox.' Unsubscribe from thread notifications',
));
return $args;
}
// in a future please check if all these hooks subscribes to a "topic"
add_filter('bbp_before_get_forum_subscribe_link_parse_args', 'lugpa_change_subscribe_button_texts');
add_filter('bbp_before_get_topic_subscribe_link_parse_args', 'lugpa_change_subscribe_button_texts');
add_filter('bbp_before_get_user_subscribe_link_parse_args', 'lugpa_change_subscribe_button_texts');
However I’m not sure if all these hooks works over the same thing. Meaning, if they all are related to “thread subscriptions”.
One more thing: I’d like to be able to distinguish if I’m in “replys” page or in “my subscriptions” page. Because If I’m in the second one I should keep the short version.
Is it possible to get some more information into what I should to do add features to TinyMCE or even TinyMCE Advanced in bbPress?
I’ve looked into the Enable Visual Editor guide, and currently I’ve only got that enabled for users. I like it that way. However, I’d also like to display the “Paragraph”, “Heading” etc. feature. And even when I installed TinyMCE Advanced, nothing changed within bbPress.
Optimally, I will be able to display only “Paragraph”, “Heading 3” and below, for better SEO.
Edit: This is what I have currently:

Hi.
I’m trying to add content before the subscribe button. It would be a fake checkbox. But I’m not being actually able to use “before” option in bbp_topic_subscription_link function.
Bug can be reproduced with something like this:
bbp_topic_subscription_link(
array(
'subscribe'=>'Subscribe to thread notifications',
'unsubscribe'=>'Unsubscribe from thread notifications',
'before' => 'x'
) );
That “x” will never appear. I can see it still in line 1055 of bbpress/includes/users/template.php, just before bbp_parse_args call. After that content dissapears:
var_dump($args);
// Parse arguments against default values
$r = bbp_parse_args( $args, array(
'subscribe' => __( 'Subscribe', 'bbpress' ),
'unsubscribe' => __( 'Unsubscribe', 'bbpress' ),
'user_id' => 0,
'topic_id' => 0,
'forum_id' => 0,
'before' => ' | ',
'after' => ''
), 'get_user_subscribe_link' );
var_dump($r);
Also, there’s another issue: ajax call will not keep my custom text. After you press the button text changes to defaults: subscribe \ unsubscribe. So, what’s the point of a custom text?
Hope my request is clear.
Thanks for all your work.
@robkk, further to my previous reply: perhaps I could hide the link on the main menu with CSS if we can’t get it to work.
I was also wondering if the code could include a line to redirect the user to the forum page after login? Could the code also include links for Register and Lost Password?
Hello all,
I would like to know if there are any plugins or code snippet using which the members of the buddypress group can automatically subscribe to the forum to receive email notification on new topic creation.
Receiving email notification for every topic being created in the group forum is a huge matter of concern for me. I tried I would like to know if there are any ways to make the user of a particular group be subscribed only to the forums of that group?
I tried the code mentioned here – https://bbpress.org/forums/topic/new-users-auto-subscribe-to-one-forum/#post-146665
But this makes the user subscribe to all the forums of all the groups which is not appropriate for us. Can someone help me with this regard? Thanks.
Links in Email Notifications
Hello, maybe this is already possible but I can’t find any information about it – how can I embed links in the notification email to subscribers to a topic? Even if I code in links using HTML they seem to be stripped out in the resulting email message.
Thanks,
Kitka
@robkk yes I tried it like this – nothing shows up.
My free theme is Responsive (not Responsive II) from Cyberchimps.
I would really appreciate it if we could get to the bottom of it.
All this works only if I use the code as it is without the menu location but the links go to both menus.
Thanks.