Search Results for 'code'
-
Search Results
-
Topic: Custom Roles not assignable
Hi folks,
I added 2 custom roles viafunction 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
DominikFirst pass at diagramming bbPress Theme Compat. Have not included info at https://codex.bbpress.org/themes/theme-compatibility/template-hierarchy-in-detail/ – haven’t read the source code for it nor played with those yet.
SVG embedded in HTML – use
Ctrl/Cmd +to zoom in andCtrl/Cmd -to zoom out. Right click + drag right/left as needed after zooming in.The arrows showing template partials pointing to the other partials pointing to the main template file/s could be confusing for many. Possibly, itemizing each main template file in association to the partials would be clearer e.g.
/theme-folder |__ archive-forum.php |__ /bbPress folder |__ content-archive-forum.php |__ form-search.php |__ loop-forums.php |__ feedback-no-forums.phpTopic: Change color text ‘Reply to’
Thanks to this thread: https://bbpress.org/forums/topic/how-do-i-change-the-color-of-the-text-and-box/ I was able to change a lot of colors, since the theme of my site is dark background with white letters.
There is one code I’m still looking for.
When you reply to a topic, above the large reply field it says ‘Reply to [name of topic].
This text is still in white and it needs to be black.Can anyone provide me with the right code so I can add this to the custom CSS?
Much appreciated!Since are buddypress and bbpress now cooperating I thing there is more compatibility in their Plugins. When I put a media Link to buddypress wall it shows in player (Video and audio).
But bbpress only has an option to embed media which maybe even mostly work but on buddypress the media link than appears as code (Video scr = ….and so).
Why doesn’t bbpress use just mediaelements.js script as core from WP and maybe ads oEmbed instead?
There is no possible to have similar design in both.
eather buddypress shows links in Player or bbpres.
Any Idea?Also there is a problem to have this also in comments.
jetpack makes also codes. It shows it in player but in buddypress stream again (video src=…)
Is there any solution to have media Links and embedded elements in the same way on buddypress, bbpress and comments?
Thankfully for any Idea :o)
Hi,
I am looking for a plugin/piece of code that i can apply to the main forum page so that users can subscribe to all topics and sub-topics in one go.
Can you help?Topic: Query error
We are running WordPress 4.7.3 with bbpress 2.5.12 at http://one-name.org. This mysql error started appearing last night when accessing any forum, topic or reply. I believe it relates to the ‘AND ((()))’ clause:
Apr 06, 13:03:46
WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘))) AND ggx_posts.post_type IN (‘topic’, ‘reply’) AND (ggx_posts.post_status = ‘ at line 1 for query SELECT ggx_posts.* FROM ggx_posts FORCE INDEX (PRIMARY, post_parent) WHERE 1=1 AND (ggx_posts.ID = 29822 OR ggx_posts.post_parent = 29822) AND ((())) AND ggx_posts.post_type IN (‘topic’, ‘reply’) AND (ggx_posts.post_status = ‘publish’ OR ggx_posts.post_status = ‘closed’ OR ggx_posts.post_status = ‘retained’ OR ggx_posts.post_author = 5528 AND ggx_posts.post_status = ‘private’ OR ggx_posts.post_author = 5528 AND ggx_posts.post_status = ‘hidden’) ORDER BY ggx_posts.post_date ASC made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), apply_filters(‘template_include’), WP_Hook->apply_filters, call_user_func_array, bbp_template_include, apply_filters(‘bbp_template_include’), WP_Hook->apply_filters, call_user_func_array, bbp_template_include_theme_compat, BBP_Shortcodes->display_topic, bbp_get_template_part, bbp_locate_template, load_template, require(‘/plugins/bbpress/templates/default/bbpress/content-single-topic.php’), bbp_has_replies, WP_Query->__construct, WP_Query->query, WP_Query->get_posts