Replies
- Brajesh Singh on December 20, 2017 at 11:56 pm in reply to: Modify visibility of Existing Profile Tab (in buddypress profile ) #12523
Hi Slim,
Here is the code that you can use to limit the visibility to User(self), friends and siteadmin/** * Remove the friends menu from user profile if visiting someone else's profile and is not friend. */ function bpdev_custom_hide_friends_if_not_self() { if ( bp_is_my_profile() || is_super_admin() || friends_check_friendship( bp_displayed_user_id(), bp_loggedin_user_id() ) ) { return; } bp_core_remove_nav_item( 'friends' ); } add_action('bp_friends_setup_nav','bpdev_custom_hide_friends_if_not_self');The old code is still working. But the code you have posted is using encoded quotes which will cause fatal error. Need to replace
‘with
'or
"Regards
Brajesh - Brajesh Singh on December 20, 2017 at 9:40 pm in reply to: [Resolved] Sub nav is not open / Disabled url – BuddyPress User Profile Tabs Creator Pro #12520
Hi Julia,
Thank you for the patience.The problem lies with WC Frontend Manager. It loads styles conditionally but fails on profile pages.
The solution is to force it to load css/** * Enable wcfm styles on profile page. */ function buddydev_enable_wcfm_styles() { global $WCFM; if ( ! $WCFM || ! isset( $WCFM->library ) || ! is_callable( array( $WCFM->library, 'load_styles' ) ) ) { return; } // change component with the slug. $component = 'tab-slug'; // please change it with your tab slug. if ( bp_is_current_component( $component ) ) { //load $WCFM->library->load_styles( 'wcfm-dashboard' ); } } add_action( 'bp_enqueue_scripts', 'buddydev_enable_wcfm_styles' );Please change the
$component = 'tab-slug'; // please change it with your tab slug.With the actual slug and you will get the dashboard like this.
https://i.imgur.com/z7oDigh.png
Hope that helps.
Regards
Brajesh - Brajesh Singh on December 20, 2017 at 9:08 pm in reply to: [Resolved] Left Sidebar, Right Sidebar #12519This reply has been marked as private.
- Brajesh Singh on December 20, 2017 at 9:04 pm in reply to: [Resolved] Uploaded Documents Not Displaying (no preview available) #12518
Hi Ali,
Thank you for using MediaPress.I too have noted issue with zip files. It seems the google doc viewer is not supporting the zip file from external source in their public viewer(I was supported earlier).
For now, I plan to list the zip files as simple attachment and let other file types work as expected.
I will be pushing a release nby this Sunday or early Monday with the fix.
Thank you
Brajesh - Brajesh Singh on December 20, 2017 at 9:01 pm in reply to: [Resolved] tab visible by freinds only #12517
Hi Slim,
Yes, It will be the first week of January. - Brajesh Singh on December 20, 2017 at 9:01 pm in reply to: Modify visibility of Existing Profile Tab (in buddypress profile ) #12516
Hi Slim,
At the moment you can not modify the visibility or slug of an existing menu.
Changing the visibility is feasible though.We will add it in 1.0.4(or 5), which will be available around the 3rd week of January.
For now, Here are the things you can do with the pre existing tab.
https://buddydev.com/docs/guides/plugins/buddypress-plugins/buddypress-user-profile-tabs-creator-pro/modify-existing-profile-tab/Thank you
Brajesh New Topic: https://buddydev.com/support/forums/topic/register-page-customization/
Closing this.
Regards
BrajeshNew topic.
https://buddydev.com/support/forums/topic/members-directory/
Closing this.- This reply was modified 8 years, 10 months ago by
Brajesh Singh.
- This reply was modified 8 years, 10 months ago by
The members directory is a page where BuddyPress lists all active members(users who have registered and logged in atleast once).
Yes, It is public. Making it private will make the profile go 404. If you want to hide members from the directory you will need custom code or plugin for the same.
Regards
Brajesh- Brajesh Singh on December 20, 2017 at 6:23 pm in reply to: [Resolved] Register Page Customization #12507
Hi Shelley,
BuddyPress does not allow logged in user to access register and activation page. You won’t be able to access it while you are logged in.The solution is to use two beowsers, in one you are logged in and apply setting and in another you are checking.
Please do know that you won’t be able to design any of the BuddyPress page using a page builder. As far as I remember, BUddyPress does not support it out of the box.
Regards
Brajesh