Opened 11 years ago
Closed 10 years ago
#6607 closed enhancement (fixed)
Add "Edit" link to Toolbar for admins when viewing individual items on front
| Reported by: | slaFFik | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.6 |
| Component: | Activity | Version: | |
| Severity: | normal | Keywords: | good-first-bug has-patch dev-feedback |
| Cc: |
Description
When you open a single blog post on front you see a handy "Edit" button in Toolbar.
I believe, it will be useful to have such for activity items, forum topics etc. And links will lead to wp-admin area.
Forum topics are harder to think of all UI things, as there is already an edit link (group details etc). So I believe we can start small for activity items only.
Attachments (4)
Change History (17)
#1
@
11 years ago
- Keywords needs-patch good-first-bug added
- Milestone Awaiting Review → Future Release
#3
@
11 years ago
Attached is a patch, that will add Edit Activity link in Toolbar, when browsing single activity item page on front-end, aka http://trunk.bp/members/michellie/activity/669/
This ticket was mentioned in Slack in #buddypress by slaffik. View the logs.
11 years ago
This ticket was mentioned in Slack in #buddypress by slaffik. View the logs.
11 years ago
#7
@
11 years ago
About action to hook:
There is no bp_admin_bar_menu, proposed by @DJPaul. bp_adminbar_menus seems to be deprecated in 2.1 (although it's still used in bp-core-adminbar.php). The core functions also uses admin_bar_menu, so here it is.
Also cleaned up return's.
This ticket was mentioned in Slack in #buddypress by imath. View the logs.
10 years ago
#10
@
10 years ago
I've refreshed the patch to latest trunk, but i must say 2 things are a bit bothering me:
1/ We are already adding a menu here to manage the member, so BuddyPress will add 2 menus into the WP Admin Bar...
2/ The Existing Edit Links are linking on front-end, this one is bringing us in back end.
#11
@
10 years ago
- Keywords dev-feedback added
- Milestone 2.5 → 2.6
Thanks for the refresh, imath.
I kind of agree with the first point. It might make sense to make this a real button beside the "Delete" and "Comment" buttons.
The second point doesn't bother me so much because those with 'bp_moderate' only have access.
Since this isn't critical and is easily implemented in a plugin, let's bump this to get more feedback.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Absolutely. Good idea.