Search Results for 'toolbar'
-
Search Results
-
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.
BrentTopic: Full Width
Dear Support,
Could you pls assist me with how to make the buddypress shows full width.
You can check my web http://team.cekcepat.com/ it used up so many blank space at left right and top space. What i try to achive is it shows full width so that it shows more contents.
And I also want to remove toolbar for log in and log out users. How to do that.
Many thanks for your assistance.Agus
BP front end post plugin is suddenly not showing the limited toolbar for customizing post like bold, italics, alignments, hyperlinks, etc.
Please help as soon as possibleTopic: Disabling Toolbar
Hi,
I seem to be in a spot of bother. I want to disable the wordpress toolbar from my site. I know how to disable it through BuddyPress however when it is disabled I lose the menu in the top right corner that has the links to profile, messages, notifications and so on.
I am thinking of 2 solutions for this:
1) A widget I can place on a side bar that has all the functions of the BuddyPress menu. I’ve looked through a fair amount of plug ins but can’t seem to find anything like what I am looking for. So does something like this exist? I have seen several plug ins that can give me widgets for some functions, but nothing that will get me to the profile page that is created within BuddyPress.
2) I create a profile page and add the BuddyPress profile elements to that page. However, I can not find any short codes that will help me on this.
I am open to suggestions and being pointed in the right direction. I would like to use BuddyPress on my site as other plug ins I intend to use work well with this, but having the black toolbar at the top making it blatantly obvious it is a wordpress site is making it a deal breaker for me.
I am sorry if this is making me sound entitled but I am working on an extremely tight budget and even tighter deadline, and my web developer messed me around giving me false hope of helping me out till I was about to start development. I’m running out of options. The only thing I can promise is to give praise to the BuddyPress community on my company website… When I get around to building it after I built this site.
Thank you for your time.