Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '\"wordpress\'

Viewing 25 results - 226 through 250 (of 26,679 total)
  • Author
    Search Results
  • #239114
    Robin W
    Moderator

    can you try adding

    BP Classic

    which has a compatibility link between buddypress 12 and bbpress.

    Then come back and report

    #239113
    ahillmortons
    Participant

    Hi @robin-w,

    I’m using an FSE theme with compatibility turned on in bbp style pack, It’s called Lawson by ThemeZee.

    I’m using:
    WordPress 6.4.2
    bbPress 2.6.9
    BuddyPress 12.1.1
    BuddyPress Multi Network 1.0.3
    bbp style pack 5.8.0
    Profile Builder 3.10.7
    Profile Builder Elite 3.9.9

    I’ve replied here with the steps I’ve taken: https://bbpress.trac.wordpress.org/ticket/3355#comment:23

    Many Thanks,

    Andy

    #239111
    ahillmortons
    Participant

    OK, so it appears there’s a thread about the issue here: https://bbpress.trac.wordpress.org/ticket/3355#comment:4

    I can’t get the fix to work but I’ll pick up on what to do next on there.

    Thanks

    #239090
    Robin W
    Moderator

    If you are using one of new FSE themes, you need a fix to work with bbpress.
    install

    bbp style pack

    once activated, navigate to

    dashboard>settings>bbp style pack, and you should see the first tab called ‘Theme Support’ – if you don’t see this, come back.

    In that tab, select

    Enable Theme Support

    and save

    The forums should then display

    #239082
    Robin W
    Moderator

    so if you create a wordpress post (ie not in the forum) what date does it show?

    #239081
    Robin W
    Moderator

    you are using the flexiverse theme.

    This is one of the new FSE themes, so you need a fix to work with bbpress.
    install

    bbp style pack

    once activated, navigate to

    dashboard>settings>bbp style pack, and you should see the first tab called ‘Theme Support’ – if you don’t see this, come back.

    In that tab, select

    Enable Theme Support

    and save

    The forums should then display

    #239080
    opeoluwa1999
    Participant

    Wordpress version – Version 6.4.2
    bb press version – Version 2.6.9

    Home

    After creating the forums and assigned topics to them, the topics do not display, just the forums, so i cant engage on the topics

    #239055

    In reply to: Expired Version ?

    Robin W
    Moderator

    they are correct that it has not been updated for a couple of years.

    I am just a moderator here, and not a bbpress author.

    The authors tend to release updates every few years, rather than more frequently.

    My personal view is that you should consider bbpress to be a ‘mature’ product, ie any releases will be to fix issues rather than add functionality.

    bbpress is written really well, and has loads of hooks. There are no show stopper bugs in it, it may throw a few deprecation notices (and these are very few at the moment), but WordPress recommends that you should not show error messages in live sites.

    I currently have my test site running WordPress 6.4.x and php 8.2 with no issues.

    The only major issue with bbpress at the moment is that it does not work well with FSE themes.

    However my bbp style pack plugin has fixes for this

    bbp style pack

    as well as block versions of the widgets and a ton of styling and functionality add-ons.

    All plugins are subject to the authors commitment, and bbpress is no different.

    The main WordPress support forums use bbpress, and it would be mega work to move those over to some other product.

    #239030
    Robin W
    Moderator

    I think adding this additional plugin fixes

    BP Classic

    #239007
    Robin W
    Moderator

    This is one of the new FSE themes, so you need a fix to work with bbpress.
    install

    bbp style pack

    once activated, navigate to

    dashboard>settings>bbp style pack, and you should see the first tab called ‘Theme Support’ – if you don’t see this, come back.

    In that tab, select

    Enable Theme Support

    and save

    The forums should then display

    #239006
    kagunda
    Participant

    Hi Robin, I also noticed that on my staging site.

    The Forum, which is available to members only shows the entry page. When you try to get into the forum, the elements do not show. My site is: https://tayfamilyhistg.wpenginepowered.com/forum/

    I am using the Oxygen Builder WordPress plugin. When I switch back to a different theme it shows but I don’t understand why the forum is not showing with Oxygen Builder. I am using all the latest versions.

    #238998
    Robin W
    Moderator

    I am not a bbpress author, not a lot I can do.

    bbpress is a WordPress project – suggest you write to Matt Mullenweg about why no-one is currently assigned to bbpress to keep it up to date.

    matt@mullenweg.com cc: press@automattic.com.

    #238994
    Robin W
    Moderator

    add this plugin

    BP Classic

    #238981
    Robin W
    Moderator

    the backend seems to only save one moderator.

    This code should fix

    add_action ('bbp_subscriptions_metabox' , 'rew_set_hidden_subscribers' ) ;
    add_action ('bbp_topic_attributes_metabox_save' , 'rew_save_subscriptions', 10 , 2) ;
    
    function rew_set_hidden_subscribers ($post) {
    	// Get user IDs
    	$user_ids = bbp_get_subscribers( $post->ID );
    	$list = implode(",",$user_ids); 
    
    	// Output
    	?>
    	<input name="rew_topic_subscription" id="rew_topic_subscription" type="hidden" value="<?php echo $list; ?>" />
    	<?php
    }
    
    function rew_save_subscriptions ( $topic_id, $forum_id ) {
    	// Handle Subscriptions
    	if ( bbp_is_subscriptions_active() && ! empty( $_POST['rew_topic_subscription'] )) {
    		//update_option ($subscriptions)
    		$subscriptions = explode(",", $_POST['rew_topic_subscription']);
    		foreach ($subscriptions as $subscription_id ) {
    			// Check if subscribed and if so do nothing
    			if (bbp_is_user_subscribed( $subscription_id, $topic_id )) continue;
    			else {
    			bbp_add_user_subscription( $subscription_id, $topic_id );
    			}
    		}
    	}
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    or if you use

    bbp style pack

    this fix is automatically added

    stonebkfly
    Participant

    We have many Forums and we wish to have different Moderators for specific forums. However, I do not see a way to limit the view so that a Moderator only see the Forums that they are responsible for. Is there a way to do this?

    Currently we are setting the Moderator Role on the user record. I have been unable to set the Moderator on the Forum record (when I set it and save I get no error but it does not get saved). If I could set it on the Forum record would this limit the Forums that the Moderator would see?

    WordPress Version: 6.4.2
    bbPress Version: 2.6.9

    Thank you!
    Joseph

    #238956
    ibnat
    Participant

    I forgot to mention. On setting up your forum before creating your app there is one plugin that is essential. (Thankyou Robin!) 🙂

    bbp style pack

    Here are all the plugins I am using.

    bbp profile information Version 2.1.2 by Robin Wilson
    bbPress Version 2.6.9 by The bbPress Contributors
    bbP Signature Version 1.4 by Arjun S Kumar, Robin W
    bbp style pack Version 5.7.8 by Robin Wilson
    GD bbPress Attachments Version 4.6 by Milan Petrovic
    Hide Admin Bar Based on User Roles Version 3.7.0 by Ankit Panchal
    Import and export users and customers Version 1.25.1 by codection
    LiteSpeed Cache Version 6.0.0.1 by LiteSpeed Technologies
    Meow Lightbox Version 5.1.1 by Jordy Meow
    reCaptcha by BestWebSoft Version 1.74 by BestWebSoft
    Site Kit by Google Version 1.116.0 by Google
    Smush Version 3.15.3 by WPMU DEV
    Super RSS Reader Version 5.1 by Aakash Chakravarthy
    WP Mail From II Version 2.0 by Ben Huson
    WPMobile.App — Android and iOS Mobile Application Version 11.41 by WPMobile.App
    WP User Avatars Version 1.4.1 by Triple J Software, Inc.
    Yoast SEO Version 21.8 by Team Yoast

    #238953
    ibnat
    Participant

    Updating this topic as I went ahead and used the WPMobile app with absolutely fantastic results.

    I now have a fully functioning BBPress forum available on the G Play Store with push notifications etc etc. Very happy!

    https://wordpress.org/support/plugin/wpappninja/reviews/

    Highly recommendable for anyone with a BBPress forum!

    #238952
    Robin W
    Moderator

    I don’t know of anything that does this within bbpress.

    However bbpress just uses then wordpress login, so anything that does that in wp would work.

    This looks like a possible option…

    WP User Switch

    Otherwise you could just allow ‘anonymous posting’ which would let users post under multiple names, but of course could not be limited to paid members.

    #238941

    In reply to: Navigation bar

    Robin W
    Moderator

    what wordpress theme as

    dashboard>appearance>themes

    #238930
    Robin W
    Moderator

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Breadcrumbs

    #238928
    sotekt
    Participant

    Hey guys am quite new to these just install a bbpress in my wordpress. Added Some categories and some forums with perent… and while trying to use the forums i cant get the way how to go back to the main forums categories.

    Any tips? thanks

    #238927
    rilliencot
    Participant

    Although I solved the last issue, a similar one immediately came up after that (The topic count at the top of a forum didn’t count new topics). I had a feeling that as long as I proceeded with this hacked version of the actual bbPress functions that I now thankfully know are responsible for topic creation (thank you Robin, again!), these little discrepencies were going to keep popping up.

    So I’ve updated the ‘create_bill’ function to now call bbp_insert_topic() (line 24 of \bbpress\includes\topics\functions.php). If I understand things correctly (I’m new to web development and learning as I go), this starts the natural chain of events that should happen anytime a new topic is created (at least it looks to be working). I still need the new endpoint because I’d like to add some custom fields to these topics as well, so now the above php script is the much simpler:

    <?php
    /**
     * Plugin Name:       bbPress Bill API
     * Description:       Exposing the bbPress post types to WP API and creating a namespace for bills.
     * Author:            Rillien Cot
     * Version:           1.6.0
     */
    
    /**
     * Add REST API support to an already registered post type.
     */
    add_action('init', 'register_bbp_post_types', 25);
    
    function register_bbp_post_types() {
        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';
        }
    
        // Add custom REST API endpoint for creating bbPress topic
        add_action('rest_api_init', 'create_bill_endpoint');
    }
    
    function create_bill_endpoint() {
        register_rest_route('pnyx/v2', '/bill/', array(
            'methods' => 'POST',
            'callback' => 'create_bill',
        ));
    }
    
    function create_bill($data) {
        // Extract Data
        $new_topic_data = $data['new_post_data'];
        $new_topic_meta = $data['new_post_meta'];
    
        // Create new bbPress topic using passed data and meta content
        $topic_id = bbp_insert_topic($new_topic_data, $new_topic_meta);
    
        // Add ACF custom fields to created topic
        update_field('bill_id', $data['bill_id'], $topic_id);
    }
    ?>

    and the python that calls it is:

    import requests
    import json
    
    # Set your WordPress API authentication details
    username = "************"
    password = "***********************"
    auth = requests.auth.HTTPBasicAuth(username, password)
    
    # Create a new post data with post_parent
    new_post_payload = {
        "new_post_data": {
            "post_parent": 40, // use a valid forum_id from your site
            "post_title": "API Created Post Title",
            "post_content": "Lorem ipsum content for the new topic",
        },
        "new_post_meta": {
            "forum_id": 40, //use same forum_id here that you used for "post parent" in 'new_post_data'
        },
        "bill_id": "hrs1111",
    }
    
    # Make the POST request to create a new post
    wordpress_api_url = "http://pnyx.local/wp-json/pnyx/v2/bill/"
    response = requests.post(
        wordpress_api_url,
        auth=auth,
        headers={
            'Content-Type': 'application/json',
        },
        data=json.dumps(new_post_payload),
    )

    You’ll notice that the ‘data’ portion of the request has changed from a simple dictionary to nested dictionaries so the bbp_insert_topic function has the correct arguments (it takes two arrays).

    #238915
    rilliencot
    Participant

    WordPress Version: 6.4.2
    bbPress Version: 2.6.9
    Link to site: Unavailable (Site created using LocalWP and still hosted locally)

    When I create topics through the standard frontend or backend, the new topic shows up in the forum perfectly.

    However, if I create a new topic using a plugin extension I’ve cobbled together, the new topic does not show up on the front end of the website (despite it being created and visible on the back end).

    The plugin written in php is as follows (thanks to work from here and here):

    
    <?php
    /**
     * Plugin Name:       bbPress API
     * Description:       Exposing the bbPress post types to WP API.
     * Author:            Rillien Cot
     * Version:           1.3.0
     */
    
    /**
     * Add REST API support to an already registered post type.
     */
    add_action('init', 'register_bbp_post_types', 25);
    
    function register_bbp_post_types() {
        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';
        }
    
        // Add custom REST API endpoint for creating bbPress topic
        add_action('rest_api_init', 'create_bill_endpoint');
    }
    
    function create_bill_endpoint() {
        register_rest_route('pnyx/v2', '/bill/', array(
            'methods' => 'POST',
            'callback' => 'create_bill',
        ));
    }
    
    function create_bill($data) {
        // Extract necessary data from the request
        $forum_id = $data['forum_id'];
        $topic_title = $data['topic_title'];
        $topic_content = $data['topic_content'];
        $bill_id = $data['bill_id'];
    
        // Create a new bbPress topic
        $topic_args = array(
            'post_title' => $topic_title,
            'post_content' => $topic_content,
            'post_type' => bbp_get_topic_post_type(),
            'post_status' => 'publish',
            'post_parent' => $forum_id, // Set the post_parent to the forum ID
        );
    
        $topic_id = wp_insert_post($topic_args);
    ?>
    

    Basically, it exposes the Forum, Topic, and Reply post types from bbPress to standard wp-json/v2 namespace and then adds an additional endpoint (‘create_bill’) which allows me to add a new topic and associate it with a forum via ‘post_parent’. (I wonder if this is where the problem is?)

    I create a new topic using the following python script:

    
    import requests
    import json
    
    # Set WordPress API authentication details
    username = "*******"
    password = "**********************"
    auth = requests.auth.HTTPBasicAuth(username, password)
    
    # Values for new post data
    new_post_data = {
        "forum_id": 40, # <- This is a valid post id of a forum.
        "topic_title": "New API Topic Title",
        "topic_content": "Lorem ipsum content for the new topic"
    }
    
    # Make the POST request to create a new post
    wordpress_api_url = "http://pnyx.local/wp-json/pnyx/v2/bill/"
    response = requests.post(
        wordpress_api_url,
        auth=auth,
        headers={
            'Content-Type': 'application/json',
        },
        data=json.dumps(new_post_data)
    )
    

    The topic is created, and I can see it in Dashboard>>Topics>>All Topics. And I can view it by going directly to the link associated with it, but I can’t see it on the actual frontend of the forum.

    I’ve deactived all other plugins and I’m still getting this issue. The only differences between the two (as far as I can tell) are the Author IP (API created topics leave this field blank, standard fills it with 127.0.0.1) and the number of voices (API created topics have 0, standard created topics have 1). All the other settings seem identical (visibilty = public, type = normal, status = open).

    Any insights as to what I’m missing and how to rectify the situation are greatly appreciated, thanks!

    #238914
    Robin W
    Moderator

    Thanks, I’ve just tested your scenario above, and yes that is a bug.

    I am not a bbpress author, just someone who helps out here.

    Strangely that metabox doesn’t actually let you change the subscribers, it simply lists them, not sure why 🙂

    if you are using

    bbp style pack


    then I’ve included a fix for this in version 5.7.8.

    You can also add comprehensive subscription management functionality for the backend from the ‘subscriptions management’ tab.

    Otherwise you could add this code:

    
    add_action ('bbp_subscriptions_metabox' , 'rew_set_hidden_subscribers' ) ;
    add_action ('bbp_topic_attributes_metabox_save' , 'rew_save_subscriptions', 10 , 2) ;
    
    function rew_set_hidden_subscribers ($post) {
    	// Get user IDs
    	$user_ids = bbp_get_subscribers( $post->ID );
    	$list = implode(",",$user_ids); 
    
    	// Output
    	?>
    	<input name="rew_topic_subscription" id="rew_topic_subscription" type="hidden" value="<?php echo $list; ?>" />
    	<?php
    }
    
    function rew_save_subscriptions ( $topic_id, $forum_id ) {
    	// Handle Subscriptions
    	if ( bbp_is_subscriptions_active() && ! empty( $_POST['rew_topic_subscription'] )) {
    		//update_option ($subscriptions)
    		$subscriptions = explode(",", $_POST['rew_topic_subscription']);
    		foreach ($subscriptions as $subscription_id ) {
    			// Check if subscribed and if so do nothing
    			if (bbp_is_user_subscribed( $subscription_id, $topic_id )) continue;
    			else {
    			bbp_add_user_subscription( $subscription_id, $topic_id );
    			}
    		}
    	}
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    #238904

    In reply to: Abandoned?

    Robin W
    Moderator

    To understand that you need to understand that bbpress is a sister project to WordPress.

    Wordpress development (and therefore bbpress development) is funded by

    1. the commercial arm of wordpress – Automattic
    2. Donations and sponsorship from paid plugins and theme organizations who have a commercial interest in ensuring that WordPress continues

    At the moment no-one is sponsoring bbpress development, so no developer is currently being paid to maintain it.

    Hence no-one is updating even the tested to value.

    You could write to the board of wordpress.org, but beyond that not much we can do – I have tried !

Viewing 25 results - 226 through 250 (of 26,679 total)
Skip to toolbar