John James Jacoby (@johnjamesjacoby)

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 2,175 total)

  • John James Jacoby
    Keymaster

    @johnjamesjacoby

    This is a PHP 7.0/7.1 issue with anything in the 2.5 range.

    We need to port some changes from the 2.6 branch backwards to make it work.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Hi @sourfew, sorry to hear you’re having trouble. It’s really important to us that incoming users have a great experience, so I’d like to try and tackle this right away.

    Curious how many topics & replies you converted? Also, it’s usually most helpful to have access to or see your conversion data, which is totally based on your comfort level.

    I don’t think we’ve made any changes to this repair routine, and it isn’t “critical” to your forums working, but it is nice to do.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Something in your theme must be forcing the width of those fields. They are naturally responsive by using percentage based widths by default.

    In reply to: Multisite

    John James Jacoby
    Keymaster

    @johnjamesjacoby

    I see.

    So then, how will users ever visit each others forum profiles, or even edit their own?

    In reply to: Multisite

    John James Jacoby
    Keymaster

    @johnjamesjacoby

    How will people get to the author archives of your blog? Do you care if they’re not publicly linked anywhere?


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Allowing untrusted users the ability to upload images to your site is one of those frequently requested but still pretty risky features we’ve so-far shied away from.

    WordPress (and most server configs) don’t do the type of strict file/mime type checks you’d want before enabling this, so JPGs and GIFs can embed other weird stuff and most sites would have no idea.

    There are some plugins out there to enable it, but it’s not something we’ll include with bbPress proper until WordPress (and most hosts) have a better setup under the hood.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    You may want to try the latest 2.6 release candidate instead.

    Download


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Do you know where I can modify the redirect page so that it only shows the 404 page not found message and not a list of my site’s pages

    It usually depends on the theme, but 404.php is a good start. It probably has some function or functions that put out a sitemap, but that’s just a guess, and every sitemap type plugin is different.

    In addition to bbPress, there are legitimate Membership plugins that are better equipped to handle things like private pages or members-only sections of websites. If you haven’t used any, Restrict Content Pro and Paid Memberships Pro are good ones.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    if there is supposed to be a redirect when someone isn’t logged in

    No. When inaccessible pages are requested, a 404 is returned.

    I want to prevent non logged-in users from viewing this 404 page because it has a list of all the pages within my website, and I need to keep that accessible only to logged-in users.

    I’ve created a Trac ticket to get more development discussion on the idea here:

    https://bbpress.trac.wordpress.org/ticket/3118


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Hi Kari,

    With both the weekend and a major community summit, the past few days have been pretty slow around here.

    This is a hard question to answer, because it depends on your forums and how you have them setup as private.

    There are also security implications to consider. For example, if your forums are only for logged in users, redirecting to a login page vs. showing a 404 hints to hackers that something exists vs. it not existing, which incentivizes the hunt.

    I usually try to recommend that forums use the login widgets, or otherwise have some always-available login form to use instead. That way private forums can still 404 for non-logged-in users, without the redirect hint.

    If you do want to redirect anyways, you’ll need a custom plugin to modify the way bbPress works.

    Unhook bbp_forum_enforce_private and bbp_forum_enforce_hidden, and write your own equivalent functions to use bbp_redirect() rather than bbp_set_404().


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Fixed a bunch more odds & ends.

    2.6, maybe this week?

    In reply to: Per-forum moderators

    John James Jacoby
    Keymaster

    @johnjamesjacoby

    In bbPress 2.6, per-forum moderators will work like this:

    * Users with the global Moderator role will be able to moderate all forums
    * Users assigned as a moderator to a specific forum will act like a moderator in that forum
    * This includes private & hidden forums, where the non-moderator (Participant role) user wouldn’t otherwise even be able to see them at all

    There are weird situations that could come up, but you’d have to be working backwards in both directions to see them. For example, giving someone the “Blocked” user role, but then trying to make them a moderator in a forum, is weird. In these cases, the block wins.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

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


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    I just packaged 2.6 Release Candidate 1! 🐝


    John James Jacoby
    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.


    John James Jacoby
    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.


    John James Jacoby
    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.)


    John James Jacoby
    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.


    John James Jacoby
    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.


    John James Jacoby
    Keymaster

    @johnjamesjacoby


    John James Jacoby
    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.


    John James Jacoby
    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

    John James Jacoby
    Keymaster

    @johnjamesjacoby

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


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Beta 3 will be out tomorrow. <3

    In reply to: SDK/API

    John James Jacoby
    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.

Viewing 25 replies - 1 through 25 (of 2,175 total)