Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'toolbar'

Viewing 25 results - 1 through 25 (of 557 total)
  • Author
    Search Results
  • #336869
    Patel Akshay
    Participant

    Here’s my function, and I want to add a placeholder for wp_editor(). However, there’s no default parameter available for this. How can I achieve it?

    I’m using BuddyPress, and the following function is used for the “What’s New” textarea. I have replaced the simple textarea with wp_editor().

    function show_whats_new_tinymce_editor($editor_id) {
        $current_user = wp_get_current_user();
        $user_display_name = !empty($current_user->display_name) ? $current_user->display_name : __('User', 'reign');
    
        $content = "What's new, {$user_display_name}?";
    
        $settings = array(
            'media_buttons' => false,
            'textarea_name' => 'comment',
            'textarea_rows' => 6,
            'teeny' => false,
            'tinymce' => array(
                'wpautop' => true,
                'toolbar1' => 'bold,italic,bullist,numlist,link,unlink,undo,redo,addmedia,addgif,videoembed,fullscreen',
                'toolbar2' => '',
                'branding' => false,
                'statusbar' => true, // Show status bar for resizing
                'resize' => true, // Allow resizing
                'height' => 200, // Set default height
                'extended_valid_elements' => 'a[href|target=_blank], iframe[src|width|height|frameborder|allowfullscreen]',
                'rel_list' => array(array('title' => 'No Follow', 'value' => 'nofollow')),
                'link_default_target' => '_blank'
            ),
            'quicktags' => false
        );
    
        $dark_mode = isset($_COOKIE['reign_dark_mode']) && $_COOKIE['reign_dark_mode'] === 'true';
        $settings['tinymce']['content_css'] = $dark_mode ? get_stylesheet_directory_uri() . '/assets/css/dark-mode-editor.css' : '';
    
        wp_editor($content, $editor_id, $settings);
    }
    #333296
    dvalken
    Participant

    Hello everyone, im busy with my new website and trying to use BuddyPress, but the default menu (the toolbar one) is not working properly when on mobile, im using Astra as theme with the latest WordPress and BuddyPress and no other plugins yet,but somehow i cannot find out how to fix it.

    So when on on mobile the login works just fine, but when logged in the problem appears, when you click the profile icon on the toolbar the menu appears like normal, but when i want to open the submenus ( 4 instance when i want to open Activity – > Personal, im not able to click on Personal since its already opening Activities, its opening the submenu aswell dont get me wrong but by clicking to open the menu to be able to click on personal its already loading the linkt thats under activity.

    Anyone having an idea on how to fix this?

    #330110

    In reply to: Remove toolbar

    gregec
    Participant

    In BuddyPress settings under main menu, toolbar, I unchecked “show toolbar for logged out users”, but it still shows up if they are logged in. I can’t find anywhere else to remove it.

    #330108
    gregec
    Participant

    I am using WordPress version: 6.2.2
    I am using BuddyPress version: 11.2.0
    My website is https://entertainerdrivers.com/
    I installed Buddypress and set everything up via watching a WPtutorial video. After I set everything up I created a dummy account, to see how everything functioned on something other than my admin account. My issue is the toolbar at the top. Users can click on the wordpress icon, on the left side and get to my wordpress details. How do I not allow this? I have disabled all of the buddypress pages until I can sort this out.

    #329490
    Jisd
    Participant

    Hello, when a user of my Buddypress site connects on his Android smartphone, he arrives on his WordPress admin instead of the home page of my site (inmelove.fr). Note that the toolbar is therefore present at the top of the screen, and that it appears only on smartphone screens.
    He must then click on the house icon (in the toolbar) to access the site and then the toolbar finally disappears.
    My question is this: Is it possible to remove this toolbar, and how.

    Thanks for your help,

    Sincerely,
    Jean

    Translated with http://www.DeepL.com/Translator (free version)

    Heatherlly
    Participant

    Hi,

    While I’m able to edit users from the front end, this is limited to the information on their BP profiles. Would it be possible to add/change a link (possibly in the toolbar) that would also enable me to edit them through the dashboard?

    Asking because I frequently need to make changes (i.e. adding them to different forum groups) that fall outside BP profile editing capabilities. Currently, I have to go to the dashboard and look them up manually… it would be so much more convenient if there was a link I could just click from their profile page for direct access.

    I hope this is clear. If not, please let me know, and I’ll try to word it differently.

    Thanks in advance for any help!

    Pynet
    Participant

    Hello,
    I am trying to create my own notification, but it is not working.
    The notification should not be for the author of the post, but for whoever is assigned as client “_sliced_client”, which is stored in the postmeta table in the database and returns the client id.
    Wordpress version: 6.1.1
    BuddyPress version: 10.6.0

    <?php 
    // this is to add a fake component to BuddyPress. A registered component is needed to add notifications
    function custom_filter_notifications_get_registered_components( $component_names = array() ) {
        // Force $component_names to be an array
        if ( ! is_array( $component_names ) ) {
            $component_names = array();
        }
        // Add 'custom' component to registered components array
        array_push( $component_names, 'propre' );
        // Return component's with 'custom' appended
        return $component_names;
    }
    add_filter( 'bp_notifications_get_registered_components', 'custom_filter_notifications_get_registered_components' );
    // this gets the saved item id, compiles some data and then displays the notification
    function custom_format_buddypress_notifications(  $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
        // New custom notifications
        if ( 'propre_action' === $action ) {
    
            $post = get_post( $item_id );
    		//
            $custom_title = $post->post_author . ' add a quote for you' . get_the_title( $item_id );
            $custom_link  = get_permalink( $post );
            $custom_text = $post->post_author . ' add a quote for you ' . get_the_title( $item_id );
            // WordPress Toolbar
            if ( 'string' === $format ) {
                $return = apply_filters( 'propre_filter', '<a href="' . esc_url( $custom_link ) . '" title="' . esc_attr( $custom_title ) . '">' . esc_html( $custom_text ) . '</a>', $custom_text, $custom_link );
            // Deprecated BuddyBar
            } else {
                $return = apply_filters( 'propre_filter', array(
                    'text' => $custom_text,
                    'link' => $custom_link
                ), $custom_link, (int) $total_items, $custom_text, $custom_title );
            }
            return $return;
        }
    }
    add_filter( 'bp_notifications_get_notifications_for_user', 'custom_format_buddypress_notifications', 10, 5 );
    
    // this hooks to post creation and saves the post id
    function bp_custom_add_notification( $post_id, $post ) {
        if ( $post->post_type == 'sliced_quote' ) {
            $post = get_post( $post_id );
    		$client_id= get_post_meta($post_id, '_sliced_client');
            $author_id = $post->post_author;
            bp_notifications_add_notification( array(
                'user_id'           => $client_id,
                'item_id'           => $post_id,
                'component_name'    => 'propre',
                'component_action'  => 'propre_action',
                'date_notified'     => bp_core_current_time(),
                'is_new'            => 1,
            ) );
        }   
    }
    add_action( 'wp_insert_post', 'bp_custom_add_notification', 99, 2 );

    Any ideas?
    Thank you very much!
    Regards and happy new year!

    #326238
    Anonymous User 18187419
    Inactive

    @helio …there is no Activities option showing in your menu/toolbar.
    Viewed on mobile.
    If you want to prevent not-logged-in users from viewing any Buddypress pages, you can use a plugin like “BP Members Only”

    #326232
    heliocorrei
    Participant

    Hi.
    Thanks for answering.

    That part of the tab that you said, I already removed it, but it’s not working.
    I will do a test.
    In the same toolbar I put two other options, Home and Privacy Policy.
    I’ll remove it and see if it works.
    But please, take a look at the link now, I’ll put it in full.

    Home

    Note that if you click on “Activities” in the menu bar it already shows the timeline and I need it to only appear when the person is logged in.
    Sorry, it’s my first post.

    Thanks.

    #326231
    Anonymous User 18187419
    Inactive

    The link to your site does not work.

    If it helps, there are guides on how to remove items from the WordPress toolbar.
    Search “remove items from wordpress toolbar”

    #322851
    VibeThemes
    Participant

    Go to WP admin – Settings – buddypress – options – Show the Toolbar for logged out users , disable it.

    #320464
    tarunweb1
    Participant

    Hello Guys,

    I am creating a post subscription. When any user subscribe to any post I want to send them notifications about comments and post activities. I am adding custom notifications to buddypress. Notifications are adding but in frontend the title of notification is not showing. I checked many forums but did not find any solution.

    Below is my code:

    
    public function __construct() {
          
          add_filter( 'bp_notifications_get_registered_components', array($this,'custom_filter_notifications_get_registered_components'),20 );
          add_filter( 'bp_notifications_get_notifications_for_user', array($this,'custom_format_buddypress_notifications'), 10, 7 );
          add_action( 'wp_insert_comment', array($this,'bp_custom_add_notification'), 99, 2 );
       }
    
    For custom component
    
    public function custom_filter_notifications_get_registered_components( $component_names = array() ) {
     
           // Force $component_names to be an array
           if ( ! is_array( $component_names ) ) {
               $component_names = array();
           }
        
           // Add 'custom' component to registered components array
           array_push( $component_names, 'custom' );
        
           // Return component's with 'custom' appended
           return $component_names;
       }
    
    For notification formatting
    
    public function custom_format_buddypress_notifications( $content, $item_id, $secondary_item_id, $total_items, $format = 'string', $action, $component ) {
         	   
             if ( 'custom_action' === $action ){
               $comment = get_comment( $item_id );
            
               $custom_title = $comment->comment_author . ' commented on the post ' . get_the_title( $comment->comment_post_ID );
               $custom_link  = get_comment_link( $comment );
               $custom_text = $comment->comment_author . ' commented on your post ' . get_the_title( $comment->comment_post_ID );
        
               // WordPress Toolbar
               if ( 'string' === $format ) {
                   $data_to_return = apply_filters_ref_array( 'custom_filter', '<a href="' . esc_url( $custom_link ) . '" title="' . esc_attr( $custom_title ) . '">' . esc_html( $custom_text ) . '</a>', $custom_text, $custom_link );
                   
        
               // Deprecated BuddyBar
               } else {
                   $data_to_return = apply_filters_ref_array( 'custom_filter', array(
                       'text' => $custom_text,
                       'link' => $custom_link
                   ), $custom_link, (int) $total_items, $item_id, $secondary_item_id );
               }
               
             return $data_to_return;     
          } else{
             return $action;
          } 
       }
    
    For adding notification
    
    public function bp_custom_add_notification( $comment_id, $comment_object ) {
     
          $subscribed_user =  get_post_meta( $comment_object->comment_post_ID , 'subscribed_user',true ); 
          
          if(!empty($subscribed_user) && is_array($subscribed_user)){
             for ($i=0; $i < count($subscribed_user); $i++) { 
          		 if ( bp_is_active( 'notifications' ) ) {
                      bp_notifications_add_notification( array(
                         'user_id'           => $subscribed_user[$i],
                         'item_id'           => $comment_id,
                         'component_name'    => 'custom',
                         'component_action'  => 'custom_action',
                         'date_notified'     => bp_core_current_time(),
                         'is_new'            => 1,
                       ) );
          		 }
             }
          }   
       }
    
    

    Please suggest best possible way to fix this issue.

    Thank You

    #318669
    nikolas27
    Participant

    Hello, whenever I create a group, all I see is the group photo and the activity. No toolbar, no menu (members, forum, etc)

    any ideas?

    saraelba
    Participant

    Hello!
    Im trying to get out the buddypress menu from the wordpress toolbar and put it on a another menu on my website.

    My theme it shows a “login in” button on the top right corner, and there is a menu button too but this button dissapears slowly (with some javascript I supposed) and only shows the admin toolbar if a user is logged in.

    I want to change that.
    I want the admin toolbar out.
    (I had change the theme. Same results, except the javascript thing).

    Also, I want to edit the links in the menu too and add other links not related to buddypress.

    Thanks a lot!!!

    #316736
    lynnapp
    Participant

    Hi, I have a site with no functions. the only plugin activated is buddy press,

    so when it loads the object for the nav after the bp-wrap div it has

    <nav class=”main-navs no-ajax bp-navs single-screen-navs horizontal users-nav” id=”object-nav” role=”navigation” aria-label=”Member menu”>

    I had the site with custom themes and functions and removed everything to try and find out where it was getting hung up.

    Is there something else I can trouble shoot this with to find out why it does not load with Ajax – I thought that should be the default

    WP is 5.6
    Theme twenty twenty-one 1.1
    php 7.4
    Buddy Press info Version 7.1.0
    Active components Community Members, Extended Profiles, Account Settings, Friend Connections, Private Messaging, Activity Streams, Notifications, User Groups
    Active template pack BuddyPress Nouveau 7.1.0 ( I have tried with bp legacy also )
    Toolbar No
    Account Deletion Yes
    Community Members: Profile Photo Uploads Yes
    Community Members: Cover Image Uploads Yes
    Extended Profiles: Profile Syncing Yes
    User Groups: Group Creation Yes
    User Groups: Group Photo Uploads Yes
    User Groups: Group Cover Image Uploads Yes
    Activity Streams: Post Comments Yes
    Activity Streams: Activity auto-refresh Yes

    #315489
    sanaconeltantra
    Participant

    Hi guys,
    Does anyone know how to have the BP toolbar displayed for susbcribers as well when Woocommerce is activated?

    #313544
    amtenbrink
    Participant

    Hi,

    how can i hide the wordpress toolbar (adminbar) for logged in (!) buddypress members?

    thanks!

    iamthewebb
    Participant

    Hi Aditideo,

    If you change to the twenty twenty theme or similar do you then see the toolbar and notification bar?

    aditideo
    Participant

    Hello,
    I am using buddyboss theme and buddypress plugin and I can not see toolbar or notification bar on the frontend of the site.
    which settings do I need to check and which steps I need to follow. please guide asap.

    #311509
    @mercime
    Participant

    @izzethan You can disable the admin toolbar for anyone who is not logged in simply by going to Settings > BuddyPress > Options tab, then make sure that “Toolbar – Show the Toolbar for logged out users” is not checked.

    #310283
    soopablogga
    Participant

    This question is basically impossible to answer without lots of other information. If your theme has a separate notification count code from the default one that shows up in the toolbar, you can rip that code out of the site and put it elsewhere — if not you’re going to have to learn to code it yourself or hire someone to do it for you.

    You could start with searching “how to add buddypress notifications to template”

    #308852
    Nahum
    Participant

    @brianstoiber do you happen to have woocommerce installed? I just noticed this myself. I turned off woocommerce and it revealed the toolbar.

    #308851
    brianstoiber
    Participant

    I am on the BuddyPress Settings page and under Options, the first one is

    Main Settings
    Tool Bar Show the Toolbar for logged out users

    https://imgur.com/76EN0i7

    #308849
    Nahum
    Participant

    “Show the Toolbar for logged out users” doesn’t sound like a wp or bp setting? Is that a setting of your theme or a plugin? I could be wrong of course but sounds like something to do with theme/plugin.

    brianstoiber
    Participant

    I have a site that checked the box next to Show the Toolbar for logged out users in the settings. However it doesn’t appear to do anything? When I visit the site, it does not show the tool bar for anyone other than logged in admins.

Viewing 25 results - 1 through 25 (of 557 total)
Skip to toolbar