Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 6,076 through 6,100 (of 14,219 total)
  • In reply to: Character Count

    @robin-w

    Moderator

    I don’t know how technical you are, this one does the opposite

    function rew_min_length ($reply_content) {
    	if (strlen($reply_content)<61) {
    		bbp_add_error( 'bbp_reply_content', __( '<strong>ERROR</strong>: Your reply must be at least 60 characters.', 'bbpress' ) );
    	}
    return $reply_content ;
    }
    
    add_filter( 'bbp_new_reply_pre_content', 'rew_min_length' );

    @robin-w

    Moderator

    I mean it would require someone writing some code

    @robin-w

    Moderator

    the includes/forum/template.php has a function called bbp_get_forum_class which adds classes, but as far as I can see it is never used.

    bbp_list_forums in the same template has

    // Subforum classes
    			$subforum_classes      = array( 'bbp-forum-link' );
    			$subforum_classes      = apply_filters( 'bbp_list_forums_subforum_classes', $subforum_classes, $sub_forum->ID );
    
    			// This could use bbp_get_forum_class() eventually...
    			$subforum_classes_attr = 'class="' . implode( ' ', array_map( 'sanitize_html_class', $subforum_classes ) ) . '"';

    so looks like this is a plan?

    anyway you could use the line listed above

    $subforum_classes = apply_filters( 'bbp_list_forums_subforum_classes', $subforum_classes, $sub_forum->ID );

    to add a call to that function

    sorry that’s then best I can do

    In reply to: 404 after update

    @robin-w

    Moderator

    try

    dashboard>settings>permalinks and simply press save – this resets the links and might fix

    @robin-w

    Moderator

    sorry, we only fix bbpress issues 🙂

    @robin-w

    Moderator

    not possible without additional code

    @robin-w

    Moderator

    hmmm….sorry I’m not a buddypress user, so have no experience with this

    @robin-w

    Moderator

    thanks – glad it worked for you, and very much thanks for the PP !!

    I’ll look at the other thread later – on way out today !!

    @robin-w

    Moderator

    basically bbpress has the ability to add columns via a filter

    This should do it

    add_filter("bbp_admin_replies_column_headers", 'rew_IP_column_add');
    add_filter("manage_reply_posts_custom_column", 'rew_IP_column_value', 10, 3);
    
    function rew_IP_column_add($columns)  {
    	$new = array();
      foreach($columns as $key => $title) {
        if ($key=='bbp_reply_forum') // Put the forum ID column before the Replies forum column
          $new['rew_id'] = 'IP Address';
        $new[$key] = $title;
      }
      return $new;
    }
    	
    function rew_IP_column_value($column_name, $id) {
    		if ($column_name == 'rew_id') echo get_post_meta( $id, '_bbp_author_ip', true );
    }

    Put this in your child theme’s function file – or use

    Code Snippets

    @robin-w

    Moderator

    Great – glad you are fixed !!

    @robin-w

    Moderator

    not certain this will work, but put this in the custom css area of your theme

    #bbpress-forums ul li::before {
    content : none !important ;
    }

    @robin-w

    Moderator

    if forums are visible, can we have a link

    @robin-w

    Moderator

    for each forum, check whether it is a category or a forum, and check whether a parent is set

    @robin-w

    Moderator

    just looked at the new code – try

    remove_filter( 'bbp_get_reply_content', 'bbp_make_clickable', 40);
    remove_filter( 'bbp_get_topic_content', 'bbp_make_clickable', 40); 

    @robin-w

    Moderator

    ok,


    @johnjamesjacoby
    can you help here ?

    @robin-w

    Moderator

    registration is a function of WordPress, not bbpress.

    you can switch it off using

    Disable New User Notification Emails

    @robin-w

    Moderator

    ok, can you list them here and I raise a ticket for you – I’m not a bbpress author, just someone who helps out on here.

    @robin-w

    Moderator

    ok, you should only receive bbpress emails when you create a topic or respond to a reply, and tick the ‘Notify me of follow-up replies via email’ like the one below the reply box on this thread.

    can you specify a couple of examples of what you are getting ?

    @robin-w

    Moderator

    bbpress only send out emails you ask it to !!

    1. are you using additional bbpress related plugins?
    2. are you subscribed to forums?
    3. are you using buddypress?

    @robin-w

    Moderator

    your best bet would be to raise a trac ticket with a list of missing labels

    https://bbpress.trac.wordpress.org/

    @robin-w

    Moderator

    have you run

    dashbard>tools>forums>upgrade forums ?

    In reply to: Can’t find settings

    @robin-w

    Moderator

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    @robin-w

    Moderator

    so you couldput this in your functions file of your child theme, it takes out then new filter and puts back the old one

    remove_filter( 'bp_notifications_get_notifications_for_user', 'bbp_format_buddypress_notifications', 10, 8 );
    add_filter( 'bp_notifications_get_notifications_for_user', 'rew_format_buddypress_notifications', 10, 5 );
    
    function rew_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
    
    	// New reply notifications
    	if ( 'bbp_new_reply' === $action ) {
    		$topic_id    = bbp_get_reply_topic_id( $item_id );
    		$topic_title = bbp_get_topic_title( $topic_id );
    		$topic_link  = wp_nonce_url( add_query_arg( array( 'action' => 'bbp_mark_read', 'topic_id' => $topic_id ), bbp_get_reply_url( $item_id ) ), 'bbp_mark_topic_' . $topic_id );
    		$title_attr  = __( 'Topic Replies', 'bbpress' );
    
    		if ( (int) $total_items > 1 ) {
    			$text   = sprintf( __( 'You have %d new replies', 'bbpress' ), (int) $total_items );
    			$filter = 'bbp_multiple_new_subscription_notification';
    		} else {
    			if ( !empty( $secondary_item_id ) ) {
    				$text = sprintf( __( 'You have %d new reply to %2$s from %3$s', 'bbpress' ), (int) $total_items, $topic_title, bp_core_get_user_displayname( $secondary_item_id ) );
    			} else {
    				$text = sprintf( __( 'You have %d new reply to %s',             'bbpress' ), (int) $total_items, $topic_title );
    			}
    			$filter = 'bbp_single_new_subscription_notification';
    		}
    
    		// WordPress Toolbar
    		if ( 'string' === $format ) {
    			$return = apply_filters( $filter, '<a href="' . esc_url( $topic_link ) . '" title="' . esc_attr( $title_attr ) . '">' . esc_html( $text ) . '</a>', (int) $total_items, $text, $topic_link );
    
    		// Deprecated BuddyBar
    		} else {
    			$return = apply_filters( $filter, array(
    				'text' => $text,
    				'link' => $topic_link
    			), $topic_link, (int) $total_items, $text, $topic_title );
    		}
    
    		do_action( 'bbp_format_buddypress_notifications', $action, $item_id, $secondary_item_id, $total_items );
    
    		return $return;
    	}
    }

    @robin-w

    Moderator

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    @robin-w

    Moderator

    yes please post back your findings.

    Just taken a quick look, so using previous versions works – which version 2.5.14 or later ?

Viewing 25 replies - 6,076 through 6,100 (of 14,219 total)