Search Results for 'buddypress'
-
Search Results
-
Topic: BuddyPress Message Template.
I was wondering if anyone has had this issue and been able to resolve it? Paid Membership Pro wont restrict the ‘member’ and ‘group’ page from buddy press.
I’ve built test pages to check that i can use PMPRO to restrict subscribers and Members to certain content and all works fine. As soon as i use the same options on the buddypress ‘Member’ or ‘Group’ pages there is no restriction?
I’ve reinstalled both plugins to check it wasnt a plugin issue also tried redirecting through another page with no luck.
Anyone able to help? Maybe some code i need to insert or change to allow PMPRO to restrict viewing/accessing the BP content and redirect to the PMPRO registration Page?
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-beta1I’m attempting to figure out how to create a custom dynamic link to the users wall e.g.:
http://domain.com/buddies/%username%/activityI need WP/buddypress to insert the user name of the end-user into the link %username% but I haven’t found a solution yet even though i searched a lot on the issue.
It should be a straightforward link like the example above, so no widgets etc.. 😀
So what is the solution to crack this nut? Anyone got an idea?
Thanks a bunch! 😉
On 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.
HELLO. This continuation resolved topic
https://buddypress.org/support/topic/user-page-tab-with-a-link-to-another-site/And how to do add two and for links? Copy the code a second time with a new link gives error.
thank you in advance.I installed this plugin Friday night and it was working okay this weekend. I also installed the “Simple Privacy” plugin that goes with Buddypress and I wish there were more customization options there. I wanted to keep the “Register ” and “ACtivate” pages public but there was no option to select pages. Now all Buddypress re-directs to my homepage!
***PLEASE HELP***
Hello,
Is there a way to make cover-image-header.php and home.php to appear before main content(theme’s sidebars and buddypress content) in Member’s single page?
Thank you!!