Search Results for 'toolbar'
-
Search Results
-
Hi,
i enabled the option that show the toolbar to the visitor of my website but it does not work. How i can resolve this problem?
BuddyPress Plugin Version: 3.1.0
WordPress Version 4.9.6-it_ITTopic: Tolbar not visible
Hello,
I would like to make visible the toolbar with access to the user profile to registered users. I have disabled the visibility of the toolbar to unregistered users, but apparently not even those registered see it. How can I solve?
Installed Plugins: Akismet Anti-Spam, Asgaros Forum, BuddyPress, iubenda Cookie Solution for GDPR, JS Support Ticket, Maintetance by fruitfulcode, Really Simple SSL
After the 3.0.0 Update, my forums no longer display in KLEO theme.
Also, the toolbar at the top does not appear. There’s a space for it, but it is blank. This only happens on the forum pages.
ie:
I’ve been using bp_notifications_add_notification to add a notification with “component_action”=”activity_liked” for component_name activity. I can see that it is being saved in the database, but when I try to display an entry for it in the notifications view it seems that my callback function never runs. Every example I’ve found online has mirrored my function but it never seems to be called. Do I need to register the component_action or something?
I’ve looked in the buddypress core files and they all seem to pass 8 parameters instead of 5 during apply_filters_ref_array, which I also tried but still my callback wouldn’t run. I’ve tried it every way with no other plugins but buddypress activated and still it fails.
I’m truly lost on how to get this working.
function custom_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { // New custom notifications if ( $action == 'activity_liked') { $custom_title = 'activity liked'; $custom_link = '/activity/' . $item_id . '/'; $custom_text = bp_core_get_user_displayname( $secondary_item_id ) . ' liked your activity'; // WordPress Toolbar if ( 'string' === $format ) { $return = apply_filters( '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 { $return = apply_filters( 'custom_filter', array( 'text' => $custom_text, 'link' => $custom_link ), $custom_link, (int) $total_items, $custom_text, $custom_title ); } } else { $return = $action; } return $return; } add_filter( 'bp_notifications_get_notifications_for_user', 'custom_format_buddypress_notifications', 10, 5 );Hiya guys.
Unfortunately, I am having serious problems with a topic seen here every once in a while. I did go through all the posts I could find and tried half a dozen approaches, but none seems to be working.
I am adding notifications to a user when someone is requesting access to a post of that user and so far, everything is fine. The notification shows up in the DB with ID, user id, item_id and secondary_id as well as component_name and component_action.
Now, whenever I receive such a notification, it shows up completely blank.
This is my code:function request_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, 'project-pitches' ); // Return component's with 'custom' appended return $component_names; } add_filter( 'bp_notifications_get_registered_components', 'request_filter_notifications_get_registered_components' ); // Formatting custom with respect to action function bp_request_format_buddypress_notifications( $component_action_name, $item_id, $secondary_item_id, $item_count, $format = 'string' ) { if ($component_action_name !== 'request') { return $component_action_name ; } $link = get_site_url(); $returnlink = $link . "/my-projects/"; $request_title = "Test"; /*get_the_title($item_id);*/ $request_link = $returnlink; $request_text = "abc"; // New custom notifications if ( 'request' === $component_action_name ) { // WordPress Toolbar if ( 'string' === $format ) { $return = apply_filters( 'request_filter','Your custom notification for <a href="'.$request_link.'">'.$request_title.'</a> ', $request_text, $request_link ); $return = "Test"; // Deprecated BuddyBar } else { $return = apply_filters( 'request_filter', array( 'text' => $request_text, 'link' => $request_link ), $request_link, (int) $total_items, $request_text, $request_title ); } return $return; } } add_filter( 'bp_notifications_get_notifications_for_user', 'bp_request_format_buddypress_notifications', 10, 5 );Any idea what I might be doing wrong here? Thanks a ton, this is driving me nuts!
Hoi,
We use Buddypress with BBpress and there is a little problem with the url from the toolbar notifications.
This url goes to the first post of the right topic, but not to the specific post related to that notification.
Can someone help me to fix this.
Topic: Activity Streams Problem
Hi there all I hope you are all doing well.
I am trying to create a website that involves poets/writers writing there stuff down.
we have a Facebook group to do this at present.
I am working on a project for a charity creating the website.
However
on activity streams you can put a post up as you well aware.
I want it so the text can be justified, underlined, font size (text toolbar)
I need it with the post update feature on the activity stream.
is there a plugin? or anything I could do.
I’m a beginner with PHP and CSS and other programming languages.
I have found wordpress has allot of my needs and it’s easier to use.
I wonder if anyone can point me in the right direction
Thanks Nick
I’m wanting to integrate buddypress into my existing navbar on my site. At the moment the buddypress profile (notifications count, howdy user and menu) are in the top right of the WordPress admin toolbar. What options do I have to move this / add it to an existing navbar (basically the way this website utilises its own navbar and not the WP adminbar.
Thanks in advanced.
Brent




