This topic has 19 replies, 3 voices, and was last updated 10 years by Laura.

  • Author

    Tagged: 

  • #66549
     BurntCorkMedia
    Participant

    I’d like to modify the profile section so when the user wants to get to his buddypress menu, s/he doesn’t have to see his or her profile everytime and they do not need to drop down the page to go to the BP menu (some user have long porfile and sometimes they don’t even see the BP menu under).

    This was addressed in the following topic but the moderator did not make the code public as promised:

    https://archived.seventhqueen.com/forums/topic/hide-users-own-profile-section

    Thanks

    #66651
     Piroo
    Participant

    Yes, count me in please.
    Want to know that too.
    Maybe ‘t could be nice with a accordion solution: ➜ My Profile
    Users don’t like to scroll down for that.
    Thank you.

    #67295
     BurntCorkMedia
    Participant

    Can we get a response on this please, guys?
    Most grateful πŸ™‚

    #67410
     Laura
    Moderator

    Hello, in that post i didint had the user credentials to test the code, so i couldnt share it. Could you share credentials so i can test? πŸ™‚

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #67495
     BurntCorkMedia
    Participant

    Hi Laura

    Thank you for your quick response! πŸ™‚
    Unfortunately, my hosting does not provide anonymous ftp access so I have therefore added you as admin to the site.

    Alternatively, I am happy to experiment with any coding/ instructions you provide as I have a certain level of css knowledge.

    Please find the log in details as follows:

    url: singlescircus.com/wp-admin/

    Username: davidoh

    Password: TnT67Vx%M8

    Please note, due to under construction plug in, you will be unable to see the front end of the site unless you are logged in. You are a super admin so you have access to all.

    Please also note that this is a multi-site and therefore you will have to go into Network admin which can be located at the top right hand of the admin bar (which I am sure you already know!)

    I look forward to your response.

    Marcia

    #67713
     Laura
    Moderator

    Hello, got it, thanks! Will create the code, as i cant access your ftp i will give you the step to add it, please give me some time to do it πŸ™‚

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #70344
     BurntCorkMedia
    Participant

    Hi Laura

    Do you have the information, yet please?

    Thanks

    #70515
     BurntCorkMedia
    Participant

    I note that this thread was marked resolved however I have been waiting for approx 3 weeks. Any update yet?

    #70517
     Laura
    Moderator

    Hello, sorry for the delay, please understand that this is a custom request that i wanted to provide, but there are many topics and i go one by one in order.
    The topic is set as resolved because is not a suppport question, is a custom request πŸ™‚
    I will reply in some minutes with the code and how to apply it

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #70522
     Laura
    Moderator

    Hello, so here is the code, please add it to your header.php ( or footer.php ) of child theme

    COPY CODE
    
    <?php
    if ( !bp_is_my_profile() )
    {
    <style type="text/css" style="display: none">
    div#profile {
        display: none;
    }
    </style>
    }
    ?>
    

    It should hide the profile
    Let me know if it works πŸ™‚

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #70943
     BurntCorkMedia
    Participant

    Hi Laura

    Thank you for your response. I have tried this as advised but I keep getting an error message. Is there somewhere in particular that I need to place this code within the aforementioned files?

    Many thanks

    #71245
     Laura
    Moderator

    Hello, try this instead πŸ™‚

    COPY CODE
    
    <?php if ( bp_is_my_profile() ) { ?>
    <style  type="text/css" media="screen">
    #profile {
    	display:none;
    }
    </style>
    <?php } ?>
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #71307
     BurntCorkMedia
    Participant

    Perfect Laura. Thank you! πŸ™‚

    #71524
     Laura
    Moderator

    Glad it worked! πŸ™‚

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #73152
     Piroo
    Participant

    Thanks Laura, it works.
    But … now a user can never see their own profile and their own photo.
    That’s why I proposed to use an accordion for this so that the profile can be opened with a triangle or so.
    Ah, I’m aware that this is probably too much asked in terms of custom request. I would understand.
    Or is there another solution just maybe?
    Thanks anyway.

    #73354
     Laura
    Moderator

    Hello, that was for BurntCorkMedia because they wanted to hide it for the user, his own profile. What exactly do you need?, an accordion to show or hide it?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #73361
     Piroo
    Participant

    Yes, with an accordion, they see that their own profile is available and they can open it and close it. When it is closed it does not take much space. Would be nice πŸ™‚

    #73783
     Laura
    Moderator

    Hello, this would require to use another plugin and some php – css changes… That is more than what i can offer here, because it needs some time and development. You can contact laura@seventhqueen.com for custom requests

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #73815
     Piroo
    Participant

    Thanks Laura, I understand perfectly.
    I’ll think about that …

    #73939
     Laura
    Moderator

    Hello, thanks you for understadng πŸ™‚
    Will be here if you need anything more

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 20 posts - 1 through 20 (of 20 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?