Hi Steve,
As Robin answered, you could look into his coding for the bbP Style Pack to see how it works.
There is also https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/#8-add-edit-profile-to-a-wordpress-menu that might give you a hint.
Pascal.
@robin-w
I moved the code to the functions.php file now, still no reaction.
@casiepa
Yes, i followed the procedure for adding new names with existing capabilities, but they are not appearing.
Is it possible, that you cant add an existing capability to multiple roles?
Hi @fabianno0572,
The best way to put extra functions is in a functions.php in a child theme.
Some is explained here: https://codex.bbpress.org/functions-files-and-child-themes-explained/
Hello Pascal,
Found the css code to adapt the image size.
bbp-reply-content img {
width:20%;
}
I dont use a plugin for this. Its just when people share images via links.
Thx
Sally
@dominikb-1,
Did you read till the end of the codex page ?
Custom Capabilities
@adiek84,
If you don’t know where to put the above code, you could also activate it in my ‘bbP Toolkit’ plugin. But if this is the only function you need, then copy the above in your child theme’s functions.php
the code
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' );
in most themes should work fine. the wp-footer part was specific to the other poster.
The code goes in your child theme’s functions file
Functions files and child themes – explained !
sorry, I can’t write bespoke code for everyone, so it’s in the pack.
OK. I know this exist. I see people talking about it, but I have no idea how to create the link to it.
Where is the member profile page? How do I add a link to my menu for people to access their profile an update it.
I don’t see shortcode, I don’t see it as a menu link… I just don’t see it.
But do see I can click the name of someone who post to the forum and see their profile. So it does exist.
I just can’t find any documentation on how to add a link to a members profile page to the menu.
Please help. Thanks.
Hi!, I need to do this in my wordpress. I’ver already installed rpb-chessboard and bbpress-do-short-codes plugins, but i don’t know where i have to call function
add_filter (‘pw_bbp_parse_shortcodes_cap’ , ‘publish_topics’ ) ;
When I active bb-press-do-shot-codes [pgn] and [fen] sections were disappeard.
Thanks!
where did you put that code?
Hi guys,
I have the same problem, and I’d really love to solve this by using your solution, but I’m not very good in coding etc. Can you tell me where you put the
<?php wp_footer(); ?>
Thanks!
This in your css should take it away
.topic .entry-meta {
display: none;
}
Please confirm or come back
Hey guys,
just stumbled over a small 500 error in the functions file:
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: [] operator not supported for strings in /var/www/vhosts/mydomain/wp-content/plugins/bbpress/includes/forums/functions.php:1854
Stack trace:
#0 /var/www/vhosts/mydomain/wp-includes/class-wp-hook.php(298): bbp_pre_get_posts_normalize_forum_visibility(Object(WP_Query))
#1 /var/www/vhosts/mydomain/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array)
#2 /var/www/vhosts/mydomain/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
#3 /var/www/vhosts/mydomain/wp-includes/class-wp-query.php(1681): do_action_ref_array('pre_get_posts', Array)
#4 /var/www/vhosts/mydomain/wp-includes/class-wp-query.php(3238): WP_Query->get_posts()
#5 /var/www/vhosts/mydomain/wp-includes/class-wp-query.php(3347): WP_Query->query(Array)
#6 /var/www/vhosts/mydomain/wp-conten...
Should be fixeable, ln 1850-1854 is in the bbp_pre_get_posts_normalize_forum_visibility function and looks like this:
// Get any existing meta queries
$meta_query = $posts_query->get( 'meta_query' );
// Add our meta query to existing
$meta_query[] = $forum_ids;
adding an array check to ln 1850 should suffice (i do actually not know what one’s trying to achieve here, so this is just a quickfix):
$meta_query = is_array( $posts_query->get( 'meta_query' ) ) ? $posts_query->get( 'meta_query' ) : array( $posts_query->get( 'meta_query' ) );
side-note: wp version 4.7.3, bbpress version 2.5.12, php version 7.1.3
Cheers,
Toby
Looking to filter/replace all instances of <img src="http:// with <img src="https:// is there any hooks that allow this to happen on topic/reply creation and edit?
on 1. just rechecked, and the code works – make sure you are looking at a reply not a topic.
on 2. more seriously, there are no strict rules, as often you want to put in an #ID that related to say a topic number, so need to do this within the code.
Not working :[
Just my curiosity, but why html markup is included in code? I worked in past with DLE engine and all markup was purely inside of template.
Hi folks,
I added 2 custom roles via
function add_custom_role( $bbp_roles ) {
$bbp_roles['my_custom_role1'] = array(
'name' => 'Kursteilnehmer',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
);
$bbp_roles['my_custom_role2'] = array(
'name' => 'Mentor',
'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() ) // the same capabilities as moderator
);
return $bbp_roles;
}
add_filter( 'bbp_get_dynamic_roles', 'add_custom_role', 1 );
I tried to assign them via the WP-Users page, but they do not appear in the forum-roles dropdown.
Whats going wrong here?
Regards
Dominik
Do you happen to have the answer to this as well…?
It is WooCommerce related, not bbPress though.
I would like to change the color of the text when filling out username.
Through WooCommerce I have a page ‘My account’ and in it two text boxes. One for username, one for password.
The text on my site is white, the background of these fields also.
So when you type name or passwords, it’s invisable.
I would like to add code to custom CSS to solve this.
What would be the code for this?
I think the element is called something like this…
input#username.woocommerce-Input.woocommerce-Input–text.input-text.
(I am slowly learning how CSS works, tried to do it myself but it didn’t work…)
That worked. Tesseract does have an area for “customizing additional CSS” and that is where I put the code you entered.
Incidentally, is there a good plugin to customize my bbPress look and feel?
Thank you very much.
ok, I think your theme is doing this
this should fix
.reply {
margin-left: 0 !important;
}
If your theme has a custom css area, then out this in there
Hi @myrax
Should be something like this:
#bbpress-forums fieldset.bbp-form legend {
background-color: #121212;
color: #DDDDDD;
}
Hi, dayan89! You should do corrections in core code of bbpress – https://bbpress.trac.wordpress.org/changeset/5338. After that it needs to run “Recalculate the position of each reply” repair tool (Пересчитать положение каждого ответа – in Russian).