Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress'

Viewing 25 results - 3,301 through 3,325 (of 26,860 total)
  • Author
    Search Results
  • #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

    #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

    neon67
    Participant

    And wordpress and ‘add new topic’ delayed publishing well.

    The problem in generating [bbp-topic-index] – timestamp and rank in the tracker appears according to the real writing of the post, not top.
    ——-
    Example: at 8: 00 I create a new topic for posting on the forum at 14: 00.
    At 14 00 the topic published, appears at the list of topics, but with the upper rank and timestamp as 8 00, not top.

    how to fix this?

    Robin W
    Moderator

    so what is the post publication schedule ? wordpress delayed publishing or a plugin?

    #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.

    #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/

    #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!

    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

    howyouknow
    Participant

    Hey,

    I am asking for support.

    User after logging in to Buddypress on the website, there is no transparent menu on the phone.

    This is manifested by the fact that he can not see the menu and can not choose subpages from the menu.
    The user avatar and the bar override the menu tile.

    Screenshots in attachments.

    Before logon
    After log on

    #198234
    Robin W
    Moderator
    #198226
    Robin W
    Moderator
    #198223
    Robin W
    Moderator

    I’m just a bbpress user who helps out here, so cannot comment on whether it should be core.

    There was and is much debate about whether you can claim anything you put yourself into public view (eg in a topic or reply, or wordpress comment ) as personal data – and then demand it be removed.

    for instance https://law.stackexchange.com/questions/28276/are-internet-forum-posts-considered-personal-data-under-gdpr

    #198221
    Robin W
    Moderator

    if you wish to include topics and replies in the personal data export, use this plugin

    bbPress GDPR

    #198219
    Robin W
    Moderator

    bbpress doesn’t use any, as wordpress handles the login

    #198218
    ahmetinal
    Participant

    Hi all i install my bbpress but i have any problem
    1) i want change my input section(for topics)
    2) i want add files the post and view this documents(.doc,.pptx…) like this plugin
    its possible ?

    #198206
    Foliferous
    Participant

    Bbpress is not GDPR-compliant because of one thing: The User posts and threads are not collected in WordPress’ feature to export and delete all user data.

    Please add this feature next! Thank you. 🙂

    #198200
    Phillip Burger
    Participant

    Understood. I did bring this topic up pretty specifically to the multiple WordPress forum sites (.org and .com) and it is hard to say if that is a very limited use case worth any effort (maybe just a plugin and not some core update to bbPress would be better) but there may be organizations that run different forum sites where the information is similar, but not worth co-mingling into the same site completely – and the ability to copy / move topics could be useful I believe.

    #198187
    pausecom
    Participant

    Hi,
    on members page when I’m clicking member name it goes on redirect loop.
    I have WordPress 5.0.3 and Buddypress Versio 4.1.0 installed.

    Permalinks are set to Custom: /%category%/%postname%/

    Any ideas ?

    #198177

    In reply to: Export/Import

    cmistico
    Participant

    Hi all… I’m trying to export/import a bbpress forum very large (20k topic, 10k user and so on)
    from a wordpress site (https://domande.analisidelsangue.net) to another (https://www.analisidelsangue.net) .. is there some plugin than can help me to do it? I’m triyng to do it using export/import function of wordpress… but I have only errors… thnkx a lot

    #198167
    BrianHenryIE
    Participant

    When you stop and start it should continue from where it was before. This is part of the standard bbPress importer setup. Unless you choose: “Start Over: Restart the converter from the beginning (This forces all steps back to 0. Avoid duplicate data by purging or resetting first.)” on the Import Forums screen. As it suggests, under the Reset Forums tab you can delete all existing forums, topics and posts. Unfortunately, my plugin doesn’t delete the Redirection plugin settings or the images it imports (although it may be possible to hook into the forum reset code and achieve that).

    You will have to start the import again to import the images and attachments. The converter scans each post as it’s importing for local links and then retrieves the files from the uploads folder. Some are direct links, some are links via Invision’s ~attachment.php?id=123 which need to query the database to find the true file path, and some are older style Invision v3 attachments.

    As you see, the converter just creates its own forums and ignores what’s there, so just delete them.

    I don’t think there’s any need, unless something goes wrong, to give me any access. I suggest doing a feature comparison between Invision and bbPress and see what plugins you’re going to need to retain tools you were using in Invision. If they match what I know I need, I’ll work on converting the appropriate data for both of us.

    #198164
    Robin W
    Moderator
    #198161

    Topic: API key

    in forum Plugins
    ehasimon
    Participant

    I get this message: the bbPress Notify (No-Spam)/Private Groups Bridge API Key has not been activated, so the plugin is not checking for updates! Click here to activate bbPress Notify (No-Spam)/Private Groups Bridge. Where do I find my api key?
    Use WordPress 4.9

    power506
    Participant

    Hi!

    Sorry, no links, my forum and WordPress installations are on localhost.

    After failed import of SMF (2.0.15) database to bbPress 2.5.14. I tried with bbPress 2.6 RC 7 but there is the same problem with both versions. I can’t seem to past by 7th step – “No forum subscriptions to import”. Import monitor listed: “Doing step 6” and it didn’t move past that for 12 hours

    My SMF forum database is clean as it can possibly be and I can’t find where is the problem.

    Has anyone succeeded to import SMF into bbPress?

    #198150
    Mostafa Shahiri
    Participant

    Hi
    I use WordPress 4.9.8 and some plugins such as Woocommerce, WPML, WP Job Manager and BuddyPress at my website. Today I installed bbPress but I found a conflict with other plugins. When I try to access wp-admin page, it is not loaded correctly and loading is stopped by displaying white page. It is a bad problem, because I can not access to dashboard after login. Please guide me.

    Thanks

Viewing 25 results - 3,301 through 3,325 (of 26,860 total)
Skip to toolbar