Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 6,251 through 6,275 (of 64,402 total)
  • Author
    Search Results
  • #198451
    Bendis
    Participant

    WordPress Version 4.9.9 bbPress version 2.5.14 Using theme Twenty-Sixteen https://applebranch.org/seminary I have a lot of forums – one for every class I offer in my online school. However on the main page where students access the current forum for their class – it only shows forums through the first forum beginning with R (listed alphabetically). This is a recent development. I have looked at the set ups and settings and cannot find a reason. Is there a limit to the number of forums? If not, how can I get them all to show? Thank you.

    #198450
    Robin W
    Moderator

    I’d suggest you do this as follows:

    there is a ‘hook’ that you show above called ‘<?php do_action( ‘bbp_template_before_single_topic’ ); ?>’

    This tells bbpress to do any action that is added at that point.

    so adding a hook will mean that the function is called at that point.

    The following code should go in your child theme functions file, or use the code snippets plugin

    Code Snippets

    add_action ( 'bbp_template_before_single_topic' , 'rew_back' ); 
    
    function rew_back () {
    	$text = 'click to go back' ;
    	if (bbp_get_topic_forum_id() == '25') $href = home_url( '/forum/domestics/' ) ;
    	if (bbp_get_topic_forum_id() == '33') $href = home_url( '/forum/commercial/' ) ;
    		//where to go if page not there
    	else $href = home_url( '/login/' ) ;
    	echo '<a class="button" href ="'.$href.'">'.$text.'</a>' ;
    }

    so each forum will need a line.

    #198441
    joeco
    Participant

    I followed the js fix from here: https://bbpress.org/forums/topic/threaded-replies-not-working/

    didn’t work

    #198428
    Robin W
    Moderator

    you must have an additional plugin that is moderating posts, bbpress just publishes

    #198427
    joeco
    Participant

    Uncaught ReferenceError: addReply is not defined
    at HTMLAnchorElement.onclick (VM383:663)
    onclick @ VM383:663

    RE: https://pulmonaryfibrosisnews.com/forums/forums/reply/16590/?bbp_reply_to=16590&_wpnonce=bcec251f8f#new-post

    using BBpress Version 2.5.14
    buddypresss Version 4.1.0
    WP 5.0.3

    on ubuntu DO server, nginx, mariaDB

    #198389
    Michael
    Participant

    Hello,

    I’ve been having issues with breadcrumbs, and gone through various mechanisms to get them working efficiently with no joy.

    My needs are simple, so looking to create a simple button in my single topic template to go back to the forum the topic is a part of.

    Can anyone suggest the best URL and code to use?

    / Background:

    – I have created multiple single forums
    – I have then created multiple WP pages, and used the single forum shortcode to embed the forum in the page
    – I’d like to include one button at the top of the topic, that simply takes the user back to the relevant page that is hosting that particular forum (not the bbP forum page)

    / Location of code:

    I am guessing (non-coder) that the best location for this code would be as follows (within content-single-topic.php). Is this correct? (see code below)


    <?php

    /**
    * Single Topic Content Part
    *
    * @package bbPress
    * @subpackage Theme
    */

    ?>

    /* BUTTON HERE */

    <div id="bbpress-forums">

    <?php bbp_breadcrumb(); ?>

    <?php do_action( 'bbp_template_before_single_topic' ); ?>

    Cheers,

    Michael

    #198383

    In reply to: Topic View

    Robin W
    Moderator

    the problem is that modern themes ignore what wordpress expects and do all sorts of clever stuff.

    yes copy page.php and rename it to bbpress.php

    then post a copy of the file here, and I’ll try and help further

    #198381
    RobertL4807
    Participant

    I can really use a plugin that blocks certain words (such as company names that are spam) or spam urls in the post body.

    I’m looking at the “bbpress moderation” plugin but that doesnt seem to cover spam words or bad words.

    Anyone have suggestions on blocking words or flagging posts for moderation if it contains certain words?

    Seems like this would be a great upgrade to the plugin mentioned.

    Much appreciated.

    #198356
    hthornhillhww
    Participant

    Hi,

    I have created a custom notification for my site when a post is published, the code used to do this is :-

    // this is to add a fake component to BuddyPress. A registered component is needed to add notifications
    function custom_filter_notifications_get_registered_components( $component_names = array() ) {
        // Force $component_names to be an array
        if ( ! is_array( $component_names ) ) {
            $component_names = array();
        }
        // Add 'custom' component to registered components array
        array_push( $component_names, 'publishpost' );
        // Return component's with 'custom' appended
        return $component_names;
    }
    add_filter( 'bp_notifications_get_registered_components', 'custom_filter_notifications_get_registered_components' );
    
    // this hooks to post creation and saves the post id
    function bp_custom_add_notification( $post_id, $post ) {
            $post = get_post( $post_id );
            $author_id = $post->post_author;
    		
    		$blogusers = get_users( array( 'role' => 'staff' ) );
    		// Array of WP_User objects.
    		foreach ( $blogusers as $user ) {
    			bp_notifications_add_notification( array(
                'user_id'           => $user->id,
                'item_id'           => $post_id,
                'component_name'    => 'publishpost',
                'component_action'  => 'publishpost_action',
                'date_notified'     => bp_core_current_time(),
                'is_new'            => 1,
            ) );   
    		}        
    }
    add_action( 'publish_post', 'bp_custom_add_notification', 99, 2 );
    
    /**
     * Format the BuddyBar/Toolbar notifications
     *
     * @since bbPress (r5155)
     *
     * @package bbPress
     *
     * @param string $action The kind of notification being rendered
     * @param int $item_id The primary item id
     * @param int $secondary_item_id The secondary item id
     * @param int $total_items The total number of messaging-related notifications waiting for the user
     * @param string $format 'string' for BuddyBar-compatible notifications; 'array' for WP Toolbar
     */
    function custom_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) 
    {
    // New custom notifications
        if ( 'publishpost_action' === $action ) {
    
            $post = get_post( $item_id );
    		$author_name = get_the_author_meta('display_name', $post->post_author);
            $custom_title = bp_core_get_user_displayname( $post->post_author ) . ' published a new post "' . get_the_title( $item_id ) . '"';
            $custom_link  = get_permalink( $post );
            $custom_text = bp_core_get_user_displayname( $post->post_author ) . ' published a new post "' . get_the_title( $item_id ) . '"';
            // WordPress Toolbar
            if ( 'string' === $format ) {
                $return = apply_filters( 'publishpost_filter', '<a href="' . esc_url( $custom_link ) . '" title="' . esc_attr( $custom_title ) . '">' . esc_html( $custom_text ) . '</a>', $custom_text, $custom_link );
            // Deprecated BuddyBar
            } else {
                $return = apply_filters( 'publishpost_filter', array(
                    'text' => $custom_text,
                    'link' => $custom_link
                ), $custom_link, (int) $total_items, $custom_text, $custom_title );
            }
    
            return $return;
    
        } 
    	
    	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;
    	}
    }
    add_filter( 'bp_notifications_get_notifications_for_user', 'custom_format_buddypress_notifications', 1, 5 );

    How can i create the same for a new bbpress topic? i’m thinking i need to change this code section but not sure how

    // this hooks to post creation and saves the post id
    function bp_custom_add_notification( $post_id, $post ) {
            $post = get_post( $post_id );
            $author_id = $post->post_author;
    		
    		$blogusers = get_users( array( 'role' => 'staff' ) );
    		// Array of WP_User objects.
    		foreach ( $blogusers as $user ) {
    			bp_notifications_add_notification( array(
                'user_id'           => $user->id,
                'item_id'           => $post_id,
                'component_name'    => 'publishpost',
                'component_action'  => 'publishpost_action',
                'date_notified'     => bp_core_current_time(),
                'is_new'            => 1,
            ) );   
    		}        
    }
    add_action( 'publish_post', 'bp_custom_add_notification', 99, 2 );

    I am using woffice as the theme, bbpress version 2.5.14, buddypress version 4.1.0 and the latest version of wordpress

    Thanks

    Robin W
    Moderator

    is this related to bbpress ?

    #198333

    In reply to: Topic View

    Robin W
    Moderator
    #198320
    Robin W
    Moderator

    I suspect it is to do with a conflict in this file

    bbpress 2.5.14\includes\extend\buddypress\notifications.php

    which hooks to the same filter. Maybe up your priority from 10 to get yours to run later ?

    #198316
    hthornhillhww
    Participant

    Hi,

    I have created a custom notification for my site when a post is published, if i have buddypress activated alone i see the notification text but as soon as i activate bbpress i can no longer see the notification description. In order to work out this was happening when bbpress was activated i created a whole new blank install of wpress and only installed the two plugins and when i deactivated bbpress it showed the text.

    this is how the notification shows when bbpress is activated
    https://www.dropbox.com/s/uepps9cjcd8xan5/With%20BbPress%20no%20text.PNG?dl=0

    this is how the notification shows when bbpress is NOT activated
    https://www.dropbox.com/s/03wch6bc27nsked/Without%20BbPress%20showing%20text.PNG?dl=0

    I am using Twenty seventeen as the theme, bbpress version 2.5.14, buddypress version 4.1.0 and the latest version of wordpress

    The code i have used to generate the notification is below, and this is located in \wp-content\plugins\bp-custom.php

    <?php
    // this is to add a fake component to BuddyPress. A registered component is needed to add notifications
    function custom_filter_notifications_get_registered_components( $component_names = array() ) {
        // Force $component_names to be an array
        if ( ! is_array( $component_names ) ) {
            $component_names = array();
        }
        // Add 'custom' component to registered components array
        array_push( $component_names, 'publishpost' );
        // Return component's with 'custom' appended
        return $component_names;
    }
    add_filter( 'bp_notifications_get_registered_components', 'custom_filter_notifications_get_registered_components' );
    
    // this hooks to post creation and saves the post id
    function bp_custom_add_notification( $post_id, $post ) {
            $post = get_post( $post_id );
            $author_id = $post->post_author;
            bp_notifications_add_notification( array(
                'user_id'           => $author_id,
                'item_id'           => $post_id,
                'component_name'    => 'publishpost',
                'component_action'  => 'publishpost_action',
                'date_notified'     => bp_core_current_time(),
                'is_new'            => 1,
            ) );   
    }
    add_action( 'publish_post', 'bp_custom_add_notification', 99, 2 );
    
    function custom_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) 
    {
    // New custom notifications
        if ( 'publishpost_action' === $action ) {
    
            $post = get_post( $item_id );
    
            $custom_title = $post->post_author . ' published a new post ' . get_the_title( $item_id );
            $custom_link  = get_permalink( $post );
            $custom_text = $post->post_author . ' published a new post ' . get_the_title( $item_id );
            // WordPress Toolbar
            if ( 'string' === $format ) {
                $return = apply_filters( 'publishpost_filter', '<a href="' . esc_url( $custom_link ) . '" title="' . esc_attr( $custom_title ) . '">' . esc_html( $custom_text ) . '</a>', $custom_text, $custom_link );
            // Deprecated BuddyBar
            } else {
                $return = apply_filters( 'publishpost_filter', array(
                    'text' => $custom_text,
                    'link' => $custom_link
                ), $custom_link, (int) $total_items, $custom_text, $custom_title );
            }
    
            return $return;
    
        }
    }
    add_filter( 'bp_notifications_get_notifications_for_user', 'custom_format_buddypress_notifications', 10, 5 );

    I need to get it so that when bbpress is activated i can see the custom notification description as we use bbpress for our forums

    #198304
    marilynutz
    Participant

    Hi,
    I just installed BBpress, set up two forums. Logged in as a subscriber to create a topic and clicked Notify email of follow-up replies. I then logged in as a different subscriber replied to that topic and clicked Notify email of follow-up replies. I never received an email for either user account. Do you users have to have special bbpress accounts in addition to their WordPress User accounts? What could be causing this problem. Both users are subscribed.

    #198301
    kilerb
    Participant

    Also, I know this isn’t part of BBPress or anything… But for the 2 users that tried to register and never got their link because of the first problem, do you happen to know if there’s a way to send it to them again? Didn’t see the option when I click on their username in the dashboard. Thanks.

    #198299
    Robin W
    Moderator

    ok, not something I’ve seen, as can only suggest that you do the basic fault finding process ie

    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

    #198296
    Robin W
    Moderator

    Whether you register via wordpress or bbpress the password email comes from

    wordpress@mysite.com

    see this article for further help

    https://www.wpbeginner.com/plugins/how-to-change-sender-name-in-outgoing-wordpress-email/

    #198294
    arathra
    Participant

    I’m using WP 5.0.3 along with bbp 2.5.14 and bbPprivate groups, bbp style pack, bbpress canned replies, bbpress toolkit, bbpress topics for posts.

    This is on a 2017 child theme.

    When I view the front page of the forum or a forum itself, then everything is fine and as it should be.

    But when I view a topic then the WP admin bar a the top of the screen disappears.

    What I’d like to know is if anyone else has experienced this problem and what can be done about it. To be honest I’m not really sure where to begin to look for the problem; the page source *appears* fine to me and the console isn’t showing anything that looks wrong. But I don’t know what I’m looking for so could have missed something obvious.

    Can anyone help? Thank you!

    #198290
    Antipole
    Participant

    I find that in email notifications, the hyphen/dash is being escaped into the character string &#8211 (em-dash) when it occurs in topic titles, forum titles and user display names. I have not tested forum names.

    For a topic with the title as on the following line:
    Hyphen – endash – emdash — nonbr hyphen ‑ figure dash ‒
    all these characters survive except for the first hyphen/minus sign. If this same sequence is included in the body of a topic, it is delivered OK, so this is NOT a WP server or email issue. This does not occur in notifications for a WP post, so I believe it is a bbPress issue.

    I have tested this under WP v5.0.3 and with bbPress v2.5.14 the only active plugin and with the theme Twenty Nineteen.

    #198285
    Robin W
    Moderator

    I suspect it is a conflict.

    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

    #198278
    kilerb
    Participant

    Hi, I just started a new website and forum board. Mine does not send new users a link to set their password, but strangely enough, I did go to wp-admin and register a new user there and that did send an email. Went to spam, but it was there. When a new user registers through the bbpress widget, it send me their email and username, but they never get an email. When I successfully got the email for registering on the wp site at /wp-admin, it came from “wordpress@mysite.com” which I never set up. Under general settings I just have my personal email being used, but the reg. email came from wordpress@mysite.com. Any idea why it’s not sending out an email to new users when they register through bb.com but it does when they register at /wp-admin? Everything was just installed today, so plugins and wordpress are all up to date. Thanks!

    #198276
    Howdy_McGee
    Participant

    I’m receiving a couple undefined index notices whenever viewing the settings page:

    PHP Notice:  Undefined index: args in /wp-content/plugins/bbpress/includes/admin/admin.php on line 370
    PHP Notice:  Undefined index: sanitize_callback in /wp-content/plugins/bbpress/includes/admin/admin.php on line 374

    Any ideas what could be causing this?

    #198273
    Robin W
    Moderator

    you will need to do a custom import

    Custom Import

    Robin W
    Moderator

    buddypress and bbpress just use the wordpress logon.

    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

    #198252
    mmoore1967
    Participant

    I am trying to migrate all my Xoops xForum data over to WP bbpress forum. Are there any free tools or info on how to accomplish this task? I do not see much onine to do this? I dont want to lose all my data that was collected over the years.

    From:
    Xoops ver. 2.5.6
    xforum ver. 5.8.5

    To:
    WP ver. 5.0.3
    bbpress ver. 2.5.14

    Thanks in advance…

Viewing 25 results - 6,251 through 6,275 (of 64,402 total)
Skip to toolbar