-
Joe replied to the topic How do I move profile subnavs to Settings subnav in the forum How-to & Troubleshooting 10 years, 5 months ago
@henrywright and @lflier thanks a bunch for the time on this, it’s much appreciated! I’m going to play around with the information you gave me and see if I can come up with something a little later. I’ll keep you posted on my progress! Can’t thank you guys enough for your time and I look forward to reaching out soon, hopefully with some success!…[Read more]
-
Henry Wright replied to the topic How do I move profile subnavs to Settings subnav in the forum How-to & Troubleshooting 10 years, 5 months ago
@lflier couldn’t do any better than this if I tried. It all looks good to me 🙂
-
Henry Wright replied to the topic How do I move profile subnavs to Settings subnav in the forum How-to & Troubleshooting 10 years, 5 months ago
Take a look at this example screen function from the BP Skeleton Component:
Instead of trying to re-use the
xprofile_screen_change_avatar
, perhaps try creating your own using this as a guide. Boone Gorges looks after the BP…[Read more] -
Henry Wright replied to the topic How do I move profile subnavs to Settings subnav in the forum How-to & Troubleshooting 10 years, 5 months ago
In your
setup_custom_nav
function, instead of:'screen_function' => 'lf_screen_function',
Maybe you can do this:
'screen_function' => 'xprofile_screen_change_avatar',
And you won’t need your
lf_screen_function()
function.I haven’t tested this, but don’t see why doing that isn’t possible.
-
Henry Wright replied to the topic How do I move profile subnavs to Settings subnav in the forum How-to & Troubleshooting 10 years, 5 months ago
@lflier that sounds like a good approach. The screen function will be already written for you and as you say, creating the new subnav and removing the unwanted one is easy enough.
-
Henry Wright replied to the topic How do I move profile subnavs to Settings subnav in the forum How-to & Troubleshooting 10 years, 5 months ago
Hi @josephfrio13yahoocom and @lflier
Component navigation is set-up in the component’s class. For example, the
setup_nav
method within theBP_Friends_Component
class does this for the Friends component. See here for exactly how it’s done.To my knowledge, there is no easy way to move subnavs around.
@lflier
Active 3 years, 3 months ago