Search Results for 'toolbar'
-
Search Results
-
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); }
Using the Full Site Editor in WP 6.4, I can see the generic directory pages available for use as menu items. However, I can’t figure out how to create a Member menu with member-based menu items. I’d love to be able to transition to a theme like Twenty Twenty-Four, but I need the ability to have these links without having to give people access to the WP Toolbar.
Topic: Remove toolbar
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.Topic: Smartphone home screen
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!
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!Topic: Errors on Website dashboard
I’m using Buddypress version 10.4.0 on my website https://addictedtopolitics.com. Originally, I was hosting a website using the same theme (Bimber) with no issues. My current site is hosted on ionos.com. So I know it isn’t theme related. (I also tried the themes you recommended and errors are still there.) My site needs a community plugin to function properly, so I really hope to get this fixed. I also purchased the Youzify plugin which I used previously, but haven’t activated on this site yet due to this issue. Here are the error messages I get above the installed plugins page whenever I have Buddypress activated (and if I post something I get a screen with nothing but errors.
: Undefined array key “buddypress” in /homepages/27/d920217962/htdocs/clickandbuilds/AddictedToPolitics/wp-content/plugins/buddypress/bp-core/admin/bp-core-admin-tools.php on line 676
Warning: foreach() argument must be of type array|object, null given in /homepages/27/d920217962/htdocs/clickandbuilds/AddictedToPolitics/wp-content/plugins/buddypress/bp-core/admin/bp-core-admin-tools.php on line 676
Warning: Cannot modify header information – headers already sent by (output started at /homepages/27/d920217962/htdocs/clickandbuilds/AddictedToPolitics/wp-content/plugins/buddypress/bp-core/admin/bp-core-admin-tools.php:676) in /homepages/27/d920217962/htdocs/clickandbuilds/AddictedToPolitics/wp-includes/pluggable.php on line 1421
Warning: Cannot modify header information – headers already sent by (output started at /homepages/27/d920217962/htdocs/clickandbuilds/AddictedToPolitics/wp-content/plugins/buddypress/bp-core/admin/bp-core-admin-tools.php:676) in /homepages/27/d920217962/htdocs/clickandbuilds/AddictedToPolitics/wp-includes/pluggable.php on line 1424
Warning: Cannot modify header information – headers already sent by (output started at /homepages/27/d920217962/htdocs/clickandbuilds/AddictedToPolitics/wp-content/plugins/buddypress/bp-core/admin/bp-core-admin-tools.php:676) in /homepages/27/d920217962/htdocs/clickandbuilds/AddictedToPolitics/wp-admin/includes/misc.php on line 1381
Warning: Cannot modify header information – headers already sent by (output started at /homepages/27/d920217962/htdocs/clickandbuilds/AddictedToPolitics/wp-content/plugins/buddypress/bp-core/admin/bp-core-admin-tools.php:676) in /homepages/27/d920217962/htdocs/clickandbuilds/AddictedToPolitics/wp-includes/functions.php on line 6878
Warning: Cannot modify header information – headers already sent by (output started at /homepages/27/d920217962/htdocs/clickandbuilds/AddictedToPolitics/wp-content/plugins/buddypress/bp-core/admin/bp-core-admin-tools.php:676) in /homepages/27/d920217962/htdocs/clickandbuilds/AddictedToPolitics/wp-admin/admin-header.php on line 9
Skip to main contentSkip to toolbarI’m hoping someone can help! I’ve already deactivated all plugins but Buddypress and had the same issue.
Thank you!
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
Topic: Language switcher in toolbar
Hi
Is there a way to integrate WPML language switcher in the BP toolbar?
BP Version 8.0.0Hello, whenever I create a group, all I see is the group photo and the activity. No toolbar, no menu (members, forum, etc)
any ideas?
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!!!
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 YesHello, I’m creating a networking site using site ground. I installed buddypress currently trying to edit my home page, but buddypress isn’t appearing when I click to edit homepage. The frontend editor isn’t appearing the top toolbar like on the video toolbar. Do I need to delete and reinstall buddypress or is there a specific way through the settings to activate the front/back end editor? Please help
Topic: Hiding Toolbar for members
Hi,
how can i hide the wordpress toolbar (adminbar) for logged in (!) buddypress members?
thanks!
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.