Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 13,226 through 13,250 (of 73,985 total)
  • Author
    Search Results
  • #258738
    tizianopitisci
    Participant

    I have made a test with no plugin activated exept buddypress, yet still have the issue…

    #258733
    kyla123
    Participant

    Can someone explain to me how to remove Active _ min/hrs ago from everyone’s member profiles, including mine as the Admin? I see that as an invasion of privacy. I’ve been researching this and it seems I would have to remove it by using/editing code. I don’t know much about that. From my admin dashboard, I know I can click on
    Plugins > Editor > Select plugin to edit: Buddypress
    Other than that, I am lost. There is a whole page of code along with other Plugin Files to choose from on the right-hand side.
    If someone could walk me through this in simple terms, I would greatly appreciate it.

    I have the Twenty Fourteen theme installed on my website, if that helps.

    Maniou
    Participant

    Hello,

    I would like to disable new Blog Comments recording/tracking from buddypress to wordpress but i want to keep blog post tracking. That’s why i’m not using the option in Dashboard->BuddyPress->Component setup. This option enable/disable both new Blog Comments and Blog post tracking.

    In a previous version of wordpress this code was ok :

    remove_action( ‘comment_post’, ‘bp_blogs_record_comment’, 10, 2 );
    remove_action( ‘wp_set_comment_status’, ‘bp_blogs_manage_comment’, 10, 2 );

    But thoses action are now deprecated.

    Can you explain me how to do that with the last version of buddypress ?

    Thank you !

    #258726
    ashlealanier
    Participant

    Currently we have a site using BuddyPress with Groups enabled. When a user is logged in, in the directory, they SHOULD see all groups that are Private or Public, but currently they are only able to see the groups in which they are members. Is this a known glitch, or do I have a setting off somewhere?

    Thanks!

    #258723
    ckchaudhary
    Participant

    If you are on latest version of buddypress( > 2.6 ), the following code will work:

    //hide setting nav in profile
    function w24dr_remove_settings_nav() {
        $bp = buddypress();
        $bp->members->nav->delete_nav( bp_get_settings_slug() );
    }
    add_action( 'bp_setup_nav', 'w24dr_remove_settings_nav' );
    
    //redirect settings to main profile page
    function w24dr_redirect_settings_nav(){
        if( bp_is_user() && bp_is_current_component( bp_get_settings_slug() ) ){
            wp_redirect( bp_displayed_user_domain() );
            exit();
        }
    }
    add_action( 'template_redirect', 'w24dr_redirect_settings_nav' );

    But it still doesn’t remove ‘settings’ nav from adminbar. You need to work some more to remove it from there.

    #258716

    In reply to: Sitewide Messaging

    tizianopitisci
    Participant

    Personally I use “Mass Messaging in BuddyPress” ( https://wordpress.org/plugins/mass-messaging-in-buddypress/other_notes/ ), It works quite fine, and It has some more featured than “Mass Messaging for BuddyPress – by Alkaweb”

    #258715

    In reply to: Sitewide Messaging

    Antonio
    Participant

    I know this is an old post, but I hope this reply can help someone.

    There is a free plugin that allow to send Mass Messaging to all members of the site, and also to filter them, you can find it here: https://wordpress.org/plugins/mass-messaging-for-buddypress-by-alkaweb/

    #258712
    #258708
    trecks
    Participant

    Brajesh,

    Thanks for the help! I followed your instructions and now have a copy of the register.php file in my theme/buddypress/members directory. I was able to successfully edit the paragraph content for the completed registration page as I wanted, however, there was no line in the register.php file where the heading text “Check Your Email To Activate Your Account!” was present. I searched around in the file structure of my theme folder and the buddypress plugin folder to see if I could find the text elsewhere, but to no avail. Do you have any idea what I might need to do to change the heading text?

    Regards,
    trecks

    amsakwp
    Participant

    Hello,

    I am having my site users register through a registration page setup with the Memberpress plugin. Registrants are required to submit first name, last name, username, email, and password. This information is used to fill out these items of the wp-admin/profile.php. While I would like to use the Memberpress registration form and page I would like for the buddypress profile page to remain the users’ main interface to their profile information and social activity. The problem though is that the default first name and last name fields of the Memberpress registration page don’t automatically propagate in the respective fields on the Buddypress profile page. Is there a way I can get these fields to draw from the entries for first name and last name already existing in the user databases (/wp-admin/user-edit.php) to auto-fill in the relevant fields of the Buddypress profile page? Currently after registration the last name field is empty and the first name field contains the username. Yes, the member can delete the username and enter both names again, but I’m trying to avoid this. They may wonder why they need to enter their first and last names twice. Does this make sense? I had assumed that whether registering through the Buddypress page or the Memberpress page the first name and last name would be stored in the same data table serve the same function.

    #258705
    Stacy (non coder)
    Participant

    My test user is still showing in the widget even though I deleted their profile from the front end.

    azdesertgator
    Participant

    Hello – I’m trying to figure out a way to limit what is shown in the activity stream, so that only content before the MORE tag is display. Is there a simple way to do this?

    (I want to do this because I am using another membership plugin that allow content restriction after the MORE tag; however Buddypress displays in the activity stream content after the more tag even to non-logged-in users. I’d like teaser content to appear before the MORE tag in both posts, and the activity stream).

    BP 2.6.2, WP 4.6.1, Genesis 2.3.1

    Thanks!
    Kelly

    #258699
    SrGato29
    Participant

    Buddypress Versión 2.6.1.1
    Wordpress Version 4.5.4

    Is there a way to eliminate or block the followings pages ???

    domain/members/username/settings/notifications/
    domain/members/username/settings/capabilities/
    domain/members/username/settings

    Because it is very important that users cant enter to those pages

    SrGato29
    Participant

    Buddypress Versión 2.6.1.1
    Wordpress Version 4.5.4

    My problem is that when 2 users begin a conversation using the buddypress messages component, the email goes to theirs emails, but if they press reply instead of going to the website, they send the message to the administrator, so How I can stop the reply to the admin? or maybe a way to stop the emails outside the website, so that way the only way that they can communicate is with buddypress.

    danbp
    Participant

    Hi,

    See first here and check this very old snippet (3 years). Untested.

    danbp
    Participant

    Hi!

    Yes, bp_activity_entry_meta is the correct hook.

    If you prefer to use JS, see an example here.

    #258691
    Jon Crowell
    Participant

    So I can’t get the sorting by LAST NAME to work. By default buddypress uses the display name on the members directory so I’m using this function to get it to display the xprofile data.

    function my_directory() {	
    if ( bp_is_active( 'xprofile' ) )
    
    	if ( $membername = xprofile_get_field_data( 'First Name', bp_get_member_user_id() ) . ' ' . xprofile_get_field_data( 'Last Name', bp_get_member_user_id() ) . ' ' . xprofile_get_field_data( 'Title', bp_get_member_user_id() ) ) :
    		echo '<div class="dir_name">';		
    		echo $membername;
    		echo '</div>';
    	endif;	
    
    }
    add_filter ( 'bp_member_name', 'my_directory' ); 

    But the function you provided above doesn’t sort by the xprofile data. Any help?

    Antonio
    Participant

    I created many custom notifications on my theme, such as notification on post comments, but after a post is commented and the notification is sent, the listing of posts and of other custom post types display a 404 page.

    This happens only on the listing page of posts, not on the single post pages.

    I really hope in an help.

    This is my code:

    add_action( 'bp_setup_globals', 'my_app_register_blog_notification' );
    
    /**
    * Register component
    */
    function my_app_register_blog_notification() {
    	// Register component manually into buddypress() singleton
    	buddypress()->my_app_blog = new stdClass;
    	// Add notification callback function
    	buddypress()->my_app_blog->notification_callback = 'my_app_blog_format_notifications';
    
    	// Now register components into active components array
    	buddypress()->active_components['my_app_blog'] = 1;
    }
    
    	
    
    /**
    * Format the notification content
    */
    function my_app_blog_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
    
    	if ( ! ('my_app_blog_like' === $action || 'my_app_blog_comment' === $action)) {
    		return $action;
    	}
    
    	$post_title = get_the_title( $item_id );
    
    	if ('my_app_blog_comment' === $action) {
    		$custom_title = sprintf( esc_html__( 'New comment received', 'my_app' ), $post_title );
    		$custom_link  = get_permalink( $item_id );
    		if ( (int) $total_items > 1 ) {
    			$custom_text  = sprintf( esc_html__( 'You received "%1$s" new comments', 'my_app' ), $total_items );
    			$custom_link = bp_get_notifications_permalink();
    		} else {
    			$custom_text  = sprintf( esc_html__( 'Your post "%1$s" received a new comment', 'my_app' ), $post_title );
    		}
    
    	}
    
    	// WordPress Toolbar
    	if ( 'string' === $format ) {
    		$message = (!empty($custom_link)) ? '<a href="' . esc_url( $custom_link ) . '" title="' . esc_attr( $custom_title ) . '">' . esc_html( $custom_text ) . '</a>' : $custom_text;
    		$return = apply_filters( 'my_app_wiki_like_format', $message, $custom_text, $custom_link );
    
    		// Deprecated BuddyBar
    	} else {
    		$return = apply_filters( 'my_app_wiki_like_format', array(
    			'text' => $custom_text,
    			'link' => $custom_link
    		), $custom_link, (int) $total_items, $custom_text, $custom_title );
    	}
    
    	return $return;
    
    }	
    
    add_action('comment_post','my_app_comment_notification',10,2);
    
    /*
    * Send the notification after comment inserting
    */
    function my_app_comment_notification($comment_id, $comment_approved) {
    
    	if( 1 === $comment_approved ){
    		$comment_object = get_comment($comment_id);
    		$post_type = get_post_type($comment_object->comment_post_ID);
    		$current_user_id = get_current_user_id();
    
    		if($post_type == 'post') {
    			$post_object = get_post($comment_object->comment_post_ID);
    
    			if(my_app_is_notification_enabled_blog_comment()) {
    
    				bp_notifications_add_notification( array(
    					'user_id'           => $post_object->post_author,
    					'item_id'           => $comment_object->comment_post_ID,
    					'secondary_item_id' => $current_user_id,
    					'component_name'    => 'my_app_blog',
    					'component_action'  => 'my_app_blog_comment',
    					'date_notified'     => bp_core_current_time(),
    					'is_new'            => 1,
    				) );
    			}
    
    		}
    
    	}
    }
    angeljs
    Participant

    I allow frontend publishing for my users, and was wondering if there was a way to add a link to their posts within their BuddyPress profile page?

    #258685
    Patrick
    Participant

    Hallo everyone,

    I have searched a lot true multiple forums and also here on buddypress. I’m trying to create my first plugin that ads a tab to the profile page with a bubble post count of user x account.

    I found some code that archieve to create the bubble but can’t get the count to work! I need to say im not a programmer so please forgive me for that and hope to learn something why it is not working.

    See the following code:

    function profile_tab_advertenties() {
        global $bp;
    	$count  =  count_user_posts( bp_displayed_user_id() , "post_type"  );
    	$class  = ( 0 === $count ) ? 'no-count' : 'count';
     
        bp_core_new_nav_item( array( 
    		'name' => sprintf( __( 'Advertenties <span class="%s">%s</span>', 'lang-domain' ), esc_attr( $class ), number_format_i18n( $count ) ), 
    		'slug' => 'advertenties', 
            	'screen_function' => 'advertenties_screen', 
            	'position' => 20,
    	    	'parent_url'      => bp_displayed_user_domain()  . '/advertenties/',
    	    	'parent_slug'     => $bp->profile->slug,
    	    	'default_subnav_slug' => 'advertenties'
          ) );
    }
    add_action( 'bp_setup_nav', 'profile_tab_advertenties' );

    I used the following code from @shanepb :

    $count  = // code that retrieves the count
    $class  = ( 0 === $count ) ? 'no-count' : 'count';
    
    bp_core_new_nav_item( array(
        'name'  =>  sprintf( __( 'Animals <span class="%s">%s</span>', 'lang-domain' ), esc_attr( $class ), number_format_i18n( $count ) ),
        // etc

    And added some code behind the $count = // code that retrieves the count.

    Are there any suggestions how i can make this to work!?

    If i do the following code inside a loop it’s working perfect and output the post count of the user.

    <?php echo 'Number of posts published by user: ' . count_user_posts( bp_displayed_user_id() , "post_type" ); ?>

    Thanks,
    Patrick

    #258684
    kmligue
    Participant

    @sbrajesh, thank you for your suggestion. It works. However, we do need to send rich HTML emails. Is there a way we can configure BuddyPress’ custom instance of PHP Mailer to use our SMTP server?

    #258681
    DamnDramaQueen
    Participant

    Hi Danbp,

    The members will register with buddypress, thinking that once registered, the member level will reflect to the buddypress member status.

    Ya, under [New User Default Role] is already set as subscriber!

    The area being shown is in the All Users > Profile , hmm, it must belongs to a member level plugin then, thought the buddypress registered users interact with the membership level once they registered.

    My bad, anyhow, thanks for your help and pointing out.

    #258680

    In reply to: activity primary key

    DamnDramaQueen
    Participant

    Hi Danbp,

    My bad, I saw that bp_activity so I was assuming something to do with buddypress (db). Well, it must be the security plugin that caused it from the beginning to deleted.

    btw, I’m have no idea about database, seems like you an expert in this field? If you like to make extra cash for help to fix it? Hit me up for a price?

    Thank you for pointing out.

    #258679
    Brajesh Singh
    Participant

    The problem is BuddyPress does not uses wp_mail.

    The plugin postman-smtp overrides the wp_mail function to send emails, so any emails sent via wp_mail is sent through the smtp settings provided.

    BuddyPress uses custom instance of PHP Mailer to send emails and that’s why these settings are not effective. You can force BuddyPress to use wp_mail by putting the following code in your bp-custom.php

    
    add_filter('bp_email_use_wp_mail', '__return_true');
    

    But in that case BuddyPress will only send text emails (Not the rich html emails you might have seen earlier).

    Hope that helps.

    #258678
    Brajesh Singh
    Participant

    Hi Trecks,
    It’s a good question.
    The page that you see being loaded is actually register.php template file.

    Are you using a child theme? If yes, then look for buddypress/members/register.php in the child/parent theme and copy it to your child theme in buddypress/members/register.php and modify the text as required.

    If your theme does not come with it, you can copy the register.php from wp-content/plugins/buddypress/bp-templates/bp-legacy/members/register.php to yourtheme/buddypress/members/register.php and modify it.

    All we are doing here is overriding the registration template.

    Hope that helps.

    Regards
    Brajesh

Viewing 25 results - 13,226 through 13,250 (of 73,985 total)
Skip to toolbar