Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re-order profile menu items

  • Avatar of nylarosie
    nylarosie
    Participant

    @nylarosie

    I know this has come up a few times but I still can’s seem to get it to work!

    I want to re-order the items under the bp nav so that ‘profile’ comes first (currently forums, friends, groups, messages, settinge , profile) to profile, friends, messages, groups, forums, settings.

    Very obliged for any help..Thank you.

    Nyla

Viewing 13 replies - 1 through 13 (of 13 total)
  • Avatar of Lee
    Lee
    Participant

    @diondeville

    I tried doing this using several different methods. Have forgotten what those methods were but they didn’t work so won’t help you much anyway. Good luck getting a workable solution. Will keep watching this thread to see where you get.

    Avatar of danbpfr
    danbpfr
    Participant

    @chouf1

    hi @diondeville,

    to change the profile menu (on the top right of the ToolBar)
    <code>
    function my_change_profile_tab_order() {
    global $bp;

    $bp->bp_nav['settings']['position'] = 10;
    $bp->bp_nav['activity']['position'] = 20;
    $bp->bp_nav['friends']['position'] = 30;
    $bp->bp_nav['groups']['position'] = 40;
    $bp->bp_nav['blogs']['position'] = 50;
    $bp->bp_nav['messages']['position'] = 60;
    $bp->bp_nav['profile']['position'] = 70;
    }
    add_action( ‘bp_setup_nav’, ‘my_change_profile_tab_order’, 999 );</code>

    Take care with quotes when copy/pasting from here ! ;-)

    Avatar of nylarosie
    nylarosie
    Participant

    @nylarosie

    where would you add this to…i have added to functions-custom.php? Is that correct?
    Thanks

    Nyla

    Avatar of nylarosie
    nylarosie
    Participant

    @nylarosie

    Still not working…!!

    Avatar of danbpfr
    danbpfr
    Participant

    @chouf1

    Can not work, because your file name is wrong !
    It’s the theme functions.php, not functions-custom.php

    and this ocde is ok, i tested it on BP before to publish here.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    Avatar of nylarosie
    nylarosie
    Participant

    @nylarosie

    Hi Chouf1 and shanebp, I know that this generally involves changes to child theme function.php..however..

    I am using the frisco theme which has a functions-custom.php that I have out all other changes in.

    “DO NOT EDIT THIS FILE. You could edit this file, but any changes you make will be lost when you upgrade the theme in the future.
    * Intead of editing this file, create a file called functions-custom.php in the Frisco theme folder and go to Frisco theme ptions in your dashboard to load the functions-custom.php file. See frisco_add_custom_functions() function down below.” …tried this no effect.

    I did add to functions.php and it still had no effect.I then tried the bp-default themes function.php – gain no effect!

    thanks for trying guys!
    Nyla

    Avatar of nylarosie
    nylarosie
    Participant

    @nylarosie

    Chouf1 – I know you tried the solution and it worked – don’t doubt you…that is why it is so frustrating! Nyla

    Avatar of nylarosie
    nylarosie
    Participant

    @nylarosie

    I also made a new bp-custom-php file and tried that (in plugins- buddypress) – that did not work either! nyla

    Avatar of Lee
    Lee
    Participant

    @diondeville

    @nylarosie The file to put under /plugins is bp-custom.php not bp-custom-php.

    @chouf1 Thank you. I have tried this method in the past but it didn’t work. Placed the function in my child theme’s functions.php and in bp-custom.php but neither bore fruit. Will try again. Maybe I had a mistake the function I used.

    Avatar of nylarosie
    nylarosie
    Participant

    @nylarosie

    Diondeville/Chouf1…The file I amended WAS bp-custom.php…just a typo on my post (did not work).

    Resigned to leaving as it is!

    Any idea how to add a specific page (called ‘Groups’) to the ‘Groups’ sub nav – placed 1st. This is so users can join groups from the sub nav…

    Nyla

    Avatar of danbpfr
    danbpfr
    Participant

    @chouf1

    @nylarosie,

    first, you certainly need a child theme for your Frisco theme with all the modification you do, want to do.

    Read the Codex how to accomplish this and also your theme doc.

    It’s extremely important that you understand how your install and BP are working.
    We all, and you the first, wasting time if all the help you receive is ending by “doesn’t work”.

    To add a sub-menu, you have to create a custom menu who goes to BP group page. After that you can create a new php page called join_group.php and add it into your child theme.

    In this file you integrate all necessary html tags to reflect your theme, the php who belongs to BP groups and all the conditions to join any group you have and the join group button php code. Done. But be warned, this is a rough scenario, who need certainly to be adjusted a bit.

    Now go back to your custom menu and add  join_group.php file as sub-menu target.

    That said, it’s not a good idea to do that. People mainly don’t like to search in dropdown menus for some simple action like joining a service.

    Do it simple ! ;-)

    Avatar of TF28
    TF28
    Participant

    @tf28

    Hi There,

    Thanks for the great explanation. I need to change the sub menu item ‘friends’ within ‘activity’ to the first position and make it active. Any idea how to solve this?

    Many thanks in advance.

    Tee

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

You must be logged in to reply to this topic.