Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 9,701 through 9,725 (of 64,454 total)
  • Author
    Search Results
  • #180453
    mth75
    Participant

    Hi all,

    I’m trying to add my own “menu” option to the reply header (let’s call it LIKE)..

    So for admin:

    Edit | Close | Stick (to front) | Merge | Trash | Spam | Reply | LIKE |#10436

    For participants:

    Reply | LIKE | #10452

    I can’t find the right solution for this little adjustment I really need … to add the Buddypress Like (favorite) button:

    Integrating Buddypress favorite system (aka like system) with BBPress

    #180448
    Barry
    Participant

    Apologies all and good catch, Robin!

    I don’t think there’s anything wrong with your version of the code, but for the sake of alternatives here’s a fix for what I posted originally:

    function bbpress_enable_rest_api() {
    	$types = array(
    		bbp_get_reply_post_type(),
    		bbp_get_forum_post_type(),
    		bbp_get_topic_post_type(),
    	);
    
    	foreach ( $types as $slug ) {
    		$definition = (array) get_post_type_object( $slug );
    		$definition['show_in_rest'] = true;
    		$definition['rest_controller_class'] = 'WP_REST_Posts_Controller';
    		register_post_type( $slug, $definition );
    	}
    }
    
    add_action( 'bbp_register_post_types', 'bbpress_enable_rest_api', 11 );

    Beyond that, the links you shared (in terms of mixing in extra info such as the author’s details) look solid to me 🙂

    #180446
    Robin W
    Moderator

    http://artintheblood.net/wp-login.php?redirect_to=http%3A%2F%2Fartintheblood.net%2Fwp-login

    gets you to a login page – then disable bbpress and then come back

    Robin W
    Moderator

    ok, I’ve just loaded your code to my test site, and I can set a user to member and it holds

    Suspect either theme or other plugins

    bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Then come back

    #180443

    In reply to: Background Color

    scottwiggins17
    Participant

    Forum Discussions

    here is the forum page. WP and BBpress are most updated versions

    I Think if I could just get the forum pages/topic pages to be a white background, it would be fine.

    kajzh
    Participant

    1. Professional doesn’t stick either. It seems like only the added roles are misbehaving. When I set my Auto Role to a prepackaged role, everything acts fine.

    2. I tried renaming the filter and the roles still don’t stick.

    Thank you for all of your help so far! If you have any other suggestions for creating new/custom roles, please let me know. This is the only modification I’m making to bbPress, so I can definitely try other approaches if any come to mind.

    #180440
    DanaJoy2008
    Participant

    Hello,

    I am getting the following errors:
    Warning: ksort() expects parameter 1 to be array, object given in /home/content/p3pnexwpnas10_data01/99/2483599/html/wp-content/plugins/bbpress/includes/core/template-functions.php on line 316

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/p3pnexwpnas10_data01/99/2483599/html/wp-content/plugins/bbpress/includes/core/template-functions.php:316) in /home/content/p3pnexwpnas10_data01/99/2483599/html/wp-login.php on line 394

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/p3pnexwpnas10_data01/99/2483599/html/wp-content/plugins/bbpress/includes/core/template-functions.php:316) in /home/content/p3pnexwpnas10_data01/99/2483599/html/wp-login.php on line 407

    I cannot log in as an admin. My site is artintheblood.net. I should have the latest update of WordPress, but I cannot confirm because I cannot enter the site. Any advice you can offer is greatly appreciated.

    Robin W
    Moderator

    you would need to know how to copy a bbpress template, modify it and then load it to your child theme

    so you would need FTP access to your site

    If that sound possible, the come back and I’ll try to help further

    posting this untested code in here just so I don’t lose it !

    <?php
    					$user_id = wp_get_current_user()->ID;
    					$topic_id = bbp_get_topic_id() ;
    					$topic_author = bbp_get_topic_author_id( $topic_id ) ;
    					$is_topic_author = ($topic_author == $user_id ? true : false) ;
    					if ( bbp_allow_topic_tags() && current_user_can( 'assign_topic_tags' ) && $is_topic_author ) : ?>
    
    #180437
    Robin W
    Moderator

    Shortcodes

    [bbp-topic-form] – Display the ‘New Topic’ form where you can choose from a drop down menu the forum that this topic is to be associated with.
    [bbp-topic-form forum_id=$forum_id] – Display the ‘New Topic Form’ for a specific forum ID.

    #180433

    In reply to: bbpress link error

    Robin W
    Moderator

    bbpress hates local installations

    try adding

    add_filter( ‘bbp_verify_nonce_request_url’, ‘my_bbp_verify_nonce_request_url’, 999, 1 );

    function my_bbp_verify_nonce_request_url( $requested_url )
    {
    return ‘http://localhost:8888&#8217; . $_SERVER[‘REQUEST_URI’];
    }

    #180431
    Robin W
    Moderator

    As far as I can see that is down to the rest api, not bbpress – it does the same with posts ie not show author.

    I suspect barry is way ahead of me in knowledge but these two links seem to show that you write api callbacks into your website and then add them to the api

    http://wordpress.stackexchange.com/questions/224332/how-to-get-author-meta-into-post-endpoint-in-api-v2

    http://v2.wp-api.org/extending/adding/

    #180426
    soundboy
    Participant

    Hi, I’ve been working on migrating my large Drupal site to WordPress. I’ve managed to do the majority of the site but now I’m stuck on the forum.

    I’m using Drupal 6 and Advanced Forum, I have 26K topics and 700K replies.

    I’ve tried running the script on a couple of different local machines, and on my VPS server where I’ve had the most success; the script does the 26K topics smoothly but then hangs pretty early in the replies, around the 700th row. Locally, it gets stuck before. Weird thing is that a couple of times I’ve left it running for longer, eventually it manages to go past that sticking point and just continues extremely slowly.

    Also: I’ve read the troubleshooting instructions, which make sense but I don’t understand how to pinpoint the line numbers within the database, specifically these points:

    • “Now drop all the rows in the database that are not in the range of rows that failed during import”
    • “Once you have your list of offenders and the import has finished delete these rows from the database and test again to make sure it completes without hanging

    So question #1: if I look at my database in phpMyAdmin for example, and I know the problem is in rows 700-799 of my replies, how do I locate these rows?

    Question #2: Is there a way to know for sure if the problem is performance/memory related or if it’s an encoding issue in a specific row? I don’t know if I should be directing my efforts to solving performance issues or pinpointing problem rows.

    And finally question #3: Does anybody here have experience with these issues and would be willing to be hired to do this migration? Contact me if you do please!

    Thank you very much for any help you can provide 🙂

    #180412

    In reply to: bbpress link error

    hodoze
    Participant

    I have the exact same problem. I’ve struggled to find anyone else in my situation. It’s a clean installation of wordpress, and bbpress is the only plugin installed, NOTHING else is done at all. I’ve tried different themes (like twentyfifteen), but that doesn’t seem to be the troublemaker. I’m allowed to make a new forum, but the “all forums” page results in this error. I’m running it on a localhost mamp server.

    #180404
    scottwiggins17
    Participant

    I’ve searched and tried everything I can find to change the background colors and font colors of my bbpress forum. Right now it is copying the dark format of my X theme settings, and it has a black background with black font color and nothing is visible.

    I installed the bbpress style pack but nothing changes when I mess with color schemes inside the style pack. There has to be an easy way to change background colors with out complicated css. I’m not at all familiar with css, so please dumb it down for me if this is what I need to do.

    Please help!
    thanks,
    Scott

    kajzh
    Participant

    Hello,

    I am running bbPress v2.5.12 on WordPress 4.7 with a child theme I’ve developed based on Imaginem Themes’ Sentric Theme.

    The problem:
    In my child theme’s functions, I have added the following code to make two custom roles, Professional and Member, for my Q&A/”Ask the Expert”-style forum called “Ask a Professional.” Essentially, Members can make threads asking questions, but only screened Professionals have the ability to reply and provide answers.

    I want everyone to automatically be assigned the Member role upon registration. Then I can manually “upgrade” their roles to Professional once they’ve been successfully screened. However, when a user registers and logs in, they inherit Member capabilities, but are not assigned the Member role. Manually selecting the user and assigning them the Member role doesn’t work; their role immediately reverts back to “— No role for these forums —”
    screenshot

    When I select the user and manually assign the Participant role, the role “sticks” — meaning, it doesn’t revert back to “No Role.” However, the “Member” capabilities remain.

    screenshot

    Does anyone know why this problem persists and how to fix it? This is the final thing that needs to be ironed out before my site goes live. 🙂 Thank you!

    //code to add custom roles 
     
    function add_new_roles( $bbp_roles )
    {
        /* Add a role called professional */
        $bbp_roles['bbp_professional'] = array(
            'name' => 'Professional',
            'capabilities' => custom_capabilities( 'bbp_professional' )
            );
     
        /* Add a role called member */
        $bbp_roles['bbp_member'] = array(
            'name' => 'Member',
            'capabilities' => custom_capabilities( 'bbp_member' )
            );
     
        return $bbp_roles;
    }
     
    add_filter( 'bbp_get_dynamic_roles', 'add_new_roles', 1 );
     
    function add_role_caps_filter( $caps, $role )
    {
        /* Only filter for roles we are interested in! */
        if( $role == 'bbp_professional' )
            $caps = custom_capabilities( $role );
     
        if( $role == 'bbp_member' )
            $caps = custom_capabilities( $role );
     
        return $caps;
    }
     
    add_filter( 'bbp_get_caps_for_role', 'add_role_caps_filter', 10, 2 );
     
    function custom_capabilities( $role )
    {
        switch ( $role )
        {
     
            /* Capabilities for 'professional' role */
            case 'bbp_professional':
                return array(
                     'spectate'              => true,
                    'participate'           => true,
                    'moderate'              => false,
                    'throttle'              => false,
                    'view_trash'            => false,
     
                    // Forum caps
                    'publish_forums'        => false,
                    'edit_forums'           => false,
                    'edit_others_forums'    => false,
                    'delete_forums'         => false,
                    'delete_others_forums'  => false,
                    'read_private_forums'   => true,
                    'read_hidden_forums'    => true,
     
                    // Topic caps
                    'publish_topics'        => true,
                    'edit_topics'           => true,
                    'edit_others_topics'    => false,
                    'delete_topics'         => true,
                    'delete_others_topics'  => true,
                    'read_private_topics'   => true,
     
                    // Reply caps
                    'publish_replies'       => true,
                    'edit_replies'          => true,
                    'edit_others_replies'   => false,
                    'delete_replies'        => false,
                    'delete_others_replies' => false,
                    'read_private_replies'  => true,
     
                    // Topic tag caps
                    'manage_topic_tags'     => true,
                    'edit_topic_tags'       => true,
                    'delete_topic_tags'     => true,
                    'assign_topic_tags'     => true,
                );
     
                /* Capabilities for 'member' role */
            case 'bbp_member':
                return array(
                    // Primary caps
                    'spectate'              => true,
                    'participate'           => true,
                    'moderate'              => false,
                    'throttle'              => false,
                    'view_trash'            => false,
     
                    // Forum caps
                    'publish_forums'        => false,
                    'edit_forums'           => false,
                    'edit_others_forums'    => false,
                    'delete_forums'         => false,
                    'delete_others_forums'  => false,
                    'read_private_forums'   => true,
                    'read_hidden_forums'    => false,
     
                    // Topic caps
                    'publish_topics'        => true,
                    'edit_topics'           => true,
                    'edit_others_topics'    => false,
                    'delete_topics'         => false,
                    'delete_others_topics'  => false,
                    'read_private_topics'   => true,
     
                    // Reply caps
                    'publish_replies'       => false,
                    'edit_replies'          => false,
                    'edit_others_replies'   => false,
                    'delete_replies'        => false,
                    'delete_others_replies' => false,
                    'read_private_replies'  => true,
     
                    // Topic tag caps
                    'manage_topic_tags'     => false,
                    'edit_topic_tags'       => false,
                    'delete_topic_tags'     => false,
                    'assign_topic_tags'     => false,
                );
     
                break;
     
            default :
                return $role;
        }
    }

    Troubleshooting:

    1. I’ve tried to disable plugins and see if any of them are causing this issue. This hasn’t yielded any different results.
    2. I’ve checked with the Twenty Sixteen and Twenty Seventeen theme.
    #180401

    In reply to: bbpress link error

    DolZikoo
    Participant

    1. Disable all plug-ins
      – I have only one bbpress plugin installed.

    2. Change the theme to ‘Twenty Fifteen’

    3. Clicking on the ‘bbs2> Forums’ link will result in an http 500 error
       Error: http://korear.net/?post_type=forum
       Bbs2 page: http://korear.net/?page_id=11

    #180396
    gulfwx
    Participant

    We are moving from a forum (that can’t be imported) to bbpress, and our 3000 members would like to keep their post counts. We are using bbp user ranking to show each user’s reply count. Is there a way to edit that number for individual users?

    #180392
    Robin W
    Moderator

    yet unbelievably there seems to be no-one who has a solution after all the years of BBpress being around.

    I suspect that this is because it is the symptom of many problems.

    bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Then come back

    #180389
    Robin W
    Moderator

    Ok, then who is the culprit?

    you are

    go to

    dashboard>plugins>add new and serach and install bbpress

    #180386

    In reply to: bbpress link error

    Robin W
    Moderator

    bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Then come back

    #180385
    Robin W
    Moderator

    this is a theme not a bbpress plugin error.

    that is install it as a new plugin not as a theme !

    #180383
    Robin W
    Moderator

    I found that the above code took away the Forums, Topics and Replies from the dashboard in bbpress.

    I found some other code and modified it as follows

    /**
      * Add REST API support to an already registered post type.
      */
      add_action( 'init', 'rew_custom_post_type_rest_support', 25 );
      
      function rew_custom_post_type_rest_support() {
      	global $wp_post_types;
      
      	$post_type_name =  bbp_get_reply_post_type();
      	if( isset( $wp_post_types[ $post_type_name ] ) ) {
      		$wp_post_types[$post_type_name]->show_in_rest = true;
      		$wp_post_types[$post_type_name]->rest_base = $post_type_name;
      		$wp_post_types[$post_type_name]->rest_controller_class = 'WP_REST_Posts_Controller';
      	}
    	$post_type_name =  bbp_get_topic_post_type();
      	if( isset( $wp_post_types[ $post_type_name ] ) ) {
      		$wp_post_types[$post_type_name]->show_in_rest = true;
      		$wp_post_types[$post_type_name]->rest_base = $post_type_name;
      		$wp_post_types[$post_type_name]->rest_controller_class = 'WP_REST_Posts_Controller';
      	}
    	$post_type_name =  bbp_get_forum_post_type();
      	if( isset( $wp_post_types[ $post_type_name ] ) ) {
      		$wp_post_types[$post_type_name]->show_in_rest = true;
      		$wp_post_types[$post_type_name]->rest_base = $post_type_name;
      		$wp_post_types[$post_type_name]->rest_controller_class = 'WP_REST_Posts_Controller';
      	}
    	  
      }


    @barryhughes-1
    – thoughts – can this be done better?

    #180382

    Installing Theme from uploaded file: bbpress.2.5.12.zip
    Unpacking the package…

    Installing the theme…

    The package could not be installed. The theme is missing the style.css stylesheet.

    Theme install failed.

    Please provide an installer that resolved this issue.

    Thank you.

    #180379

    In reply to: PHP Warnings

    avalanche
    Participant

    I deleted bbpress via ftp, and re-installed it. It still wasn’t working, so I deleted bbpress, and I was able to log into WordPress. I found that 4 plugins, and one theme needed to be updated. So I updated everything, and re-installed bbpress. No more errors!

    #180378

    Topic: PHP Warnings

    in forum Installation
    avalanche
    Participant

    I’m receiving a php warning when I go to http://scafra.org/
    Warning: ksort() expects parameter 1 to be array, object given in /home/content/p3pnexwpnas01_data01/45/3635545/html/wp-content/plugins/bbpress/includes/core/template-functions.php on line 316

    When I go to /wp-login.php I receive these warnings:
    Warning: ksort() expects parameter 1 to be array, object given in /home/content/p3pnexwpnas01_data01/45/3635545/html/wp-content/plugins/bbpress/includes/core/template-functions.php on line 316

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/p3pnexwpnas01_data01/45/3635545/html/wp-content/plugins/bbpress/includes/core/template-functions.php:316) in /home/content/p3pnexwpnas01_data01/45/3635545/html/wp-login.php on line 394

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/p3pnexwpnas01_data01/45/3635545/html/wp-content/plugins/bbpress/includes/core/template-functions.php:316) in /home/content/p3pnexwpnas01_data01/45/3635545/html/wp-login.php on line 407

    After I attempt to login, I receive an error that my password is incorrect, and then I receive these warnings:
    Warning: ksort() expects parameter 1 to be array, object given in /home/content/p3pnexwpnas01_data01/45/3635545/html/wp-content/plugins/bbpress/includes/core/template-functions.php on line 316

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/p3pnexwpnas01_data01/45/3635545/html/wp-content/plugins/bbpress/includes/core/template-functions.php:316) in /home/content/p3pnexwpnas01_data01/45/3635545/html/wp-login.php on line 394

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/p3pnexwpnas01_data01/45/3635545/html/wp-content/plugins/bbpress/includes/core/template-functions.php:316) in /home/content/p3pnexwpnas01_data01/45/3635545/html/wp-login.php on line 407

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/p3pnexwpnas01_data01/45/3635545/html/wp-content/plugins/bbpress/includes/core/template-functions.php:316) in /home/content/p3pnexwpnas01_data01/45/3635545/html/wp-includes/pluggable.php on line 893

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/p3pnexwpnas01_data01/45/3635545/html/wp-content/plugins/bbpress/includes/core/template-functions.php:316) in /home/content/p3pnexwpnas01_data01/45/3635545/html/wp-includes/pluggable.php on line 894

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/p3pnexwpnas01_data01/45/3635545/html/wp-content/plugins/bbpress/includes/core/template-functions.php:316) in /home/content/p3pnexwpnas01_data01/45/3635545/html/wp-includes/pluggable.php on line 895

    Although I can’t login via WordPress, I can FTP, but I’m not sure what to change.

Viewing 25 results - 9,701 through 9,725 (of 64,454 total)
Skip to toolbar