Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • pnet
    Participant

    @pnet

    I am struggling .. help


    pnet
    Participant

    @pnet

    Can you point me in the right direction on this?

    I am still kind of new to buddypress 🙂


    pnet
    Participant

    @pnet

    view it on the frontend.

    Right now if I set the field to “Only Me” all the admins can see the field and the user of that particular profile.
    I would like to be able to allow certain users to be able to view this field on the front end with out having admin rights.


    pnet
    Participant

    @pnet

    This seems like a very common question. Is there no solution?


    pnet
    Participant

    @pnet

    Unfortunately this did not work for me 🙁


    pnet
    Participant

    @pnet

    Awww.. thank you , I will give it a whirl !


    pnet
    Participant

    @pnet

    This sounds like what I am trying to do.

    I have a role “Partners” and the following function

    function remove_nav_items() {
        bp_core_remove_nav_item( 'notifications' );
        bp_core_remove_nav_item( 'groups' );
        bp_core_remove_nav_item( 'forums' );
        bp_core_remove_nav_item( 'activity' );
    
    }
    add_action( 'bp_setup_nav', 'remove_nav_items');

    How can I make an “if” statement with this function?
    example: if role= ‘partners’ do remove_nav_items()

    I am having trouble figuring out how to get the user role of a logged in user.


    pnet
    Participant

    @pnet

    Where do I place this code?


    pnet
    Participant

    @pnet

    I have been searching for the same, hide admins from GROUP members list.
    It seems all the forums point to https://buddypress.org/support/topic/hide-admin-from-members-and-activity/

    Which the second block of code does not work, for me anyway, breaks my site.

    So how do I hide the admins from GROUP members list, not all members list, I have those hidden.


    pnet
    Participant

    @pnet

    I am trying to do the same, I tried these codes and it’s not working.
    I added to my bp-custom.php file.
    Maybe I am doing something wrong???

    My ultimate goal is to hide specific profile menu options based on the users role, this looked like a good starting place, I must be missing something??


    pnet
    Participant

    @pnet

    That’s ok 🙂


    pnet
    Participant

    @pnet

    On the buddypress menus?

    I think it’s just for the wordpress menus.


    pnet
    Participant

    @pnet

    Well as soon as I post it I figure it out.. go figure 🙂

    In case anyone else is confused here’s what I did and I had no clue going into it.

    Use this https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/ for a reference on what to name your files and where to put them. (.po and .mo files, trust me I did not even know what these were)

    Download this editor/compiler here: https://poedit.net/download (it’s free!)
    You will need this to create (compile) the .mo file (if you want to know what these files are google it, that’s what I did)

    Use the buddypress link above and go to the “Translating with PoEdit” section, it will walk you through how to open the file with Poedit.
    (This part “This will open a settings dialog and you will be asked to fill in some details such as project name which we’ll skip. Click on ‘OK’ and you’ll be asked to save your language file.” did not happen for me, it asked me my language and I selected English United States, choose what you desire.)

    Now remember in my case I needed to change a few buddypress page titles.
    Example: I wanted to change the buddypress title “Groups” to “Chat Rooms” –
    While in Poedit with your .po file open, where you need to change it seems to be near the bottom of the file. Scroll down until you see something like this “Site-Wide Activity [component directory title]” (this was the first one for me). These are the buddypress page titles, this is where you can change them.

    Click on the title you want to change, my case Groups, below you will see “Source text” this is where “Groups” is showing. In the text area under that you will see “Translation”, this is where I typed “Chat Rooms”, as this is the title I would like it changed to.

    When finished Save your .po file. Back to Poedit, click File, select “Compile to MO” , save you .mo file as directed in the buddypress link above.
    Follow the rest of the instructions in the link to upload your .po and .mo files.

    I hope this helps out others who are new to buddypress! 🙂


    pnet
    Participant

    @pnet

    2 weeks and no replies?


    pnet
    Participant

    @pnet

    For what ever reason I did not receive the email notification for your response.

    My users are showing now, I figured out what I was doing wrong.


    pnet
    Participant

    @pnet

    Hello?

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