Search Results for 'code'
-
Search Results
-
Topic: how to link to profile page
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.
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,
TobyTopic: content filter
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?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)