Skip to:
Content

BuddyPress.org

Opened 5 years ago

Closed 20 months ago

#6148 closed enhancement (maybelater)

Default "Profile" page

Reported by: sooskriszta Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Core Keywords: trac-tidy-2018
Cc: vivek@…

Description

Admin should be able to select

  • What the default profile page for members should be.
  • What the default profile page for groups should be.

For instance, admin may decide that default profile page for members should be the XProfile "tab". Or Media tab. Or Activity tab. etc

Similarly, admin may decide that default profile page for groups should be Member List tab. Or Subgroups tab. Or Activity tab.

Attachments (4)

Default Profile Tab selection.png (34.7 KB) - added by sooskriszta 5 years ago.
default-profile-page#3.zip (3.6 KB) - added by abweb 4 years ago.
Archive contains patch file
6148_updated.patch (11.9 KB) - added by abwebstudio 3 years ago.
Updated patch with AJAX loading of groups navigation items
6148_updated_final.patch (12.0 KB) - added by abwebstudio 3 years ago.
Final version

Download all attachments as: .zip

Change History (14)

#1 @sooskriszta
5 years ago

  • Cc vivek@… added

#2 follow-up: @DJPaul
5 years ago

  • Milestone changed from Awaiting Review to Future Release

I think something along these lines makes sense. I'm even thinking about a per-group default homepage choice, though maybe that's not as important as these above.

#3 in reply to: ↑ 2 @sooskriszta
5 years ago

Replying to DJPaul:

I'm even thinking about a per-group default homepage choice

Would be very good to have. But even in that case, we should have a Default config (e.g. for groups in general).

Last edited 5 years ago by sooskriszta (previous) (diff)

#4 @web24coder
4 years ago

Hi guys

I'm working on this task and faced with one issue. I can't get a list of pages for Groups from Admin dashboard (e.g. Home, Members, Send Invites, Manage, etc.).

If I use bp_get_options_nav() function which includes object field $bp->bp_options_nav then the page data are connected with groups via array. But if I use such field $bp->bp_options_nav from Admin dashboard the array of pages (Home, Members, Send Invites, Manage, etc.) is absent.

Is there any possibility to get a list of pages from Admin Dashboard by another way?

Thank you!

---

I attached the array from Frontend and JPG of part of it (to be more clear)
https://www.dropbox.com/s/dgyvcguwy8gw5al/array_bp.txt?dl=0 (txt file)
https://www.dropbox.com/s/b88y7kh5jskxjw3/2015-06-11_0154.png?dl=0 (screenshot)

#5 @r-a-y
4 years ago

Is there any possibility to get a list of pages from Admin Dashboard by another way?

@web24coder - The groups nav is only available from the frontend, so you'll need to do a little bit of trickery to fetch the groups nav from the WP admin dashboard.

This should work, but it's hacky:
https://gist.github.com/r-a-y/d45d55b5cf24dd7b3701

This ticket was mentioned in Slack in #buddypress by r-a-y. View the logs.


4 years ago

@abweb
4 years ago

Archive contains patch file

#7 @boonebgorges
4 years ago

Oof. I think it's a decent idea to make it possible to configure the default panels for groups and users, but the technique suggested by @r-a-y is pretty bonkers.

The way I've sketched a new concept for the nav API, it would not be necessary to jump through these hoops, since nav items would be registered in all circumstances. See #6534. But this is going to take some time to get into BP.

Honestly, I feel like it would be slightly less crazy (though it would involve a bit more code) to fire off an asynchronous request to a front-end page, which would allow the globals to populate in the normal way, and then record them to be sent back to the admin. If we're going to pursue this ticket in the short term, I think we should do something like that instead.

@abwebstudio
3 years ago

Updated patch with AJAX loading of groups navigation items

@abwebstudio
3 years ago

Final version

#8 @sooskriszta
3 years ago

@boonebgorges Request feedback on updated patch.

#9 @DJPaul
20 months ago

  • Keywords trac-tidy-2018 added

We're closing this ticket because it has not received any contribution or comments for at least two years. We have decided that it is better to close tickets that are good ideas, which have not gotten (or are unlikely to get) contributions, rather than keep things open indefinitely. This will help us share a more realistic roadmap for BuddyPress with you.

Everyone very much appreciates the time and effort that you spent sharing your idea with us. On behalf of the entire BuddyPress team, thank you.

If you feel strongly that this enhancement should still be added to BuddyPress, and you are able to contribute effort towards it, we encourage you to re-open the ticket, or start a discussion about it in our Slack channel. Please consider that time has proven that good ideas without contributions do not get built.

For more information, see https://bpdevel.wordpress.com/2018/01/21/our-awaiting-contributions-milestone-contains/
or find us on Slack, in the #buddypress channel: https://make.wordpress.org/chat/

#10 @DJPaul
20 months ago

  • Milestone Awaiting Contributions deleted
  • Resolution set to maybelater
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.