Hi Annie, Thanks so much for your help and taking the time to write!!! I am going to try this. I also am not keen on adding any more plugins..I have too many already as it is. I am not a developer and don’t write code so it is really great when someone shares information like this.
All the best!
Hi 007elt, After much searching and some testing I found a solution that converts the HTML version of the text editor into a basic TinyMCE editor. However, you must have FTP or cPanel access to the backend files in order to add code to your theme/child theme’s functions.php file. Otherwise a plugin is the only other resort, and I prefer not to load up on plugins.
If you have access, add these two code snippets. The first one will convert the text editor to a basic TinyMCE, and the second will strip out html code from content pasted into the text editor that was copied from another web page.
function bbp_enable_visual_editor( $args = array() ) {
$args[‘tinymce’] = true;
$args[‘quicktags’] = false;
return $args;
}
add_filter( ‘bbp_after_get_the_content_parse_args’, ‘bbp_enable_visual_editor’ );
function bbp_tinymce_paste_plain_text( $plugins = array() ) {
$plugins[] = ‘paste’;
return $plugins;
}
add_filter( ‘bbp_get_tiny_mce_plugins’, ‘bbp_tinymce_paste_plain_text’ );
And, if you want to get rid of the word “Private” that displays in the title of a forum that is set to private, put this code in your child theme’s functions.php file also:
function remove_private_prefix_from_title( $title ) {
return ‘%s’;
}
add_filter( ‘private_title_format’, ‘remove_private_prefix_from_title’ );
the problem is that there are dozens and dozens of membership plugins, each with its own bespoke code that it uses when members leave. Some will have a hook that a coder can link to, but it is specific to that plugin, some have no hook, so it can only be a manual process, or one linked to a daily routine.
Without knowing which membership plugin and knowing if it has a hook, it is impossible to answer this question.
in all cases it will be ‘custom code’ whether written by you or someone else 🙂
I was wondering whether anyone had come up with a solution. This is not an unusual problem.
I did find this plugin https://en-gb.wordpress.org/plugins/bbp-toolkit/ which I will try.
I really do not want to generate custom code.
@mrmillercoach – do you need help for you to code it, or someone to code it for you ?
This typo still exists, which continues to publicly display Private or Scheduled sticky posts in the latest version of bbPress 2.6.4.
It can be easily fixed by correcting line 404 of the “bbpress/includes/topics/template.php” file to set $sticky_query[‘perm’] instead of $sticky_query[‘post_status’].
This is the correct code that works:
// Allowed statuses, or lean on the 'perm' argument (probably 'readable')
$sticky_query['perm'] = bbp_get_view_all( 'edit_others_topics' ) ?
$r['post_status']
: $r['perm'];
Put this in your child theme’s function file – or use
Code Snippets
add_filter( 'gettext', 'rew_bbpress_translate', 20 , 3 );
add_filter( 'ngettext', 'rew_bbpress_translate' , 20 , 3 );
function rew_bbpress_translate( $translated, $text, $domain ) {
if ($domain == 'bbpress') {
$words = array(
'%s day' => '%s jour',
'%s days' => '%s jours',
'Last Post' => 'Dernier message',
);
$translated = str_replace( array_keys($words), $words, $translated );
}
return $translated;
}
@jack_tyler
@wpweaver
I have the same and other problem.
would you pls help me?
I am wondering if is there any existing feature on the BBPress to have a login, register, forgot password, email confirmation only in front-end? I know that there are [bbp-login], [bbp-register], and [bbp-lost-pass] short-codes that you can place in the page so that it will display on the front-end but the issue is when user enters an incorrect password or account, it will redirect to admin login. What I wanted is to stay always in the front-end. Or do you have any suggestion what plugin I can use that and compatible?
I like plugin “Weaver for bbPress” .
but some problems happens after I installed the plugin “Weaver for bbPress” .
May I ask?
1.It is OK that a new user(registered) logged in from frontend,and hide the wp-admin. But after logout ,”Sorry, you don’t have permission to view this profile.”shown on http://mysite.com/forums/users/oi/subscriptions/?loggedout=true
2. It is OK that admin logged in from frontend. But after logout ,”Sorry, you don’t have permission to view this profile.”shown on http://mysite.com /forums/users/oi/subscriptions/?loggedout=true .
3. when user enters an incorrect password or account, it will redirect to admin login.
What I wanted is to stay always in the front-end. Or do you have any suggestion what plugin I can use that and compatible?
Hi,
My issue is that when I add the forum root at the forum settings, the page displays the following error in the header and the footer of the page:
Notice: Undefined property: WP_Post_Type::$post_type in /home1/smilingsun/public_html/vanlifemagazine.co/wp-content/plugins/td-composer/includes/shortcodes/vc_row.php on line 415
The page is at:
Vanlife Community Forum
The theme I’m currently using is Newspaper by TagDiv.
Many thanks,
Francesco
Same problem: not possibile to replay to a replay. I get a message saying (I translate from Italian) ‘you don’t have the permissions. the variable does not match’. As I am unable to deal with the code, I will use a different plugin.
I have searched online for days and I have not found how to make profile fields mandatory/required by users so that if they don’t complete those fields they cannot use the forum.
I’m sure there are code ninjas out there that have done this in their sleep or just know how to do it, so can you please the code and where to find/replace them?
Thank you so much.
JD
– If I have my way, I’d rather not have yet another plugin installed for this. Thanks.
I have this problem too, and it also occurs on another, larger bbPress forum where I am a moderator.
I’ve asked someone who knows PHP to take a look at the code in bbpress/includes/extend/buddypress/notifications.php, but the couldn’t find any problem there.
I’m not sure if they were onto something or not, but they said the bug might originate in an incorrect reference to the database topic/post IDs, similarly to what @nikbond said above.
Robin’s solution above does not seem to work for me either.
No there is an other topic but its not showed, i can see it in wp-admin.
This https://infocontact.ma/communaute/t/evenements-sur-casablanca/
https://infocontact.ma/communaute/f/beaute-mode/
code that works is never bad !!
thanks for posting the final solution, and great that it works !
Just to update, all seems to be working so I thought I would share this. I am sure the coding is bad but it works !!
I am the only one that can create topics, I moderate all replies and want to add to the end of each reply ‘#plasticfree’ and a custom metadata value for each topic that I put in when I create a topic.
This means that the hashtag and twitter name goes out with the RSS feed to tiwtter etc.
Thank you Robin for all your help.
/***
To add #plasticfree and twitter name to reply
***/
function waa_content( $content, $post_id ){
// get the topic id
$post_id = get_the_ID();
$reply_topic_id = bbp_get_reply_topic_id( $post_id );
// get value from table
$twitname = get_post_meta( $reply_topic_id, 'bbp_twitname', true );
$twithash = '#plasticfree';
$post = get_post($id);
if ($post->post_type =='reply'){
$pos = strpos($content, '#plasticfree');
if ($pos == false) {
$content .= '<br>'. $twithash .' ' .$twitname;
}
}
return $content;
}
add_filter( 'content_edit_pre', 'waa_content', 10, 2 );
the $post array does not exist in this function
try
if (get_post_type ($post_id) == bbp_get_reply_post_type() ) {
try this
function waa_content( $content, $post_id ) {
$extra_text = 'hello' ;
//append extra text to the end of reply content
$content.= $extra_text ;
return content ;
}
add_filter( 'content_edit_pre', 'waa_content', 10, 2 );
Is it possible to apply the post moderation just to certain flagged users?
I see that this is possible by keywords:
Moderation and BlackListing
But cannot find any specific info regarding users.
add this to the custom css of your theme
#bbp_stats_widget-2 dt {
float : left ;
}
li#bbp_stats_widget-2.widget-container.widget_display_stats dl dd strong {
padding-left : 10px ;
}
li#bbp_stats_widget-2.widget-container.widget_display_stats dl dd {
margin-bottom : 5px ;
}
you can adjust the number in margin-bottom : 5px ; to get the separation between lines that you want
I have the same problem on my website also with bbPress 2.6.4 and BuddyPress 5.1.2. @robin-w Thanks for the suggested fix. Unfortunately, inserting your code into my child theme’s functions.php did not fix the problem for me.
How about the below?
#bbpress-forums div.bbp-reply-content a,
#bbpress-forums div.bbp-topic-content a{
word-wrap: break-word;
}
something like this should do it
add_filter( 'bbp_new_reply_pre_content', 'my_function' );
function my_function ($reply_content) {
$extra_text = 'hello' ;
//append extra text to the end of reply content
$reply_content.= $extra_text ;
return $reply_content ;
}