never mind ive done it, thanks to you i merged your solution with mine and hey presto!
function vvd_add_notice_before_topic_form() {
echo '<div class="bbp-forum-content">';
echo bbp_forum_content();
echo '</div>';
}
add_action( 'bbp_theme_before_topic_form_notices', 'vvd_add_notice_before_topic_form' );
Thanks again for your help 🙂
Hi Vinood, thanks for the code, it works perfectly.
The only issue is that the text will need to be different for each forum which is why i was wondering if there was a way to pull the text from the forum description rather than add the custom text in the php file if that makes sense.
If there is not a way then i will make the descriptions more global but ideally i’d be able to make each unique or have none at all.
Thanks, Lauren
You’re right, it was perhaps the theme issue only. Now I’m on my way to pin-point the issue further. But you seem to be right. I’ll let you know.
deactivating all plugins except Unyson plugin
Is there such plugin as you mentioned?
Could you please share me your site URL
BathindaHelper.com
And last, could you pls suggest me some paid developer in/around New Delhi in India, which could help me develop some code for MLM (Multi Level Marketing) for my WP website?
You can contact above plugins developers regarding this and if none provides this functionality then you have to develop custom code.
If you are not a developer then you can wait for somebody to provide you solution here or consider hiring a developer to develop it for you.
Could you please post here what version of PHP you are using on your server?
Can you please try temporary enabling WP_DEBUG mode? To do this, just go to wp-config.php include this:
define('WP_DEBUG',true);
You might already have a line for WP_DEBUG, so just make sure it’s set to true.
Let me know what errors if any you are getting when you face this issue.
You can achieve this using below custom code in your site and editing the text “This is custom text” to whatever you want to display.
function vvd_add_notice_before_topic_form() {
?>
<div class="custom-text">
<p>
<?php _e( "This is custom text." ); ?>
</p>
</div>
<?php
}
add_action( 'bbp_theme_before_topic_form_notices', 'vvd_add_notice_before_topic_form' );
You can add that code either in the functions.php file in child theme or in small custom plugin.
I checked again and again and found that ‘spectator’ role user is not able to view/create/edit any of the forums. Why so?
Spectator user role can only read forums, topics and replies. He can not create or edit anything.
Please get more information about bbPress user roles on this page https://codex.bbpress.org/getting-started/before-installing/bbpress-user-roles-and-capabilities/
2nd, does any user role need to be ‘subscribed’ necessarily to be able to view/edit forms?
No
Thanks for the response. Sure, the i have both bbpress and buddypress plugin. My bbpress version is 2.5.13. Under my settings, I click on buddypress, buddypress has three tabs, one is components, pages, and options. So i click on pages, under pages, there’re directories and registration, under register, i choose “forum register” page cause that’s a page i created for that, shortcode i entered is [bbp-register], i click view, it brings me right back to homepage. However, all of these happening in browser safari. When i use google chrome and firefox, they both show up correctly. Here’s the URL:
Forum Register
And no i haven’t tested this out by deactivating any of my plugins yet. let me know what u think thanks.
Thanks for your response. The upcoming version 2.6 seems to solve the issue. I’ve tested it with 2.5.13 yet. Today I’ve tried 2.6-rc-3 and the 404 error is gone.
My testing environment is WP 4.8.1, no other plugins than bbPress, Twenty Seventeen Theme.
I’ve added the following lines to the Theme’s functions.php tp figure it out:
add_filter( '404_template', function() {
global $wp_query;
print_r( $wp_query );
die();
} );
In bbPress 2.5.13 the 404_template filter fires and is_404 is true. In 2.6-rc-3 the filter does not fire.
Would you please do me favor and also check it with 2.5.13 just to be sure?
Thanks,
Peter
After creating new roles they aren’t saved in user profile. In the “Forum Role” select there is “- No role for this forums -“. Though really role seems to be applied. I’ve tried all approaches from this documentation page https://codex.bbpress.org/custom-capabilities/
The only thing that helped was installing “Members” plugin of Justin Tadlock and double creating roles with same names.
I think this is a bug.
The same problem as described here https://bbpress.org/forums/topic/custom-roles-resetting-no-role-for-these-forums/
Having the same problem. After creating new roles they aren’t saved in user profile. In the
“Forum Role” select there is “- No role for this forums -“. Though really role seems to be applied. I’ve tried all approaches from this documentation page https://codex.bbpress.org/custom-capabilities/
The only thing that helped was installing “Members” plugin of Justin Tadlock (thank you Jakobuz) and double creating roles with same names. I think this is a bug.
If you are logged in as Administrator and there are private/hidden forums, on the forums page there are listed all available post statuses in wordpress even if there are no posts.
This is caused by the filter ‘bbp_pre_get_posts_normalize_forum_visibility’.
IT checks for
$_REQUEST['post_status'])
but initial this variable is not set.
Please fix that. I made a temporary fix including condition
( isset( $_REQUEST['post_status']) || current_user_can( 'administrator') )
I can see the lines in your shared forum.
To reduce spacing you can also try using below CSS code.
.bbp-forum-info .bbp-forum-title {
margin-bottom: 0;
}
It’s hard to help you without accessing your site but please try using below CSS code on your site as described here http://freewptp.com/how-to-use-custom-css-in-wordpress-site/ to reduce spacing.
#bbpress-forums .bbp-forum-info .bbp-forum-content {
margin: 0 !important;
}
Folks – I realize this post is a now a few years old, but I’m embarking on doing “exactly” what @wp_maybe outlined in his original post “I am trying to implement a search box inside a Buddypress group that searches on the contents of the Group Forum.”
I’ve looked through all the code-modifications, suggestions by @tobyhawkins + links (on sevenspark.com above…) – so I’m now just putting things in place to build the search within individual BuddyPress Group Forums (for Public, Private & Hidden BP Groups).
Q: Was there a final, complete consensus of “exactly” what’s req’d to accomplish this? I’m only asking b/c I don’t what to re-invent the wheel via a slew of testing w/ the various code-bits above.
Any input or insights would be swell, -Jeff
To achieve this you have to translate bbPress in your language as described in the following page.
bbPress in Your Language
From memory if you are logged in then you should already be able to do so
see
Codex Standards & Guidelines
When reading bbPress documentation i found some issues and missing information in it so i tried twice to create support forum topic to notify you about this but the topic is not created.
May be because it is in under review.
I read information on this page https://codex.bbpress.org/participate-and-contribute/ to help improve bbPress documentation by requesting access.
@jjj, @netweb, @mercime or @robin-w Could you please grant me access so that i can help to improve it?
You can just hide it using below custom CSS code on your site as described here http://freewptp.com/how-to-use-custom-css-in-wordpress-site/
#bbpress-forums fieldset.bbp-form label[for="bbp_anonymous_website"],
#bbpress-forums fieldset.bbp-form #bbp_anonymous_website {
display:none;
}
Or you can overwrite following bbPress template file in your child theme and remove website field code from it.
/bbpress/templates/default/bbpress/form-anonymous.php
You can change it by adding following custom code in the functions.php file of your child theme.
function vvd_bbpress_translate_text( $translated_text, $text, $domain ) {
if ( 'bbpress' === $domain && 'Voices' === trim($translated_text) ) {
$translated_text = 'Voix';
}
return $translated_text;
}
add_filter( 'gettext', 'vvd_bbpress_translate_text', 20, 3 );
Well we’re all waiting for breaking news for bbPress release or rc4 but online timesheets it is not. And seeing as user onlinetimesheets’ system is built on Microsoft ASP.Net 4 it seems unlikely to make much use of bbPress..
Now, could we get the bbPress on wordpress.org to add the Plugin name (Forum title) to the email alerts? It’s tiring getting all the alerts with no context about which plugin they refer to.
Something like this should do it:
function add_the_plugin_name_please( $message, $reply_id, $topic_id ){
$topic_title = strip_tags( bbp_get_topic_title( $topic_id ) );
$forum_title = bbp_get_topic_forum_title($topic_id);
$messageheader = sprintf( __( 'New post in Forum "%1$s", Topic "%2$s".', 'wordpress-org' ),
$forum_title,
$topic_title
);
$messagefooter .= "\r\n" . "\r\n" . __('Thankyou for participating on wordpress.org', 'wordpress-org' );
return $messageheader . "\r\n" . "\r\n" . $message . "\r\n" . $messagefooter;
}
add_filter( 'bbp_subscription_mail_message', 'add_the_plugin_name_please', 10, 3);
thank you very much for your help . But I follow the tutorial you introduced to do, there is no front-end changes. Do not you know why?
And this code( <?php bbp_the_content( array( ‘context’ => ‘reply’ ) ); ?> ) I have replacement the summernote code, and nothing changed!
could be done with bespoke code, but beyond free help I’m afraid !!
can only give you the area for html
so two files
wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php
wp-content/plugins/bbpress/templates/default/bbpress/form-reply.php
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpress
where %your-theme-name% is the name of your theme
Make a copy of the two files above, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/bbpress/form-topic.php
and
wp-content/themes/%your-theme-name%/bbpress/bbpress/form-reply.php
bbPress will now use this template instead of the original
and you can amend this
Suggest your html/php needs to replace
<?php bbp_the_content( array( 'context' => 'reply' ) ); ?>
but you’ll need to work out exactly how yourself !!
In the spirit of sharing stuff, if you work it out, please post the solution to this thread !!