Forum Replies Created
In reply to: Posting form isn’t responsive
Something in your theme must be forcing the width of those fields. They are naturally responsive by using percentage based widths by default.
So then, how will users ever visit each others forum profiles, or even edit their own?
How will people get to the author archives of your blog? Do you care if they’re not publicly linked anywhere?In reply to: Add Featured Image to New Topics in Frontend WYSWYG
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.In reply to: In Admin dashboard->Forums gave this error.
You may want to try the latest 2.6 release candidate instead.
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.phpis 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.
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:
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.
bbp_forum_enforce_hidden, and write your own equivalent functions to use
Fixed a bunch more odds & ends.
2.6, maybe this week?In reply to: Per-forum moderators
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.
I just packaged 2.6 Release Candidate 1! 🐝In reply to: Grab topic IDs from forum ID
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.In reply to: Issue after last WordPress update
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.
@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.)In reply to: How many Users can bbpress handle
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:
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.In reply to: Move from 2.6a to 2.5.12
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.In reply to: Integrate with Jetpack Markdown
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.In reply to: bbp_get_topic_last_reply_author Functions
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
bbp_get_user_role_mapfilter, to map WordPress roles to bbPress roles.In reply to: SDK/API
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
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.In reply to: bbPress breadcrumb forum root link issue
If you create a page with the same slug as your forum index, you can use either the
[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.