Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 9,176 through 9,200 (of 64,526 total)
  • Author
    Search Results
  • #183343
    dayan89
    Participant

    Hello fellow bbpressers,

    I have a problem. Latest reply link in sidebar widget is not functioning properly in a thread with big amount of replies. On other threads it is functioning correctly.

    Link is like this: http://dailyfantasysports.ru/forum/topic/ponesli-sandali-mityu/#post-21564

    You see? There is no page slug in URL!

    It has to be like this: http://dailyfantasysports.ru/forum/topic/ponesli-sandali-mityu/page/53/#post-21564

    But it’s not!

    How to fix it?

    I’ve tried to repair forums (WordPress Dashboard -> ‘Tools’ -> ‘Forums’ -> ‘Repair Forums’ ) It helps. But only until next reply in this thread. After new reply link is broken again.

    Please tell me how to fix it. Cannot solve this problem for whole month!

    #183341
    stratman82
    Participant

    I found that my bbpress forum had been spammed with about 3000 posts so I edited the forum and deleted it from the admin menu, but now my entire website is unavailable:

    The page you are looking for is temporarily unavailable.
    Please try again later.
    6c3c50bccd07516bcb39191096de0569 764d287ec9b0ed3349cd919dc56c049b fd108eaf5ae67f1a0e8a48d6dc69ca87

    Any help?

    #183333
    tananaev
    Participant

    I added functions to “functions.php” in my theme:

    I’m not a PHP developer and I’m not a WordPress expert, so I’m sure it’s far from perfect, but here is my code:

    function custom_bbp_notify_topic_subscribers( $reply_id = 0, $topic_id = 0, $forum_id = 0, $anonymous_data = false, $reply_author = 0 ) {
    
        // Bail if subscriptions are turned off
        if ( !bbp_is_subscriptions_active() ) {
            return false;
        }
    
        /** Validation ************************************************************/
    
        $reply_id = bbp_get_reply_id( $reply_id );
        $topic_id = bbp_get_topic_id( $topic_id );
        $forum_id = bbp_get_forum_id( $forum_id );
    
        /** Topic *****************************************************************/
    
        // Bail if topic is not published
        if ( !bbp_is_topic_published( $topic_id ) ) {
            return false;
        }
    
        /** Reply *****************************************************************/
    
        // Bail if reply is not published
        if ( !bbp_is_reply_published( $reply_id ) ) {
            return false;
        }
    
        // Poster name
        $reply_author_name = bbp_get_reply_author_display_name( $reply_id );
    
        /** Mail ******************************************************************/
    
        // Remove filters from reply content and topic title to prevent content
        // from being encoded with HTML entities, wrapped in paragraph tags, etc...
        remove_all_filters( 'bbp_get_reply_content' );
        remove_all_filters( 'bbp_get_topic_title'   );
    
        // Strip tags from text and setup mail data
        $topic_title   = strip_tags( bbp_get_topic_title( $topic_id ) );
        $reply_content = strip_tags( bbp_get_reply_content( $reply_id ) );
        $reply_url     = bbp_get_reply_url( $reply_id );
        $blog_name     = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
    
        // For plugins to filter messages per reply/topic/user
        $message = sprintf( __( '%1$s wrote:
    
    %2$s
    
    Post Link: %3$s
    
    -----------
    
    You are receiving this email because you subscribed to a forum topic.
    
    Login and visit the topic to unsubscribe from these emails.', 'bbpress' ),
    
            $reply_author_name,
            $reply_content,
            $reply_url
        );
    
        $message = apply_filters( 'bbp_subscription_mail_message', $message, $reply_id, $topic_id );
        if ( empty( $message ) ) {
            return;
        }
    
        // For plugins to filter titles per reply/topic/user
        $subject = apply_filters( 'bbp_subscription_mail_title', '[' . $blog_name . '] ' . $topic_title, $reply_id, $topic_id );
        if ( empty( $subject ) ) {
            return;
        }
    
        /** Users *****************************************************************/
    
        // Get the noreply@ address
        $no_reply   = bbp_get_do_not_reply_address();
    
        // Setup "From" email address
        $from_email = apply_filters( 'bbp_subscription_from_email', $no_reply );
    
        // Get topic subscribers and bail if empty
        $user_ids = bbp_get_topic_subscribers( $topic_id, true );
    
        // Dedicated filter to manipulate user ID's to send emails to
        $user_ids = apply_filters( 'bbp_topic_subscription_user_ids', $user_ids );
        if ( empty( $user_ids ) ) {
            return false;
        }
    
        $to_email = apply_filters( 'bbp_subscription_to_email', $no_reply );
    
        do_action( 'bbp_pre_notify_subscribers', $reply_id, $topic_id, $user_ids );
    
        for ( $i = 0; $i <= count($user_ids); $i++ ) {
            if ( $i % (50 - 1) === 0 || $i === count($user_ids) ) {
                if ( $i !== 0 ) {
                    $headers  = apply_filters( 'bbp_subscription_mail_headers', $headers );
                    wp_mail( $to_email, $subject, $message, $headers );
                }
    
                $headers = array( 'From: ' . get_bloginfo( 'name' ) . ' <' . $from_email . '>' );
            }
    
            if ( $i < count($user_ids) ) {
                // Don't send notifications to the person who made the post
                if ( !empty( $reply_author ) && (int) $user_ids[$i] === (int) $reply_author ) {
                    continue;
                }
    
                // Get email address of subscribed user
                $headers[] = 'Bcc: ' . get_userdata( $user_ids[$i] )->user_email;
            }
        }
    
        do_action( 'bbp_post_notify_subscribers', $reply_id, $topic_id, $user_ids );
    
        return true;
    }
    
    function custom_bbp_notify_forum_subscribers( $topic_id = 0, $forum_id = 0, $anonymous_data = false, $topic_author = 0 ) {
    
        // Bail if subscriptions are turned off
        if ( !bbp_is_subscriptions_active() ) {
            return false;
        }
    
        /** Validation ************************************************************/
    
        $topic_id = bbp_get_topic_id( $topic_id );
        $forum_id = bbp_get_forum_id( $forum_id );
    
        /**
         * Necessary for backwards compatibility
         *
         * @see https://bbpress.trac.wordpress.org/ticket/2620
         */
        $user_id  = 0;
    
        /** Topic *****************************************************************/
    
        // Bail if topic is not published
        if ( ! bbp_is_topic_published( $topic_id ) ) {
            return false;
        }
    
        // Poster name
        $topic_author_name = bbp_get_topic_author_display_name( $topic_id );
    
        /** Mail ******************************************************************/
    
        // Remove filters from reply content and topic title to prevent content
        // from being encoded with HTML entities, wrapped in paragraph tags, etc...
        remove_all_filters( 'bbp_get_topic_content' );
        remove_all_filters( 'bbp_get_topic_title'   );
    
        // Strip tags from text and setup mail data
        $topic_title   = strip_tags( bbp_get_topic_title( $topic_id ) );
        $topic_content = strip_tags( bbp_get_topic_content( $topic_id ) );
        $topic_url     = get_permalink( $topic_id );
        $blog_name     = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
    
        // For plugins to filter messages per reply/topic/user
        $message = sprintf( __( '%1$s wrote:
    
    %2$s
    
    Topic Link: %3$s
    
    -----------
    
    You are receiving this email because you subscribed to a forum.
    
    Login and visit the topic to unsubscribe from these emails.', 'bbpress' ),
    
            $topic_author_name,
            $topic_content,
            $topic_url
        );
    
        $message = apply_filters( 'bbp_forum_subscription_mail_message', $message, $topic_id, $forum_id, $user_id );
        if ( empty( $message ) ) {
            return;
        }
    
        // For plugins to filter titles per reply/topic/user
        $subject = apply_filters( 'bbp_forum_subscription_mail_title', '[' . $blog_name . '] ' . $topic_title, $topic_id, $forum_id, $user_id );
        if ( empty( $subject ) ) {
            return;
        }
    
        /** User ******************************************************************/
    
        // Get the noreply@ address
        $no_reply   = bbp_get_do_not_reply_address();
    
        // Setup "From" email address
        $from_email = apply_filters( 'bbp_subscription_from_email', $no_reply );
    
        // Get topic subscribers and bail if empty
        $user_ids = bbp_get_forum_subscribers( $forum_id, true );
    
        // Dedicated filter to manipulate user ID's to send emails to
        $user_ids = apply_filters( 'bbp_forum_subscription_user_ids', $user_ids );
        if ( empty( $user_ids ) ) {
            return false;
        }
    
        $to_email = apply_filters( 'bbp_subscription_to_email', $no_reply );
    
        do_action( 'bbp_pre_notify_forum_subscribers', $topic_id, $forum_id, $user_ids );
    
        for ( $i = 0; $i <= count($user_ids); $i++ ) {
            if ( $i % (50 - 1) === 0 || $i === count($user_ids) ) {
                if ( $i !== 0 ) {
                    $headers  = apply_filters( 'bbp_subscription_mail_headers', $headers );
                    wp_mail( $to_email, $subject, $message, $headers );
                }
    
                $headers = array( 'From: ' . get_bloginfo( 'name' ) . ' <' . $from_email . '>' );
            }
    
            if ( $i < count($user_ids) ) {
                // Don't send notifications to the person who made the post
                if ( !empty( $topic_author ) && (int) $user_ids[$i] === (int) $topic_author ) {
                    continue;
                }
    
                // Get email address of subscribed user
                $headers[] = 'Bcc: ' . get_userdata( $user_ids[$i] )->user_email;
            }
        }
    
        do_action( 'bbp_post_notify_forum_subscribers', $topic_id, $forum_id, $user_ids );
    
        return true;
    }
    
    function custom_bbp_init () {
    
        remove_action ('bbp_new_reply', 'bbp_notify_topic_subscribers', 11);
        add_action ('bbp_new_reply', 'custom_bbp_notify_topic_subscribers', 11, 5);
    
        remove_action ('bbp_new_topic', 'bbp_notify_forum_subscribers', 11);
        add_action ('bbp_new_topic', 'custom_bbp_notify_forum_subscribers', 11, 4);
    
    }
    
    add_action ('bbp_init', 'custom_bbp_init', 99);
    
    #183330
    tananaev
    Participant

    Thanks for suggestion, but I have actually already implemented it myself. Basically I took original bbpress methods and modified them slightly to split messages by 50 subscribers.

    #183321
    Pascal Casier
    Moderator

    Hi @tananaev ,

    It took me some time to look around, but maybe https://wordpress.org/plugins/asyncronous-bbpress-subscriptions/ can help you ?

    #183304
    giobby
    Participant

    Hi,

    It just says “Version 2.6-alpha”.

    I’ll try to download the beta version to check the improvements. Thanks.

    Concerning the feedbacks, I don’t really get anything useful from the users and I start believing they are just lazy.
    Even though, stats speak more than words: before bbpress I had about 11K sessions per month, now I have 800.

    #183302
    Michał
    Participant

    Really no one can help me? I am very interested in it, I am writing in the help forum, but I did not get it. After all, the people who wrote all the converters will certainly be able to modify one of them. It’s only been a few days since I created the topic, maybe too soon I would like the forum to work on bbpress script …. However, I hope that there will be a person willing to help. Regards, Michal sorry for my english 🙂

    #183301
    Brandon Allen
    Participant

    @giobby

    What I can tell you for sure as a general feedback is that since I’ve moved to bbPRess from phpBB the forum has suddenly died and users are pushing me to roll back to phpBB as they don’t find bbPress as user friendly.

    Humans are generally resistant to change. That doesn’t mean they’re wrong, but it also doesn’t mean they’re right. If you would be willing to share specific feedback your users have given you, we would love to look it over and see what we can do. There’s lots of room for improvement.

    2.6a has been there for a while and I am wondering when a stable version will be available and what new functionalities will be available.

    I’m curious about what specific version of 2.6-alpha you’re running (this should be listed in the admin on the plugins page, e.g. – 2.6-alpha-XXXX). Ultimately, it doesn’t really matter though, because we’re currently at 2.6-beta-2 (https://downloads.wordpress.org/plugin/bbpress.2.6-beta-2.zip).

    I would suggest updating to 2.6-beta-2 and seeing if anything improves. 2.6 will have a lot of improvements. Performance is one of those improvements. The biggest performance improvements won’t becoming until beta-3 is released, but you can always download the development version (https://downloads.wordpress.org/plugin/bbpress.zip).

    Do let us know what comes of any changes.

    #183300

    This is a classic question/problem, that has many-many possible answers.

    Your first resource for improving anything should be what’s available on this codex page:

    Improving Performance

    Everything that’s on that page should be considered, implemented, and tuned. Most of that isn’t specific to bbPress (and is appropriate even just for most WordPress installs) but plugins like bbPress will show huge improvements with adequate caching available.

    * Concurrent users
    * Database slowness
    * Page load times
    * Excessive database queries

    Improving each of those 4 things requires tweaking & tuning specific things for your specific hardware setup. And if you’re on shared hosting, you might not be able to change any of that configuration at all.

    The “concurrent users” problem that BuddyPress & bbPress sites have is actually a good problem to have – it means people are using your site and participating in your community. Server configuration is critical here, as is having adequate hardware that will be ready to serve those requests to your users.

    The reason most WordPress installations don’t have the same problem, is because there are fewer (if any) logged in users interacting with a traditional blog, news, or website without participation. Comments are the only database interaction, and most people disable them these days anyways.

    There are companies (such as WeFoster) whose primary focus is on optimizing their hosting environments for active communities. They’ll offer all of the above and more to help you tune specific things.

    In my experience, it’s easier to identify a specific performance concern, and improve that one thing until you’re happy enough to move onto the next concern.

    #183298

    In reply to: Language

    Roman Matovsky
    Participant

    I use last version. And I downloaded from here https://translate.wordpress.org/projects/wp-plugins/bbpress/stable/ru/default
    But problem is: files shouldn’t be here /wp-content/languages/bbpress/ , files should be here /wp-content/languages/plugins/
    Change instruction please https://codex.bbpress.org/getting-started/bbpress-in-your-language/

    #183296

    In reply to: Language

    Pascal Casier
    Moderator

    Hi,
    I see you downloaded from the 2.4.x branch. You have a bbPress 2.4 installation ?

    #183295

    Topic: Query error

    in forum Plugins
    kbaldac
    Participant

    We are running WordPress 4.7.3 with bbpress 2.5.12 at http://one-name.org. This mysql error started appearing last night when accessing any forum, topic or reply. I believe it relates to the ‘AND ((()))’ clause:

    Apr 06, 13:03:46
    WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘))) AND ggx_posts.post_type IN (‘topic’, ‘reply’) AND (ggx_posts.post_status = ‘ at line 1 for query SELECT ggx_posts.* FROM ggx_posts FORCE INDEX (PRIMARY, post_parent) WHERE 1=1 AND (ggx_posts.ID = 29822 OR ggx_posts.post_parent = 29822) AND ((())) AND ggx_posts.post_type IN (‘topic’, ‘reply’) AND (ggx_posts.post_status = ‘publish’ OR ggx_posts.post_status = ‘closed’ OR ggx_posts.post_status = ‘retained’ OR ggx_posts.post_author = 5528 AND ggx_posts.post_status = ‘private’ OR ggx_posts.post_author = 5528 AND ggx_posts.post_status = ‘hidden’) ORDER BY ggx_posts.post_date ASC made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), apply_filters(‘template_include’), WP_Hook->apply_filters, call_user_func_array, bbp_template_include, apply_filters(‘bbp_template_include’), WP_Hook->apply_filters, call_user_func_array, bbp_template_include_theme_compat, BBP_Shortcodes->display_topic, bbp_get_template_part, bbp_locate_template, load_template, require(‘/plugins/bbpress/templates/default/bbpress/content-single-topic.php’), bbp_has_replies, WP_Query->__construct, WP_Query->query, WP_Query->get_posts

    #183292

    In reply to: Language

    Roman Matovsky
    Participant

    Didn’t work 🙁
    I have /wp-content/languages/ So, I created /wp-content/languages/bbpress/
    I dowloaded .PO from here https://translate.wordpress.org/projects/bbpress/2.4.x/ru/default
    Changed what I need. Saved as bbpress-ru_RU.po Compilated to .MO and put both (PO and MO) to /wp-content/languages/bbpress/ (bbpress-ru_RU.po and bbpress-ru_RU.mo)
    I even clean cash. But nothing.
    Help me please.

    #183291

    In reply to: Language

    Roman Matovsky
    Participant

    If you only want to change it on your local installation, you can read the codex on https://codex.bbpress.org/getting-started/bbpress-in-your-language/

    Thank you! That’s what I need.

    #183282
    Pascal Casier
    Moderator

    So it’s display only ? But the input of the topics and replies is happening somewhere in a ‘normal’ bbPress forum, right ?

    I think you need to create a theme that only displays what you need. It will be easier then just displaying everything with the shortcodes.

    Step-by-Step Guide to Creating a Custom bbPress Theme

    #183280
    Pascal Casier
    Moderator

    Hi,
    It’s a bit difficult to understand where this is coming from (it might be part of your theme), so if the site is publically availalble, a link to it might be nice.

    It might be that following point 3 of this codex page will help you: https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/

    #183278

    In reply to: bbp_reply_admin_links

    theredeclipse
    Participant

    Thanks a lot, it works now! I’ve removed “class=”bbp-author-” and rest of the code doesn’t display so its suits perfectly for me.

    Now I trying to change args of bbp_get_reply_admin_links (stored in bbpress/includes/replies/template.php)

    Thats my hook

    function hw_get_reply_admin_links ($args) {
    $args = array (
    			'before' => '<div class="list">',
    			'after'  => '</div>',
    );
    return $args;
    }
    add_filter ('bbp_get_reply_admin_links', 'hw_get_reply_admin_links' );

    What’s wrong here?

    #183277
    DessertGuru
    Participant

    I’m going to use bbPress but via shortcodes so that only topics and posts within the topics are displayed on pages. I don’t want the full Forum Root, Forums, Topics etc., displayed on a page. so I’m going to create individual pages for each topic assign the bbpress shortcode for the topic and posts. So is it really necessary to do page/slug assignments in bbpress setup and have the full thing displayed even though I’m not going to use the full bbpress forum display structure and I certainly don’t want to the public to see it.

    or does anyone have any other suggestions on how to accomplish this?

    The “forum” will the individual Page, the Topic will be the posts from users on the assigned page. there won’t be an actual “topic” for each forum since the forum is the topic.

    #183275
    drbgaijin
    Participant

    Further clarification.
    If I reply to a Topic, and have selected “email me replies to this Topic”, the email I get has an active link.
    But what I wanted to achieve, and could do with bbPress Notify, was to automatically send a notification to members when a new topic or new forum was created.
    Regards
    Douglas

    #183274
    drbgaijin
    Participant

    Thanks for the reply. I had installed “bbPress Notify(No-Spam)”. I have deactivated it now to see what happens. Now there are no notifications being sent at all!
    I have been unable to get the barebones bbPress send notifications from the start. So I found the Notify plugin and could get notifications to work – but with no active links.
    Does bbPress have a basic setting to send notifications when a new topic is started? Or can you recommmend a plugin that integrates better with bbPress and can do this?
    Regards
    Douglas

    angrywarrior
    Blocked

    1.) I have tested and deactived all plugins, but there is no difference. BBpress just throws 404 on all child forums.

    2.) i have tested with permalinks. Nothing works except for “default”, then it finds the sub forums and displays them all other permalink modes/options fails.

    3.) I have checked .htaccess and cannot find anything special that could make a difference. I haven’t changed anything for sometime. It (bbpress) has worked fine until now.

    4.) I’m using the latest version of wordpress, bbpress & buddypress.

    Any idea what could be worng here? I would appreciate anything that would point me in the right direction!

    Thanks!

    #183271

    In reply to: Migration from xenForo

    Pascal Casier
    Moderator

    Did you try importing in the latest bbPress 2.6-beta 2 ?

    Download

    #183270
    Pascal Casier
    Moderator

    Hi,
    If you have only installed bbPress, links should be clickable… Did you add any other plugins on your installation ?

    #183267

    In reply to: Language

    Pascal Casier
    Moderator

    Hi,
    bbPress translation is centralized here: https://translate.wordpress.org/projects/wp-plugins/bbpress/stable/ru/default

    If you want to propose a new translation so everybody in the world that uses it in Russian gets your update (when it gets approved), then you can do that using the above link.

    If you only want to change it on your local installation, you can read the codex on https://codex.bbpress.org/getting-started/bbpress-in-your-language/

    #183266
    tonipetrov91
    Participant

    I’m trying to add a parent/child relationship between bbpress forums and a custom post type I’ve created. Is there a way to do that, currently I can only make forum a child of another forum?

    I’ve tried adding a custom meta box that would allow that:

    
    function my_add_meta_boxes() {
    	add_meta_box( 'lesson-parent', 'Module', 'lessons_attributes_meta_box', 'forum', 'side', 'high' );
    }
    add_action( 'add_meta_boxes', 'my_add_meta_boxes' );
    function lessons_attributes_meta_box( $post ) {
    	$post_type_object = get_post_type_object( $post->post_type );
    	$pages = wp_dropdown_pages( array( 'post_type' => 'lesson', 'selected' => $post->post_parent, 'name' => 'parent_id', 'show_option_none' => __( '(no parent)' ), 'sort_column'=> 'menu_order, post_title', 'echo' => 0 ) );
    	if ( ! empty( $pages ) ) {
    		echo $pages;
    	}
    }
    

    This shows the metabox and I can select the CPTs from a dropdown list, they are not saved. This should be because the forum post type has hierarchy=>true. So I’ve tried to disable it using the below code, but it doesn’t work:

    
    add_action('registered_post_type', 'disable_hierarchical', 10, 2 );
    
    // Runs after each post type is registered
    function disable_hierarchical($post_type, $pto){
    
        // Return, if not post type posts
        if ($post_type != 'forum') return;
    
        // access $wp_post_types global variable
        global $wp_post_types;
        $wp_post_types['forum']->hierarchical = false;
    }
    

    The above code works fine with the page post type, but not with the forum. What’s special about it that I’m missing?

Viewing 25 results - 9,176 through 9,200 (of 64,526 total)
Skip to toolbar