Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)

  • tstrickland415
    Participant

    @tstrickland415

    Sorry for keeping you guys in the dark but what I’ve discovered is that BP’s implementation of member types is pretty underwhelming since it’s only an xprofile field. In regards to my original use case, I discovered I was better off defining custom user roles (AKA member types) and adding appropriate permissions. This can easily be achieved with a few simple lines of code in your functions.php or your custom plugin. If coding isn’t your thing then there are a bunch of freemium plugins available for you to use. Why the Buddypress team elected not to leverage WordPress’ built in User Roles for this feature is beyond me, but if anybody is still looking for an answer to this then I highly recommend checking out the WordPress Codex on User Roles and Capabilities. Hope this helps!


    tstrickland415
    Participant

    @tstrickland415

    Aaah! Thanks so much @shanebp!! Working now


    tstrickland415
    Participant

    @tstrickland415

    @danbp No, I’m using the same version you are. I’ve attached an image to help illustrate
    BP Member Types


    tstrickland415
    Participant

    @tstrickland415

    Ok now everything works as you mentioned, but there’s just one caveat. The xprofile gets updated fine, but it’s not updating the actual Members Type field in the Extended Profile section of the Users panel in the backend.

    To clarify, when we make the xprofile field it’s a completely separate field than the Members Type field that Buddypress introduced recently. So in the Users->Extended Profile section there’s two fields for Member Types, the one we created and the one Buddypress introduced. Your code is only affecting the one we created and not the real Buddypress Member Type field. Is there a way to have the BP Member Type field get updated with the corresponding member type from the xprofile field?


    tstrickland415
    Participant

    @tstrickland415

    @danbp Thank you sooo much for taking the time to write this up. I greatly appreciate it!


    tstrickland415
    Participant

    @tstrickland415

    @rosyteddy Ok I just did, let’s hope we hear something back.

    If anyone can offer guidance on how to implement this into our template files with PHP then that would be appreciated also. I’ve searched through the bp-reshare code and found the functions that make it work, but I’m unsure on how to “hook” into it and manipulate it in my child theme


    tstrickland415
    Participant

    @tstrickland415

    I noticed this with mine as well. Your new code may not be affecting the posts previously handled by your old code. Try making a new Music post with the above code in place and see if it works instead of looking for it to update posts already made.

Viewing 7 replies - 1 through 7 (of 7 total)
Skip to toolbar