Search Results for 'buddypress'
-
Search Results
-
Topic: question about compatiblity
Hello ,i like to ask why buddypress and bbpress bothe are not compatible with wordpress 4.6.1 (the latest version ) because with wp 4.6.1 many bugs are fixed , so i look to buddypress plugin require 4.5.4 !
Topic: BuddyPress Message Template.
Topic: the_ID = 0
Hello everybody,
I am contributing to Advanced Ads, an ad management plugin, and we recently had a customer who wanted to inject an ad only into the group page. We already did have a solution implemented for displaying ads only on certain pages, however, it did not work for BuddyPress generated pages. When we had a closer look at it, we realized that it did not work simply because of the fact that the id of the page got altered to 0 when BuddyPress was using it.
When a page is loaded, we check if there are any ads that should be displayed by comparing the current pages ID to the IDs of the content specified by the display conditions the user has set. This does not work for the reason mentioned above.
Is there a workaround for this issue and if there is none, what is the reason for this behavior?
WordPress: 4.6.1
BuddyPress: 2.6.2, 2.7-beta1On my site I have a members directory tab. Users can enter a search term in the Search Members… field to find those members with the search term.
However, I am seeing occasional false positives, i.e. a member is being returned who does not have the search term. For example, if you search on south, the last user listed Paul does not have south anywhere in his profile.
I have tried switching to a standard theme Twenty Sixteen – no different. I have removed all plugins except BuddyPress and still the same. I have combed the errant profile using the backend and cannot find the string anywhere.
NB1 Some of the extended profile fields on this site are not publicly visible. I know that the search finds profiles regardless of permissions but it then displays the profile without the private information. But, in the instances I am seeing, the found term does not exist at all – at least I cannot find it as admin looking in the user’s profile in the backend.
Any suggestions, anyone?
NB2. My test site has several plugins that might cause this issue, but I have demonstrated it to be present with only BuddyPress active.
WordPress 4.6.1; BuddyPress 2.6.2; bbPress 2.5.10
We’re working on a new project where someone (shopper) needs to add one or more BuddyPress users (contractors) to the cart. I’m not sure how to explain this, but here goes…
In other words, a ‘shopper’ has a project they need worked on (they need to be able to add details about their project, and the work they need done)… Then, they would browse through profiles on the site, and add a ‘BuddyPress user/profile’ (contractor) to their cart (related to a particular project), checkout, etc. The BuddyPress users (contractors) are responsible for completing the work that the ‘shopper’ needs done.
The difference between this model and other models, is that multiple contractors can be working on the exact same project for a single shopper’s project. Also, the costs are a little simpler than most models… Each ‘engagement’ is a fixed price and a fixed amount of work. If you want multiple contractors to be working on it at the same time, that is just another (more expensive) fixed price or package.
Example:
As a shopper: I visit the site, create a new project with details, and then browse through the profiles of users in BuddyPress… find one(s) that I would like to complete my project… and add that user to the cart like a product.
The contractor(s) then gets the details of the project and can accept or reject working on the project (they probably need to accept or reject before the ‘shopper’ is charged. Once the project work is complete, the contractor sends it back to the ‘shopper’ as digital files.
This model is very close to picking a designer or coder for a project, with the exception that multiple people can be chosen to perform the same work. Projects are not hourly, they are fixed in price.
Anyone have any experience, developers, plugins, sites, etc. that are similar to this?
Thanks,
THi everyone,
I use classiads theme.
The user can register and insert profile picture.
But i also use buddypress which it have is own profile picture.I would have that :
when the user change his profile picture theme, it also change his profile picture buddypress (to have the same in the two cases).Someone could give me the buddypress function to do this?
(i already search but i didn’t find it)Thanks in advance,
Kniool
Topic: Group Types option display
i need some advice or help about the following function. (i use BP 2.7 RC2)
While it display correctly a list of all typed groups, i want also that all different types stays together.
The list is sorting by alphatetical order group names as expected, but it seems more logic to get such a list sorted by types first – as we use a cutom group directory filter “by types”
To be clear, what i expect it this when i click on Order by: Types
Type A
– group 1
– group 2Type B
– group 1 (has 2 types allocated)
– group 3
– group 4Type C
…
and so on.I’m unable to add any array sort (or better i don’t know how to write the correct one) for this. I also haven’t found a BP filter (if exist)…
If somebody could tell me how to achieve this, it would be great ! (@boonebgorges, @r-a-y, @ ….)
// add a filter option on group directory function bpex_group_order_options() { if( bp_is_active( 'groups' ) && bp_is_groups_directory() ) { ?> <option value="gtype"><?php _e( 'Types', 'buddypress' ); ?></option> <?php } } add_action( 'bp_groups_directory_order_options', 'bpex_group_order_options' ); // my problem is with this function: //ajax query for group types function bpex_group_types_filter_ajax_querystring( $querystring = '', $object = '' ) { if( $object != 'groups' ) return $querystring; $defaults = array('type' => 'active' ); $bpex_querystring = wp_parse_args( $querystring, $defaults ); if( $bpex_querystring['type'] != 'gtype' ) return $querystring; // query types $q_types = bp_groups_get_group_types(); $bpex_querystring = array( 'group_type' => $q_types ); $bpex_querystring['type'] = 'alphabetical'; return apply_filters( 'bpex_gtq_filter_ajax_querystring', $bpex_querystring, $querystring ); } add_filter( 'bp_ajax_querystring', 'bpex_group_types_filter_ajax_querystring', 20, 2 );For those interested by extending their group directory for types, i wrote a tutorial (in french) with all snippets to get a tab for each type, displayable on the main group nav or on the new group type nav bar.
If you use the tabed types display, you don’t really need a the filter option to check only for typed groups. But if you don’t want tabs more tabs, by lack place or whatever, you may want to access them via the group directory filter.
I am going to create a new custom notification for a user that if someone mention the user in any review with @, the related user will get a email and a new notification has been generated, this notification I created dynamically, but I get empty message showing on user profile notification area, I checked the db_table for notification as well it has proper entries as well,
$description = apply_filters_ref_array( 'bp_notifications_get_notifications_for_user', array( $notification->component_action, $notification->item_id, $notification->secondary_item_id, 1, 'string', $notification->component_action, $notification->component_name, $notification->id ) );In the above line I found that ‘bp_notifications_get_notifications_for_user’ filter return me the empty description of my notification from line no 523 in function “bp_get_the_notification_description” of file buddypress/bp-notifications/bp-notifications-template.php
Below is my custom code for generate notification:
//add new notification mention_in_comment function mention_in_comment_filter_notifications_publish_post_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, 'mention_in_comment' ); // Return component's with 'custom' appended return $component_names; } add_filter( 'bp_notifications_get_registered_components', 'mention_in_comment_filter_notifications_publish_post_get_registered_components' ); //show new notification text function bp_mention_in_comment_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { // New custom notifications if ( 'mention_in_comment_action' === $action ) { $comment_info = get_comment( $item_id ); $author_name = ($comment_info->user_id) ? get_the_author_meta( 'display_name', $comment_info->user_id ) : $comment_info->comment_author; $custom_title = $author_name. ' mentioned you in a new comment on '.get_the_title($comment_info->comment_post_ID); $custom_link = get_comment_link( $comment_info->comment_ID ); $custom_text = $author_name. ' mentioned you in a new comment: <br/>' . $comment_info->comment_content; // WordPress Toolbar if ( 'string' === $format ) { $return = apply_filters( 'mention_in_comment_filter', '' . esc_html( $custom_text ) . '', $custom_text, $custom_link ); // Deprecated BuddyBar } else { $return = apply_filters( 'mention_in_comment_filter', array( 'text' => $custom_text, 'link' => $custom_link ), $custom_link, (int) $total_items, $custom_text, $custom_title ); } //var_dump($return); return "Just say hello."; } } add_filter( 'bp_notifications_get_notifications_for_user', 'bp_mention_in_comment_format_buddypress_notifications', 1, 5 ); //add notification to the mentioned user $notification = bp_notifications_add_notification( array( 'user_id' => $user_id, 'item_id' => $comment->comment_ID, 'secondary_item_id' => $user_id, 'component_name' => 'mention_in_comment', 'component_action' => 'mention_in_comment_action', 'date_notified' => bp_core_current_time(), 'is_new' => 1) );Could you please let me knwo what is wrong with my code or something else, how can more debug and solve this.