Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide Buddypress Profile based on Admin Field Value


  • dpeters
    Participant

    @dpeters

    Issue
    I work with trade associations and we want a simple way of hiding profile displays for members’ whose dues aren’t paid.

    We’re hoping not to run through a third party plugin. This is both to cut costs and to limit complexity for our volunteer-led organization. (handling multiple plugins will make the site less easy for the non-technical volunteers to maintain).

    Questions

    • Is there plugin to hide a profile based on an Admin-field value?
      • (i.e. “Paid Dues?” with a boolean value like 0 or 1)
    • If not, is there an easy way to prevent a profile from displaying through scripting?
Viewing 4 replies - 1 through 4 (of 4 total)

  • dpeters
    Participant

    @dpeters

    Any ideas?


    shanebp
    Moderator

    @shanebp

    You need to state which versions of WP & BP you use.

    You want to ‘hide’ the profile page for a member who hasn’t paid their dues?
    What should happen if that page is accessed by that member or another member?
    Redirect? Custom message page ?

    If ‘paid dues’ is a boolean, then it’s easy to write a function.
    Where is that boolean stored?

    Does that member still appear on the Members page? In the Activity stream?

    iow. you need to be more specific about the behaviour that you want.


    dpeters
    Participant

    @dpeters

    WP Version: 3.5.1
    BuddyPress: 1.7.2

    You want to ‘hide’ the profile page for a member who hasn’t paid their dues?
    What should happen if that page is accessed by that member or another member?
    Redirect? Custom message page ?

    Either redirect to a listing of all active members or display an error page would be fine, (i.e. “This member is not currently an active member.”)

    If ‘paid dues’ is a boolean, then it’s easy to write a function.
    Where is that boolean stored?

    It would be stored in their profile as an Admin-editable field, per the original post.

    Does that member still appear on the Members page? In the Activity stream?

    No to both. Hidden users would be able to login and update information but their profile wouldn’t be public-facing, just them and the admins.

    This would be useful as we have staggered dues, allowing profiles to turn off/on.


    shanebp
    Moderator

    @shanebp

    While very doable, this will require custom coding.
    You can contact me at PhiloPress

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide Buddypress Profile based on Admin Field Value’ is closed to new replies.
Skip to toolbar