Search Results for 'code'
-
Search Results
-
With the latest releases when navigating to a forum (not the forum index), any Elementor code is gone. Same when using just a sidebar or blocks.
I found an old advice here https://kriesi.at/support/topic/bbpres-no-sidebar-in-topics/ but unclear where the mentioned sidebar.php is located (perhaps theme specific).
-
Other things I’ve tried
- Configured to use the same forum slug (forum, no root)
- Disabled the main theme, use the latest WordPress default theme.
- Disabled a redirection add-on.
Topic: TinyMCE for guests?
I’m posting this on behalf of another user from this topic/post. I can’t verify this, but they claim that the TinyMCE visual editor used to show for guest posters (yes, guest posting is enabled on their forum).
They’re claiming that at some point within the past few months, that stopped.
I tried on my dev server and confirmed that guests do NOT see any visual editor buttons, but I don’t know how long that has been the case, or if guests were ever able to see the TinyMCE editor in the first place.
I’m scratching my brain trying to figure out how to enable the TinyMCE editor for guests. There’s nothing helpful related to this in the WP TinyMCE docs, WP Rich Text Editor Filters, or in the TinyMCE v4 docs. Browsing through /wp-includes/class-wp-editor.php (specifically the editor_settings method) was also a bust.
The only check I’ve been able to find that determines whether or not to display it is “user_can_richedit()”, and even forcing ALL users to have richedit capabilities doesn’t solve it:
add_filter('user_can_richedit', '__return_true');
So my question – How do you enable the TinyMCE editor for guests???
Topic: Profile Page shortcode
Hello, is there any shortcode or other way to display exactly the same profile data on another subpage? I have created a subpage with some information on it, before it I want to put the profile of the user who logs in. His profile will be displayed
currently i have it at this address /members/test_user. I want this data to be displayed elsewhere
Topic: Account
Hi,
How to create a user menu:
login, register, profile link?
Is it with shortcodes?I would also like to know how to have the same thing as on this forum:
Questions about customization. I am using a translation tool, so my English may be unnatural.
In [bbp-single-view id='no-replies'], closed topics are also displayed, so I would like to limit it to open topics, does the following code seem ok? Please advise.
add_action( 'bbp_register_views', 'custom_bbp_no_replies' ); function custom_bbp_no_replies() { bbp_register_view( 'no-replies', __( 'Topics with no replies', 'bbpress' ), apply_filters( 'bbp_topic_no_replies_query', array( 'post_parent' => 'any', 'post_status' => bbp_get_public_status_id(), // Changed to show only open topics 'meta_key' => '_bbp_reply_count', 'meta_value' => 1, 'meta_compare' => '<', 'meta_type' => 'NUMERIC' ) ), false ); }
Topic: Customize Shortcodes
Excuse me for asking a question about customization.
I am using a translation tool, so my English may be unnatural.I would like to limit the posts displayed in [bbp-single-view id='popular'] to 7 days.
function filter_bbp_get_view_query_args( $args, $view ) { // Check if the view exists if ( ! bbp_get_view( $view ) ) { return new WP_Error( 'invalid_view', __( 'Invalid view specified.', 'bbpress' ), $view ); } if ( 'popular' === $view ) { $args['date_query'] = array( array( 'after' => '1 week ago', ), ); } return $args; } add_filter( 'bbp_get_view_query_args', 'filter_bbp_get_view_query_args', 10, 2 );