JJJ (@johnjamesjacoby)

Forum Replies Created

Viewing 25 replies - 51 through 75 (of 2,213 total)

  • JJJ
    Keymaster

    @johnjamesjacoby

    @mth75 this should be fixed now, thanks to @r-a-y.


    JJJ
    Keymaster

    @johnjamesjacoby

    I just packaged 2.6 Release Candidate 1! 🐝


    JJJ
    Keymaster

    @johnjamesjacoby

    You could try bbp_get_all_child_ids(), though it does a direct database query, and has no limit on the results that get returned, so in cases where there are many topics to chug through, it can be a bit much.


    JJJ
    Keymaster

    @johnjamesjacoby

    Which caching plugin are you using, and what does your configuration look like?

    There are many, and also many variations and approaches, so it’s possible this will take some back and forth to resolve completely.


    JJJ
    Keymaster

    @johnjamesjacoby

    @5lions If you’re asking about back-porting to 2.5, it’s probably not advisable, especially if you already ran the favorites & subscriptions migration. It will work, but you may need to repair your favorites & subscriptions.

    Assuming it’s the DB that’s causing you problems, if you’re able to include specific slow queries that you’re seeing, I can recommend work-arounds. (For instance, excluding private/hidden forums is costly, and moving them to a dedicated site where permissions can be handled globally will work wonders.)


    JJJ
    Keymaster

    @johnjamesjacoby

    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.


    JJJ
    Keymaster

    @johnjamesjacoby

    Hey @giobby, sorry to hear 2.6 hasn’t worked out great for you. Are you able to elaborate a bit on what stability issues you’re seeing? 2.6 has many verifiable performance and stability improvements over 2.5, and our team is keen to make sure nobody feels the need to move backwards to 2.5.


    JJJ
    Keymaster

    @johnjamesjacoby


    JJJ
    Keymaster

    @johnjamesjacoby

    WordPress 4.7 changed the way that the logged-in user is loaded. More specifically, it changed the execution point in the code, in such a way, that bbPress needed a change to meet the new requirement.


    JJJ
    Keymaster

    @johnjamesjacoby

    Hi Dominik,

    It’s great that you’re digging around the code to figure out what functions to use! Can you describe a bit about what you’d like to accomplish? Once we know the end result, we can help you work towards it, step by step.

    In reply to: User Role

    JJJ
    Keymaster

    @johnjamesjacoby

    Use the bbp_get_user_role_map filter, to map WordPress roles to bbPress roles.


    JJJ
    Keymaster

    @johnjamesjacoby

    Beta 3 will be out tomorrow. <3

    In reply to: SDK/API

    JJJ
    Keymaster

    @johnjamesjacoby

    You can use WordPress’s REST API to interact with forums/topics/replies the way you can with any WordPress posts, but that may not be ideal (and some of the verbiage does not directly translate very well.)

    That API has only been fully available since WordPress 4.7, so we are seriously starting the process of exploring what a dedicated bbPress API should look like. Some work has gone into this already, but there is more to do.

    In reply to: Forums: 500 Error

    JJJ
    Keymaster

    @johnjamesjacoby

    You’ll need to install the bbPress plugin, and convert your old bbPress 1.x forums to bbPress 2.5 (soon to be 2.6.)

    Then you can disable the BuddyPress legacy forum component, and continue using the newer better faster stronger bbPress plugin.

    bbPress 2.0 and higher comes with a (pretty great) conversion tool to help you migrate from several different forum softwares, including bbPress 1.x. We used that exact same tool all across WordPress.org, so we are confident that it works very well.


    JJJ
    Keymaster

    @johnjamesjacoby

    If you create a page with the same slug as your forum index, you can use either the [bbp-forum-index] or [bbp-topic-index] shortcode in your page content to output the list you desire.

    bbPress won’t complain, and you’ll be able to customize the page title and content if you desire.

    It’s not exactly a hidden trick, but it’s what we use here on bbPress.org and seems to work OK. If that approach is creating a broken breadcrumb, that’s definitely a bug.


    JJJ
    Keymaster

    @johnjamesjacoby

    You were correct that it was caught because of the number of links.

    I just approved the pending post.


    JJJ
    Keymaster

    @johnjamesjacoby

    My guess is the cookie hashes probably changed.

    Make sure that all of your cookie settings in wp-config.php actually match what you want/need for them to be. If you need to share cookies across many subdomains, you’ll need a . at the beginning of them.

    // Domain & Hash
    define( 'COOKIE_DOMAIN', '.domain.com'        );
    define( 'COOKIEHASH',    md5( COOKIE_DOMAIN ) );
    
    In reply to: bbpress bullets

    JJJ
    Keymaster

    @johnjamesjacoby

    That’s a neat plugin, @robin-w.

    I haven’t reviewed it, but the premise seems sound. Integrate it with the Customizer, and it might be a neat addition to the default template pack!


    JJJ
    Keymaster

    @johnjamesjacoby

    Thanks for trying things out. What isn’t working? It’s not saving? It’s not giving them moderation capabilities? The form should pop-up an autocomplete, and I think it verifies usernames and only accepts valid ones. It ends up saving the user ID, not the username, because usernames can be changed but changing IDs would break stuff.


    JJJ
    Keymaster

    @johnjamesjacoby

    I believe we fixed this in the 2.6 beta.


    JJJ
    Keymaster

    @johnjamesjacoby

    We use that short code here, too, so it’s working OK for us. I’ll need to look into the links. Possible they moved to an action, or a different template part at some point.

    @senatorman – do your database backup first, then swap from alpha to beta, then run the bottom three upgrade tools, for favorites and subscriptions (I forgot about forum subscriptions.)


    JJJ
    Keymaster

    @johnjamesjacoby

    * Do a database back-up however you’re comfortable
    * Visit WP Admin > Tools > Forums
    * Run the last 2 repair tools, one at a time, maybe from a beefier server if you have one available
    * Confirm that your favorites & subscriptions work as expected

    If something goes wrong:
    * Restore your data from your back-up
    * Go back to 2.6 alpha

    Honestly, I’m being a little paranoid. The tools are fine. But… because hosting environments are so different everywhere, it’s hard to rule out any edge-cases ahead of time.


    JJJ
    Keymaster

    @johnjamesjacoby

    @senatorman If you have more than 10,000 users, you’ll need to manually run favorites & subscriptions migrations from someplace you are safe doing so. Otherwise, totally safe.

    If you’re running a multisite installation with bbPress running on all of them, the upgrade routine will attempt to run on all of them, so there’s that too (though it’s a very unlikely situation.)


    JJJ
    Keymaster

    @johnjamesjacoby

    @senatorman The improvements here on bbPress.org were not-insignificant.

    We have 25k topics, 100k replies, and many more in spam/trash/drafts/revisions, amounting to around 180k total posts.

    It’s not a huge-huge install, but not exactly small either.


    JJJ
    Keymaster

    @johnjamesjacoby

    @reedy I’m here if you need help. Can also use the #bbpress channel in WordPress’s Slack instance.

Viewing 25 replies - 51 through 75 (of 2,213 total)