Hi guys
I know this is more an issue with another plugin, but I thought I would post here as well in case anyone had an ideas
See original post here
I’m using the “NextScripts: Social Networks Auto-Poster“ and since setting it up 3 days ago, I’ve come in after the weekend and found it’s killed any pages I have using BBpress shortcodes (eg [bbp-forum-index]) The direct links to the forums are working fine, it’s just pages containing shortocdes.
Does anyone have any ideas please?
@Robkk sorry for the late answer…
I am back with the project… I realized what you said, the html is available only for admin; but with your code solved everything!
Thanks!
In case anyone need… I made Visual Editor visible in bbPress with this code:
/*Editor Visual bbPress*/
function bbp_enable_visual_editor( $args = array() ) {
$args['tinymce'] = true;
return $args;
}
add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );
Hi Guys!
I found the guide where are the codes for “Show status labels for bbPress Topics”… Well, I want to add a label for “Topics with No replies”, i tried do it by myself but It makes me crazy..
Does anybody know which reference or functions should I use?
Thanks.
I haven’t tested this lately, but you could export then import 1 forum at a time using this plugin. This plugin might only import topics that are not closed, and it may autosubscribe topic authors to topics, and maybe auto favorite too.
https://github.com/pippinsplugins/bbPress-Export-and-Import
I recommend testing it out on a localhost installation.
https://codex.bbpress.org/getting-started/testing-your-bbpress-installation/creating-a-test-site/
You are using Robin’s Private Groups plugin with BuddyPress, and using BuddyPress’ Group functionality right?? And this issue only seems to occur only for you, or users with similar roles??
Have you tried the plugin and cache troubleshooting listed on this page.
https://codex.bbpress.org/getting-started/troubleshooting/
For the submit button you can do something like this.
#bbpress-forums fieldset.bbp-form button {
font-size: 20px !important;
}
Can you post a link to the page on your site that you put the search form shortcodes, so I could test and see what possibly could be the issue.
Hi!
I am very new to bbpress and i’m trying to set it up on my site.
I have created a bbpress forum page where i display shortcodes. The shortcode for the search shows up, but it won’t find any topic.
Anyone has an idea of what i’m doing wrong?
Thanks!
Hello I have a website which relies on user roles such as administrator to show certain content. I have installed BBPress which seems to break my user roles for example all Administrators become Keymasters also which is fine but if I run a query such as the code below it evaluates to false.
Any help would be greatly appreciated.
<?php
if (is_user_logged_in() ) {
$user_ID = get_current_user_id();
$user_info = get_userdata($user_ID);
if(isset($user_info->roles) && implode(', ', $user_info->roles) == 'administrator') { ?>;
<?php } >;
if you feints there,robkk… I have the same problem with the font of the button “submit”
#bbpress-forums div.bbp-the-content-wrapper div.bbp-submit-wrapper button id.bbp_reply_submit button submit {
font-size: 20px !important;
}
thanks
I guess bbPress does not show the revisions for replies in the backend like I thought, I guess only topics then??
Use this php code snippet to enable the metabox for revisions, add it to your functions,php file in your child theme or use a plugin like functionality.
I think after 2 edits it will show up I think.
function rkk_add_revision_support_for_replies() {
add_post_type_support( 'reply', 'revisions' );
}
add_action( 'init', 'rkk_add_revision_support_for_replies' );
What will be the action code for this section?
Use these two hooks instead.
add_action( 'bbp_theme_after_reply_content', 'rkk_add_reply_link' );
add_action( 'bbp_theme_after_topic_content', 'rkk_add_reply_link' );
@soulkitchen
Can you link me to the exact patch you worked on??
@kineta
Create a ticket in the bbPress trac. Login using your WordPress.org/bbPress.org login credentials. Find any more bugs, please report them.
https://bbpress.trac.wordpress.org/
@rf0854
Yeah not having wp_footer(); will mess up the editor because the script is enqueued in the footer of your page.
Here is the CSS you will need add it to your child themes style.css file or in a custom css plugin.
#bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content {
font-size: 16px;
}
Thank a lot Robkk, it’s fixed now.
The theme we are using, Brunelleschi, does have a convenient “Custom CSS:” box in which I simply pasted the code you posted and voila.
This is caused by some styles from your theme that is for WordPress comments reply link.
Add this custom CSS snippet to a custom css plugin or in a child themes style.css file
#bbpress-forums .reply {
text-transform: inherit;
font-family: inherit;
font-size: inherit;
letter-spacing: inherit;
}
There are lots of ways to achieve a login
Via Widgets – Dashboard>appearance>widgets
Via a login page – put this shortcode on a page [bbp-login]
or using say my plugin – https://wordpress.org/plugins/bbp-style-pack/ Install the plugin and then Dashboard>settings>bbp style pack>login
Hi.
I am creating a dashboard and want to create a link which will directly take the member to their forum topics. What would this link be? When i look at the url for mine, it shows my username so that would take people straight to my topics.
Also is there a shortcode to show a members recent topics as a widget?
thanks
stephen
Hello all, I managed to completely customize bbPress, but I have something I can not change, nor with legacy functions of my theme, nor with my child css3 theme: the font ( fat size and color) in the response area
<div id="wp-bbp_reply_content-editor-container" class="wp-editor-container">
<div id="qt_bbp_reply_content_toolbar" class="quicktags-toolbar">
<textarea id="bbp_reply_content" class="bbp-the-content wp-editor-area" name="bbp_reply_content" cols="40" tabindex="103" rows="12"></textarea>
</div>
Someone can it help me?
Vous aurez deviné, je suis Français! 6Merci beaucoup!” 🙂
I created a page where users login to the forum. But once logged-in, the page just says “you are now logged in.” But it stays on my main site and doesn’t take users inside the forum. Is there code snippet or something I need to do to make it go to the forum once they click “log in”?
Also, if I want to add “courses” inside my forum with video “how-to’s”, where would that exist? is that considered a topic? or a page? I created it as a page and the link shows up in my forum widget, but when you click on it, the page takes you out of the forum and exists on my main site.
thanks for your help!
i think this plugin will help you to hide the top bar https://wordpress.org/plugins/wp-admin-no-show/ and about the size try this code
bbpress-forums .bbp-topic-content p,
bbpress-forums .bbp-reply-content p {
font-size: 12px; /* enter the size u want */
}
Hi there,
I’m getting the same issue with this for my website Sharing Discout & Popular Codes
Looking for the solutions
Best,
Just an FYI to anyone who was following this thread… This was fixed by adding the following code to my theme’s footer.php file.
<?php wp_footer(); ?>
This was inserted right before the </body> tag. Enjoy!
Just an FYI to anyone who was following this thread… This was fixed by adding the following code to my theme’s footer.php file.
<?php wp_footer(); ?>
This was inserted right before the </body> tag. Enjoy!
Sure. I copied the function bbp_buddypress_add_notification() in bbpress > includes > extend > buddypress > notifications.php, pasted it right below itself, made the modifications, and changed the name of the function to bbp_buddypress_add_notification_for_participants.
function bbp_buddypress_add_notification_for_participants( $reply_id = 0, $topic_id = 0, $forum_id = 0, $anonymous_data = false, $author_id = 0, $is_edit = false, $reply_to = 0 ) {
$current_topic_id = bbp_get_topic_id();
$ids_of_subs = bbp_get_topic_subscribers($current_topic_id);
foreach ($ids_of_subs as $sub_id) {
$topic_author_id = $sub_id;
// Bail if somehow this is hooked to an edit action
if ( !empty( $is_edit ) ) {
return;
}
// global $bp;
// Get autohr information
// $topic_author_id = bp_loggedin_user_id();
$secondary_item_id = $author_id;
// Hierarchical replies
if ( !empty( $reply_to ) ) {
$reply_to_item_id = bbp_get_topic_author_id( $reply_to );
}
// Get some reply information
$args = array(
'user_id' => $topic_author_id,
'item_id' => $topic_id,
'component_name' => bbp_get_component_name(),
'component_action' => 'bbp_new_reply',
'date_notified' => get_post( $reply_id )->post_date,
);
bp_notifications_add_notification( $args );
// Notify the topic author if not the current reply author
if ( $author_id !== $topic_author_id ) {
$args['secondary_item_id'] = $secondary_item_id ;
bp_notifications_add_notification( $args );
}
// Notify the immediate reply author if not the current reply author
if ( !empty( $reply_to ) && ( $author_id !== $reply_to_item_id ) ) {
$args['secondary_item_id'] = $reply_to_item_id ;
bp_notifications_add_notification( $args );
}
}
}
add_action( 'bbp_new_reply', 'bbp_buddypress_add_notification_for_participants', 10, 7 );