John James Jacoby (@johnjamesjacoby)

Forum Replies Created

Viewing 25 replies - 576 through 600 (of 2,355 total)
  • In reply to: bbPress 2.2.1

    @johnjamesjacoby

    Keymaster

    @rossagrant – The display role is actually a bit different than taking the literal role from the user. It uses capabilities rather than the role, to adjust the output based on the user’s ability.

    See the bbp_get_user_display_role function for more.

    It does this because it needs to handle Inactive users (spam/deleted) as well as anonymous/logged-out users, neither of which have a literal role, but also have different “roles” in the forum, for lack of a better way to put it.

    “Member” is the ambiguous word I used for “user is registered, but does not actually have a literal role on this site in the database.”

    Open to suggestions here, if it’s too confusing.

    @johnjamesjacoby

    Keymaster

    bbPress 2.2.1 takes another step towards automating this for installations with custom roles. If you have custom roles, bbPress will now fallback to the default role for those users.

    @johnjamesjacoby

    Keymaster

    Could it be that since the deleted posts in bbpress 1.1 are still in the database as there is no way to empty the deleted creating problems during integration?

    Correct. The migration doesn’t *fix* anything, it migrates exactly what you already have.

    In reply to: bbPress 2.2.1

    @johnjamesjacoby

    Keymaster

    Up to you and your needs. Personally, I’d tick the box, and I suspect you’ll want to too. The reason it’s there is more for installations like WordPress.com, where the process of adding a user to a blog actually means something completely different than it does under normal circumstances.

    Also, if the box isn’t ticket, bbPress doesn’t create a profile for that user, because they won’t have a *real* role on the site. They’ll be registered, but have to assigned role; bbPress will just dynamically assign the default to them on the fly when they’re using the site.

    @johnjamesjacoby

    Keymaster

    Try bbPress 2.2.1; let me know if it fixes this.

    @johnjamesjacoby

    Keymaster

    You’ll want to look at the _insert_ functions in:

    • includes/topics/functions.php
    • includes/forums/functions.php
    • includes/replies/functions.php

    You’re going to need to build a custom migration tool, since bbPress Forums are not conventional taxonomies and terms. You’ll most likely want to write a new converter tool; there are several located in includes/admin/converters/.

    @johnjamesjacoby

    Keymaster

    I don’t see any forums on your site at: http://c3eu.com/?post_type=forum

    In reply to: bbPress 2.2.1

    @johnjamesjacoby

    Keymaster

    bbPress 2.2.1 is out to address some of the major user-role issues.

    @johnjamesjacoby

    Keymaster

    bbPress 2.2.1 is incoming, to fix this bug.

    @johnjamesjacoby

    Keymaster

    This is not a feature of bbPress. You’re likely using a Local Avatars plugin, and will need to style it to fit your needs.

    In reply to: Can't Post New Topic

    @johnjamesjacoby

    Keymaster

    I was hoping to get the “New Topic” button to work on the main forums page (this may not be bbPress as it appears (non-functional) without bbPress being installed.)

    I’m confused about what you’re trying to do now; or what the actual problem is you’re having.

    Thanks for your help, though, John! I really appreciate you taking some time to look into this.

    No problem. Does this mean you fixed it, or it’s still not working correctly?

    To clarify, you want something similar to the way bbPress.org works, where there is a “Create New Topic” button/link, that takes you to a dedicated page where users can create new topics?

    @johnjamesjacoby

    Keymaster

    My first guess is s2member hooks in too late, or some other plugin is loading the current user way too early in the stack. bbPress doesn’t perform any of those actions until it expects WordPress to make them happen naturally.

    If the current_user is loaded before the ‘after_setup_theme’ action is called (because of an is_super_admin() check, a call to current_user_can(), etc…) bbPress fails gracefully, and waits until it’s time. If S2member waits until init to add its roles, or if the WP_Roles array doesn’t include the s2Member roles by the time ‘after_setup_theme’ has fired, $wp->init(); will get called, loading the current user, and bbPress will map the roles accordingly.

    Another possible problem is bbp_get_user_role_map() not mapping custom roles; it only maps to WordPress core roles. A possible fix to bbp_set_current_user_default_role() would be to array_diff() editable_roles() vs bbp_get_dynamic_roles(), loop through them, use the map where it matters, and use the default role otherwise.

    @johnjamesjacoby

    Keymaster

    @nerrad – yes please, a trac ticket would be great.

    To clarify, you’re saying that s2member does not add itself to WordPress’s editable roles array, using WP_Roles->add_role() ?

    In reply to: Can't Post New Topic

    @johnjamesjacoby

    Keymaster
    • Delete your “Forums” page
    • Delete it permanently from your trash
    • Turn off BuddyPress’s forums component
    • Visit /forums/

    @johnjamesjacoby

    Keymaster

    Sweet. Thanks. Happy to help.

    @johnjamesjacoby

    Keymaster

    Any idea why bbPress’s bbp_set_current_user_default_role() function isn’t working?

    In reply to: Author MCE broken

    @johnjamesjacoby

    Keymaster

    They are already aware of the issue; I have this fixed in the next version of Jetpack already. 🙂

    @johnjamesjacoby

    Keymaster

    bbPress purposely forces the editor into ‘teeny’ mode. You’ll need a plugin to change that, which is possible to filter out.

    In reply to: php option value

    @johnjamesjacoby

    Keymaster

    Makes sense. Best of luck!

    In reply to: Can't Post New Topic

    @johnjamesjacoby

    Keymaster

    Are you using group forums, or do you want site wide forums?

    In reply to: bbPress 2.2.1

    @johnjamesjacoby

    Keymaster

    @rossagrant – it already tries to do that, via: Settings > Forums — Auto role —

    “Automatically assign default role to new, registered users upon visiting the site.”

    Basically, that bit looks for users with no bbPress role, and automatically gives it to them (without interfering with existing WordPress roles.)

    I think the problem comes from having modified the bbp_participant role previously in the database, and bbPress not using those modified caps any longer. (Just a guess.)

    bbPress moved away from “editable roles” in 2.2, since plugins like s2member and Members allow for manipulating bbPress’s roles in such a way that safe updates to bbPress are pretty much impossible; the moment we change our capability mapping, this all blows up.

    Going forward, bbPress uses dynamic, secondary roles, that won’t interfere with any other capability or role on the site. I.E. a user can be a forum moderator and a blog editor, or a blog admin and and a forum participant, or no role on the blog, and a key master in the forums.

    This type of setup is best for 95% of installations, but anyone that’s relying on roles in the DB are currently stuck (like we see here.)

    One possible solution is to just let your database roles override bbPress’s dynamic roles. You can unhook most of those functions, but I don’t think that’s advisable for the long term, because you’ll lose any capability updates going forward, leaving some users in limbo when new features are introduced.

    In reply to: Can't Post New Topic

    @johnjamesjacoby

    Keymaster

    The UI on BuddyPress’s end hasn’t been updated yet. If you have bbPress installed, and are using it to power your group forums, the BuddyPress forums component should be completely turned off.

    It’s possible there’s an issue with BuddyPress 1.6 in this regard, but there wasn’t in my testing. I’ll take another look around.

    In reply to: Author MCE broken

    @johnjamesjacoby

    Keymaster

    Maybe related to Jetpack 2.0. I’m not able to duplicate this issue with just WordPress and bbPress installed.

    @johnjamesjacoby

    Keymaster

    Will there be a core solution for this with bbpress?

    If its a bbPress bug, then yes. It’s likely an issue with bbPress using multiple user roles, and it being a foreign concept to most other plugins.

    In reply to: php option value

    @johnjamesjacoby

    Keymaster

    Can’t tell if this is spam or not. It doesn’t sound like it has anything to do with bbPress.

Viewing 25 replies - 576 through 600 (of 2,355 total)