Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbpress login form redirect to wp login form in case of error

Published on October 23rd, 2022 by Nowarah

Hello, I use bbpress login form shortcode and when I press the login button without filing any data, it keeps redirect me to the normal wp form with errors msgs, is there a way to keep the errors msg in the same form without redirect?

change the css classes in bbp_template_notices() function

Published on October 23rd, 2022 by Nowarah

hello, I need to change the css class”bbp-template-notice” of the returned html in the function bbp_template_notices() exist in includes/common/template.php but i dont see any filter in it , how this can be done?

the function:

function bbp_template_notices() {

	// Bail if no notices or errors
	if ( ! bbp_has_errors() ) {
		return;
	}

	// Define local variable(s)
	$errors = $messages = array();

	// Get bbPress
	$bbp = bbpress();

	// Loop through notices
	foreach ( $bbp->errors->get_error_codes() as $code ) {

		// Get notice severity
		$severity = $bbp->errors->get_error_data( $code );

		// Loop through notices and separate errors from messages
		foreach ( $bbp->errors->get_error_messages( $code ) as $error ) {
			if ( 'message' === $severity ) {
				$messages[] = $error;
			} else {
				$errors[]   = $error;
			}
		}
	}

	// Display errors first...
	if ( ! empty( $errors ) ) : ?>

		<div class="bbp-template-notice error" role="alert" tabindex="-1">
			<ul>
				<li><?php echo implode( "</li>\n<li>", $errors ); ?></li>
			</ul>
		</div>

	<?php endif;

	// ...and messages last
	if ( ! empty( $messages ) ) : ?>

		<div class="bbp-template-notice">
			<ul>
				<li><?php echo implode( "</li>\n<li>", $messages ); ?></li>
			</ul>
		</div>

	<?php endif;
}

Css style for special reply

Published on October 22nd, 2022 by mehdinjm

Hi, I want to write a CSS style that changes the color of the message sent by the user in the thread. For example, the user sees his messages in green. Is there a css class to style it?

change css class of function with filter hook

Published on October 22nd, 2022 by Nowarah

I need to add a class to the dropdown topic select_class.
the original function is:

function bbp_get_form_topic_status_dropdown( $args = array() ) {

        // Parse arguments against default values
        $r = bbp_parse_args( $args, array(
            'select_id'    => 'bbp_topic_status',
            'select_class' => 'bbp_dropdown',
            'tab'          => false,
            'topic_id'     => 0,
            'selected'     => false
        ), 'topic_open_close_select' );

        // Filter & return
        return apply_filters( 'bbp_get_form_topic_status_dropdown', ob_get_clean(), $r, $args );
    }

I tired to use this but didnt work

function custom_callback($args = array() ) {
    
        $r = bbp_parse_args( $args, array(
            
            'select_class' => 'my-class',
            
        ) );
        
        return  $r;

}
add_filter( 'bbp_get_form_topic_status_dropdown', 'custom_callback', 12, 2);

Topic only visable for selected user

Published on October 20th, 2022 by dvalken

Hello BBpress people,

Ive searched the forum and google but nog able to find this specific question.

Im having a Computer repair company and im budy building a forum so people can view the status of their repair real time. but i want it to be as private as it can be, so i want to be able to select the user for the topic so only the site admins and the selected user can see/open the topic.

Is there a way to do this?

Kind regards,
Darwin

Translating [bbp-forum-index] shortcode output.

Published on October 20th, 2022 by theriddler

Hello,

I am using LearnDash in combination with bbpress and the integration addin. Now there appears a sentence “Associated Courses and Groups:” on the forum overview page, which I can’t translate. LearnDash support said it has something to do with the

shortcode output.

Could you help me translate this string?

Best regards
Rene

BBpress and Divi conflict

Published on October 18th, 2022 by vvmdov

Hello, I am using BBpress(2.6.9) on my website(WordPress 6.0.3) with Divi theme(4.18.0). When using any widget/shortcode of BBpress, as well as when trying to search the Forum, the header section I created with Divi changes its shape on the next opened page, it looks completely different and messy – the section size decreases, the menu items are arranged at the bottom, the font colors change, the logo becomes huge.

I contacted Divi support, but since they don’t even know what BBpress is, they didn’t know how to fix the problem and advised me to contact “BBpress customer support”:
– “So it seems like the archive template in the plugin is not working in the same way as the standard single post. You can clarify with the developers what template they are using and how it can be changed to make it work in the same way as the single template, at least the general header and footer parts.”

As desperate as I was, I didn’t want to pass without trying. What is the cause of this problem, how should I solve it? Has anyone experienced this problem or know of a solution?

Successful import – can I delete wp_bbp_converter_translator

Published on October 18th, 2022 by Gomle

After weeks of trial and error my import from simple press to bbpress is finally done (YEY!) after some hours now.

And now I have this table: wp_bbp_converter_translator containing 900.000 rows(!)

Can I delete this, or does bbpress or wordpress take use of it now or will it do in the future?

Profile Pictures Stretched

Published on October 18th, 2022 by WPLRJ

All displays of profile pictures/avatars are stretched horizontally anywhere in our forums. We also use Buddypress for users to edit their profiles.

Changing the permalink: replacing “topics” with “discussions”

Published on October 15th, 2022 by jfbprivate

Hi,

I have searched the forums but haven’t really found a proper answer/solution for this.

Since our forums use the term “discussion” instead of “topic,” we would like to change that part of the permalink from /topics/ to /discussions/, as in:

domain.com/topics/
domain.com/discussions/

For everything else we’re using a custom permalink plugin.

Thanks for any help!

Skip to toolbar