Replies
- Ravi on December 16, 2020 at 6:34 pm in reply to: Can't re-order existing tabs (BuddyPress Group Tabs Creator Pro) #34890
Hi Dan,
Can you please share me a screenshot showing 2 tabs and their orders?. Also, are you using BuddyPress or BuddyBoss.
Also, In order to allow me assist you further, Please share your order id. I am unable to find it under your account.
Thank you
- Ravi on December 16, 2020 at 6:25 pm in reply to: How To Load BuddyPress Scripts & Styles Only On BuddyPress Pages #34889
Hello Tosin,
Thank you for the acknowledgement. Are you refering notifications in admin bar or any other section of the site?. Above mentioned will affect all widgets and shortcodes offered by BuddyPress on pages other than BuddyPress.
Regards
Ravi - Ravi on December 16, 2020 at 6:21 pm in reply to: Can't re-order existing tabs (BuddyPress Group Tabs Creator Pro) #34887
Hello Dan,
Sorry for the inconvenience. Are you using tabs slug while modifying existing tab?. I have tried it and it is working for me.
Please take a look here:
https://buddydev.com/docs/buddypress-group-tabs-creator-pro/modifying-label-repositioning-existing-group-tab/Regards
Ravi Hello,
Thank you for posting. Gallery in itself is a post. You can use shortcodes to achieve your goal. Try something like this.
To list gallery media use shortcode
[mpp-list-media gallery_id=137]
And to upload media to this gallery use
[mpp-uploader gallery_id=137]
Please let me know if it helps or not. To allow other users to upload to this gallery you can use following plugin
https://github.com/mediapress/mpp-global-shared-gallery
Regards
RaviHello Mikel,
Thank you for posting. I have tried your username “myusername” and it is working for me. My profile url now “{site-user}/members/myusername”. It might be some other issue. Try after deactivating other plugins and custom code temporarily.
I am assuming you are changin username using our “BuddyPress Username Changer” plugin.
Regards
RaviHello Daniel,
Thank you for posting. Try the following code it will not allows members to create gallery.
add_filter( 'mpp_user_can_create_gallery', function ( $can, $component ) { if ( ! $can || 'members' !== $component ) { return $can; } // Only allow wall gallery. if ( isset( $_POST['context'] ) && 'activity' === $_POST['context'] ) { return true; } return false; }, 10, 2 );
Please check and let me know if it works or not.
Regards
Ravi- Ravi on December 15, 2020 at 8:53 am in reply to: How To Load BuddyPress Scripts & Styles Only On BuddyPress Pages #34872
Hello Tosin,
Try the following code. It will prevent BuddyPress assets not to load on other pages.
add_action( 'bp_template_redirect', function () { if ( is_buddypress() ) { return; } if ( has_action( 'wp_enqueue_scripts', 'bp_enqueue_scripts' ) ) { remove_action( 'wp_enqueue_scripts', 'bp_enqueue_scripts' ); } } );
Please check and let me know if it works or not.
Regards
Ravi - Ravi on November 27, 2020 at 9:40 am in reply to: [Resolved] Creating bp-custom.php file from dashboard? #34683
Hello Carsten,
Thank you for posting.
It is possible using a plugin like File manage. But it posses serious security issue and we do not recommended.
PS:- A few months ago, wp file manager plugin was hacked and more than 100000 sites got infected due to it. We strongly recommend to avoid it.
Regards
Ravi - Ravi on November 26, 2020 at 5:36 pm in reply to: [Resolved] CB Pro styling – remove category/tag etc from archive title #34680
Hello Hugo,
Thank you for posting. Please try the following code.
add_filter( 'get_the_archive_title_prefix', '__return_empty_string' );
Regards
Ravi Hello Saleam,
Thank you for posting. Try using the function “bp_get_total_unread_messages_count”. It will show the total unread message count for the user.
Regards
Ravi