Search Results for 'wordpress'
-
Search Results
-
Hi,
I want to hide the entire Base Profile Field Group on my site.
I have followed the steps outlined by @shanebp in this topic &, while the Base Profile Fields have been hidden, the tab for the Group is still visible.
I have posted a screenshot of the issue here.
I want just the profile group ‘user info’ to be visible & editable.
I’m using the Kleo theme – version 4.1.5, WordPress 4.6.1.
I’d greatly appreciate some help.
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 !
I posted up on this a little while ago, and danbp was a boss and helped me out, and I thought I could get it to work, but the end fix ended up unfortunately not really fixing the problem.
I’m having difficulty with a profile tab that is supposed to link to a separate forums profile (wpForo) via a dynamic link that recognizes the displayed user’s page. danbp set me up with something like the below, I changed a bit to make it work better…
function tab_custom_link_to_page() { if ( bp_is_page( 'BP_MEMBERS' ) || bp_is_activity_component() || bp_is_profile_component () || bp_is_groups_component () || bp_is_notifications_component () || bp_is_messages_component () || bp_is_settings_component () || bp_is_following_component () || bp_is_followers_component () ) { $link = bp_get_root_domain() . '/community/profile/'. bp_get_displayed_user_username(); echo '<li><a href="'. $link .'">Community</a></li>'; } } add_action( 'bp_member_options_nav', 'tab_custom_link_to_page', 10 );but I couldnt change the location of the tab, using code or BuddyBoss Reorder Tabs plugin, which is an issue because the theme I’m using (BuddyBoss Boss.) hides the tabs at the end under a clickable “…”. I spoke to someone at BuddyBoss and they told me I wouldn’t be able to move the tab unless it was registered as a “bp_core_new_nav_item( array(“, which requires an array like:
function add_communityprofile_tab() { global $bp; bp_core_new_nav_item( array( 'name' => 'Community', 'slug' => 'community', 'parent_url' => $bp->displayed_user->domain, 'parent_slug' => $bp->profile->slug, 'position' => 200, 'default_subnav_slug' => 'community' ) ); } add_action( 'bp_setup_nav', 'add_communityprofile_tab', 100 );which works fine until I have to link it, apparently I can’t use the tab array/slug thing to reach a dynamic link without the same “$bp->displayed_user->domain”. The link I’m trying to reach is currently at:
http://localhost/wordpress/community/profile/*displayeduser*/
from:
http://localhost/wordpress/users/*displayeduser*/
If nobody has any helpful suggestions otherwise, I’m thinking the best route might be to have the page
http://localhost/wordpress/users/*displayeduser*/community/
redirect to
http://localhost/wordpress/community/profile/*displayeduser*/
via a dynamic redirect…I’m trying to figure out how to do that.
If anyone has any helpful advice it would be super appreciated. My boss wants me to take the site live this week and I think I’m just about there…aside from this huge disconnect between the two separate user profiles…not too bad for someone who has barely any idea what they’re doing. but yeah, sorry for the super long post. thanks for reading and hopefully you can throw me a line.
– Andrew
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
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.
Running WordPress 4.6.1, Buddypress 2.6.2.
As the topic mentions, how can I segregate content by a specific user is a group?
More elaborate explanation:
In a group, there are multiple members posting, commenting, replying, etc.
I want to see inputs (could be posts, comments or replies) of a particular user.
How do I do that?
I’m going to break this down as simple as possible, because it’s a little nuts. Using the latest versions of WordPress and BuddyPress, no other plugins unless otherwise mentioned. Default WP theme.
1. Go ahead and register a BuddyPress member type in bp-custom.php like so:
https://gist.github.com/dimensionmedia/c49347c8e24f00f43450b37506b4e0092. Go into your WordPress backend -> users -> extended tab. Assign a user to that member type.
3. Now place this code at the end of functions.php, using the $user_id of the user from #2:
$user_id = 7;
$member_type = bp_get_member_type( $user_id );
echo $member_type; exit;Note this is crude but making it as simple as possible.
Now you won’t get back anything, no matter what you assign the user to as far as user type. The bp_get_member_types() works though. When I attempt to trace through bp_get_member_type back to wp_get_object_terms I get a WP_ERROR of “Invalid Taxonomy”, apparently the $wp_taxonomies doesn’t contain “bp_member_type”.
Please the same code in a front-end template like header.php and this works.
So while i can use the function in templates, i can’t in my plugins (or functions.php).
I’ve used bp_get_member_type() before – in a plugin – and didn’t run into problems. Trying to figure out what i’m missing. Probably something simple.
Topic: Updated WordPress
I recently updated WordPress and now Buddypress will not work on my site. Will there be updates soon for WordPress higher than 4.5.4? If not, any suggestions? I need this working
Hello,
Is there a way to add a link in User’s profile or in wp-admin topbar that would transfer me to user’s profile backend? What I am doing now is copy paste user’s name in wordpress dashboard but it’s not very easy for a website with a lot of users.
Thank you!!
My install has stopped sending any emails out for new user activation.
I can receive emails sent by WordPress after a user is manually activated, and can receive any email from Postman SMTP, as these test emails work.I don’t use any other activity markers, but emails were not received when messages were sent either.
I have tried all of the listed troubleshooting steps that others have gone through before.
I have a custom function that creates a post for the user during the registration process. I have removed all custom functions and tried registering a user, and it still will not send any emails.
As BuddyPress uses it’s own PHP Mailer, I am not able to log them via any WP Mail logging tools, and want to see what might be going on here.
The problem reared its head around the time I upgraded to 2.6 (although the custom function during registration was also added at this time) as wellI have reset the emails multiple times, and I have not made any changes to them.
Could someone please provide assistance, or given me a suggestion on how to run the BP Email Debug code to get an email of any issues
Host is Bluehost
Here is my install, and plugin list
WordPress 4.5.4
BuddyPress 2.6.2
Advanced Custom Fields 4.4.10
Akismet 3.1.11 (inactive)
BackWPuP 3.3.4
BP Force Profile Photo 1.0.5
BP Member Type Manager 1.0.1 (inactive)
BP xProfile Location 1.2
BP XProfile WordPress User Sync 0.6.4
Broken Link Checker 1.11.2
Buddy Progress Bar 1.0.2
BuddyPress Conditional Field Groups 0.1.0
Buddypress Conditional Profile Field 2.0
Buddypress Geodirectory Integration 1.0.0 (inactive)
BuddyPress Member Type Generator 1.0.2
BuddyPress Profile Tabs 1.6.1
BuddyPress Security Check 2.1.2
BuddyPress Simple Terms And Conditions 1.3
BuddyPress Xprofile Custom Fields Type 2.5
BuddyPress Xprofile Member Type Field 1.0.4
Cherry Parallax Plugin 1.0.0 (for my theme)
Cherry Plugin 1.2.8.1 (for my theme)
Conditional Profile Fields for BuddyPress 1.1.9
Contact Form 7 4.5
Contact Form 7 – Dynamic Text Extension 2.0.1
Custom Hooks 1.0 (All my custom functions are in this plugin)
Custom Login 3.2.5
Custom Post Template By Templatic 1.0
Custom Post Type UI 1.4.1
Disable Comments 1.5.2
Display Posts Shortcode 2.7.0
Easy Parallax Slider 2.1.1
FacetWP 2.6.4
GEO my WP 2.6.6.1
GeoDirectory 1.6.5 (inactive)
Hello Dolly .1.6 (inactive)
MOJO Marketplace 1.0.1 (inactive)
MotoPress Content Editor Lite 1.6.5 (inactive)
Quick and Easy FAQs 1.0.3
SuitePlugins – Advanced XProfile Fields for BuddyPress 1.0.3
Super Socializer 7.8.1
WP Private Content Plus 1.11
WPFront User Role Editor 2.12.4
Yoast SEO 3.5