John James Jacoby (@johnjamesjacoby)

Forum Replies Created

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

  • John James Jacoby
    Keymaster

    @johnjamesjacoby

    You won’t be able to do this with just 1 query, because you’ll also want to delete the associated meta-data; that will take at least another query with the post IDs of the topics you’re trying to delete. If you’re using any type of caching, those caches should be purged also, which usually requires PHP or a cache-key reset.

    There are a few alternatives.

    * Admin > Tools > Forums > Reset will let you erase all bbPress content completely. It may timeout depending on your server configuration, but it will eventually get through it.
    * Use WP-CLI: http://wp-cli.org
    * Export the DB, do the data delete on a more capable server (or locally) then re-import it back in. This obviously is the more technical solution, but works really well in a pinch.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    I understand the need for this, but this is coming from bbPress so there is only so much we can do. bbPress has no way to to blanket unsubscribe someone from all of their forums/thread email subscriptions. If bbpress had a way to unsubscribe globally, then we could look into it but going topic by topic, which is how they have it setup does not work. Simply put bbPress doesn’t have the utilities to make it reasonably possible

    The bbp_topic_subscription_user_ids filter can be used to remove users from the array of users to be notified about new replies to topics.

    The bbp_forum_subscription_user_ids filter can be used to remove users from the array of users to be notified about new topics in a forum.

    On the Memberpress side, or in a separate add-on, they can filter those arrays, remove “inactive” members from those emails, and problem solved.

    I’d also argue that you actually don’t want to blanket unsubscribe anyone from anything, because if they ever re-subscribe, they’ll want to get all of their previous history back; right? If you purged all those subscriptions when their membership expires, that would kinda stink for them.

    In reply to: bbpress performance

    John James Jacoby
    Keymaster

    @johnjamesjacoby

    The problem of conditionally loading the PHP files will go away when we can start to officially support autoloading for versions of PHP greater than 5.2.

    With BuddyPress, we did move to supporting autoloading when it’s available. bbPress has fewer files, and is a simpler piece of software, so my preference would be to keep it a bit more pristine and not include the same conditional support until it’s a general requirement for running WordPress.

    Anything we can do to make bbPress more performant is definitely encouraged, so I appreciate you noticing, and taking the time to start the discussion here.

    In reply to: Test

    John James Jacoby
    Keymaster

    @johnjamesjacoby

    It’s definitely quicker now!

    🐝💨

    In reply to: Test

    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Seems OK to me. 🙂

    In reply to: Fatal Error

    John James Jacoby
    Keymaster

    @johnjamesjacoby

    > You can then delete the bbpress plugin directory and re-install bbpress from the front end

    This is my suggestion. If that file is missing, it’s hard to trust that other files haven’t been compromised in other ways.


    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.

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