Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 11,176 through 11,200 (of 73,371 total)
  • Author
    Search Results
  • #263973
    john.horning
    Participant

    We discussed it here: https://buddypress.org/support/topic/dont-hide-fields-when-user-views-his-own-profile/, but I got stuck. Maybe I’ll revisit.

    #263966
    Slava Abakumov
    Moderator

    Try getting the latest version of Kleo theme from themeforest.net. I’m pretty sure this is a theme issue, as BuddyPress itself is quite good in most places performance-wise.

    As a general suggestion – activate object caching (memcached or redis) – you will need to talk to your host if you are on a shared/managed hosting, or install everything by yourself if on VPS/VDS/own server. Object caching will greatly help, believe me or not.

    #263962
    EMRETHEAVIATOR
    Participant

    Hi. Great to hear BuddyPress 2.8. I use mesocolumn theme. When I upgraded to 2.8.0 all activities and buddypress sidebar widgets are lost. So I have to use older version. Is it possible to fix this problem?

    #263961
    Brajesh Singh
    Participant

    You may use

    
    bp_activity_post_update( array(
    'content'=> 'Something we wanted to say',
    'user_id'=> 32,//example, please change it
    ) );
    
    

    Please take a look at this

    https://github.com/buddypress/BuddyPress/blob/master/src/bp-activity/bp-activity-functions.php#L1938

    Hope that helps.

    #263959
    sixthgalaxy
    Participant

    Can you please tell me which buddypress API should I use to post automatically in the activity stream using a specific user account?

    #263958
    blondelovic
    Participant

    When i say the site beces slow it is especially for thz buddypress part. I Can’t publish easily a picture or even like. It takes tremendous time.

    #263957
    blondelovic
    Participant

    I’m using kleo theme. When i uninstall all plugins, i have my site running at it full speed. Very fast.but once i activate buddypress, the request or the site becomes slow just for logged in users. I dont understand.

    #263954
    samurdhilbk
    Participant

    Is it possibility to disable the profile visibility levels feature? I want to disable the entire feature so users don’t have any access controls.

    WordPress version – 4.7.2
    BuddyPress version – 2.7.4

    #263946
    daveptd
    Participant

    Hello all. I have just setup BuddyPress and I’m having some issues with the Profile section. It will allow me to add a profile image and cover image. But when i go back to the profile page they are still showing as the grey avatar and the grey cover image.

    I have looked for a save button to see if I am missing anything simple, but i can’t find a solution.

    Please help

    #263940
    kodacollider
    Participant

    Trying to take a look at the template file. Found it at: /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/assets/_attachments/cover-images/index.php

    In that file, I see the code:

    <script id="tmpl-bp-cover-image-delete" type="text/html">
    	<# if ( 'user' === data.object ) { #>
    		<p><?php _e( "If you'd like to delete your current cover image but not upload a new one, please use the delete Cover Image button.", 'buddypress' ); ?></p>
    		<p><a class="button edit" id="bp-delete-cover-image" href="#"><?php esc_html_e( 'Delete My Cover Image', 'buddypress' ); ?></a></p>
    	<# } else if ( 'group' === data.object ) { #>
    		<p><?php _e( "If you'd like to remove the existing group cover image but not upload a new one, please use the delete group cover image button.", 'buddypress' ); ?></p>
    		<p><a class="button edit" id="bp-delete-cover-image" href="#"><?php esc_html_e( 'Delete Group Cover Image', 'buddypress' ); ?></a></p>
    	<# } else { #>
    		<?php do_action( 'bp_attachments_cover_image_delete_template' ); ?>
    	<# } #>
    </script>

    However, on my site itself, the source comes out missing the script tag, and the angle brackets are in the form of lt; gt; etc.

    Any ideas? Could use some help on this.

    #263938
    Bunty
    Participant

    replace line number 31 with this

    printf( __( "What's new?", 'buddypress' ) );

    #263935
    livingflame
    Participant

    Hi there!

    I have this code —-> But this code does not work anymore with BuddyPress 2.8

    // Hide admin's activities from all activity feeds
    function bpfr_hide_admin_activity( $a, $activities ) {	
    	
    	// ... but allow admin to see his activities!
    	if ( is_site_admin() )	
    		return $activities;	
    	
    	foreach ( $activities->activities as $key => $activity ) {	
    		// ID's to exclude, separated by commas. ID 1 is always the superadmin
    		if ( $activity->user_id == 1  ) {			
    			
    			unset( $activities->activities[$key] );			
    			
    			$activities->activity_count = $activities->activity_count-1;			
    			$activities->total_activity_count = $activities->total_activity_count-1;			
    					$activities->pag_num = $activities->pag_num -1;				
    		}		
    	}
    	
    	// Renumber the array keys to account for missing items 	
    	$activities_new = array_values( $activities->activities );		
    	$activities->activities = $activities_new;	
    	
    	return $activities;
    	
    }
    add_action( 'bp_has_activities', 'bpfr_hide_admin_activity', 10, 2 );

    And, I have other code, but this only hide admin from Directories and Bp Widgets.

    // Exclude Admins from Directories and BP Widgets 
    add_filter( 'bp_after_has_members_parse_args', 'buddydev_exclude_users' );
     
    function buddydev_exclude_users( $args ) {
        //do not exclude in admin
        if( is_admin() && ! defined( 'DOING_AJAX' ) ) {
            return $args;
        }
        $excluded = isset( $args['exclude'] )? $args['exclude'] : array();
        if( !is_array( $excluded ) ) {
            $excluded = explode(',', $excluded );
        }
        $user_ids = array( 1, ); // enter user ids here
        $excluded = array_merge( $excluded, $user_ids );
        $args['exclude'] = $excluded;
        return $args;
    }
    jaynation
    Participant

    Good Afternoon All,

    Thanks in advance for any support…it’s much appreciated this is an amazing piece of software. I am using BuddyPress with S2Member free version and can’t seem to fix this tricky issue.

    Site: studentmotorsport.com
    Wordpress Version: 4.7.2
    Site Template: MSocial
    BuddyPress Ver: 2.8.0

    My website uses PayPal buttons set via S2 member at 4 levels of paid membership 1-4…I have set Open Registration to NO in S2 Mmeber as I am not offering any free users.

    Problem 1 Open Registration NO: After Payment via PayPal the user is directed to ‘Create an account’, after completion the message presented says ‘User registration is currently not allowed’. Here a user has been recorded by WordPress and user emailed activation link. Can the message presented be changed or user redirected to my welcome page?

    Problem 2 Open Registration YES: After Payment via PayPal the user is directed to ‘Create an account’, after completion the message presented says ‘Check you email to activate your account’. I check my email and have been sent an an ‘activation email’, after selecting the message presented says: Invalid Activation key. In this instance if I set ‘Open Registration to Yes’ each paying member is allocated as a free subscriber in WordPress and I have to manually edit each user to the correct paid level.

    Problem 3: Whether Open Registration is set to YES or No I check my email and have been sent an an ‘activation email’, after selecting the message presented says: Invalid Activation key.

    Any help would be appreciated.

    With regards

    JP

    #263932
    Bunty
    Participant

    If you have latest version of buddypress then you can do from your FTP. Ask you server administrator to do so.

    kodacollider
    Participant

    So after uploading a cover photo, or when viewing the ‘change cover photo’ tab of a users profile, the bottom portion of the page looks like this:

    This is the stock template file as far as I know. Any idea what’s going on here?

    Thanks.

    #263929
    tvt
    Participant

    I understand.Why my buddypress don’t have file: \buddypress\bp-templates\bp-legacy\buddypress\activity\post-form.php?Please tell me your opinion.

    #263928
    blondelovic
    Participant

    My buddypress site is very slow for logged-in users. what i mean by slow is that it take like 10-20s for one user to publish for example a simple picture on his activity timeline. I need help to solve this issue

    #263927

    In reply to: WP V 4.7.2

    shanebp
    Moderator
    #263924
    Bee-Sting
    Participant

    I can’t seem to get the Login button to appear on my site. I’ve been trying repeatedly and it won’t engage, and yes, I’ve gone to Settings> BuddyPress> Options> Main Settings> Toolbar> and ticked the Show the Toolbar for logged out users option.

    Still nothing. Arrrrrrrrgh! CRSforums.com

    #263923
    leewells
    Participant

    Thanks Shane! I’ll give this a shot when I get back to home this evening and let you guys know how it works out. I’m afraid the little profile I made doesn’t do any sorts of compares, it just lets me know if it is loaded before or after certain other hooks like init, the_content and such.. I’ll have to reopen that and add bp_load and get a better idea of where it loads to buddypress though.

    My I make a request, though, developer to developer 😛 This seems to have broken a lot of plugins and I like to say I follow the methods of WordPress to the letter without getting hacky :P. If changes like this are made, can we still preserve a method of backward compatibility? The profile info, for instance shouldn’t matter much when it loads, so long as the BP class is loaded, which means, I guess what I’m saying is I’m drawing a blank to what it would be that would require the xprofile fields to be dropped to such a low load order that it doesn’t initialize with the plugin class init.

    #263921
    shanebp
    Moderator

    Does the profiler show that BP is loaded before you call your function?
    If not, then it will fail.

    Try placing your function in bp-custom.php

    #263916
    mw93
    Participant

    Hello, I’m currently using a plugin to show the activity-stream on my home page. I want that if users place an update it always shows up in the stream. Problem is that if i attach an image, it will not show up. Here is the plugin’s code:

    <?php
    
    /**
     * Plugin Name: BuddyPress Activity ShortCode
     * Description: Embed activity stream in page/post using shortcode
     * Author: BuddyDev
     * Plugin URI: https://buddydev.com/plugins/bp-activity-shortcode/
     * Author URI: https://buddydev.com/
     * Version: 1.0.8
     * License: GPL
     */
    
    // exit if access directly
    if ( ! defined( 'ABSPATH' ) ) {
    	exit;
    }
    
    class BD_Activity_Stream_Shortcodes_Helper {
    
    	private static $instance;
    
    	private function __construct() {
    		$this->register_shortcodes();
    	}
    
    	/*
    	 * Register ShortCode
    	 *
    	 * @example [activity-stream display_comments=threaded|none title=somethimg per_page=something]
    	 */
    	private function register_shortcodes() {
    		add_shortcode( 'activity-stream', array( $this, 'generate_activity_stream' ) );
    	}
    
    	/**
    	 * Get Instance
    	 *
    	 * @return BD_Activity_Stream_Shortcodes_Helper
    	 */
    	public static function get_instance() {
    
    		if ( ! isset( self::$instance ) ) {
    			self::$instance = new self();
    		}
    
    		return self::$instance;
    	}
    
    	public function generate_activity_stream( $atts, $content = null ) {
    
    		//allow to use all those args awesome!
    		$atts = shortcode_atts( array(
    			'title'            => 'Updates van Leden',//title of the section
    			'pagination'       => 1,//show or not
    			'load_more'        => 0,
    			'display_comments' => 'threaded',
    			'include'          => false,     // pass an activity_id or string of IDs comma-separated
    			'exclude'          => false,     // pass an activity_id or string of IDs comma-separated
    			'in'               => false,     // comma-separated list or array of activity IDs among which to search
    			'sort'             => 'DESC',    // sort DESC or ASC
    			'page'             => 1,         // which page to load
    			'per_page'         => 6,         //how many per page
    			'max'              => false,     // max number to return
    			'count_total'      => true,
    
    			// Scope - pre-built activity filters for a user (friends/groups/favorites/mentions)
    			'scope'            => false,
    
    			// Filtering
    			'user_id'          => false,    // user_id to filter on
    			'object'           => false,    // object to filter on e.g. groups, profile, status, friends
    			'action'           => activity_update,    // action to filter on e.g. activity_update, new_forum_post, profile_updated
    			'primary_id'       => false,    // object ID to filter on e.g. a group_id or forum_id or blog_id etc.
    			'secondary_id'     => false,    // secondary object ID to filter on e.g. a post_id
    
    			// Searching
    			'search_terms'     => false,         // specify terms to search on
    			'use_compat'       => bp_use_theme_compat_with_current_theme(),
    			'allow_posting'    => false,    //experimental, some of the themes may not support it.
    			'container_class'  => 'activity',//default container,
    			'hide_on_activity' => 1,//hide on user and group activity pages
    		), $atts );
    
    		//hide on user activity, activity directory and group activity
    		if ( $atts['hide_on_activity'] && ( function_exists( 'bp_is_activity_component' ) && bp_is_activity_component() ||
    		       function_exists( 'bp_is_group_home' ) && bp_is_group_home() ) ) {
    			return '';
    		}
    
    		//start buffering
    		ob_start();
    		?>
    
    		<?php if ( $atts['use_compat'] ) : ?>
    			<div id="buddypress">
    		<?php endif; ?>
    
    			<?php if ( $atts['title'] ) : ?>
    				<h3 class="activity-shortcode-title"><?php echo $atts['title']; ?></h3><hr color="#000000">
    			<?php endif; ?>
    
    			<?php do_action( 'bp_before_activity_loop' ); ?>
    
    			<?php if ( $atts['allow_posting'] && is_user_logged_in() ) : ?>
    				<?php bp_locate_template( array( 'activity/post-form.php' ), true ); ?>
    			<?php endif; ?>
    
    			<?php if ( bp_has_activities( $atts ) ) : ?>
    
    				<div class="<?php echo esc_attr( $atts['container_class'] ); ?> <?php if ( ! $atts['display_comments'] ) : ?> hide-activity-comments<?php endif; ?> shortcode-activity-stream">
    
    					<?php if ( empty( $_POST['page'] ) ) : ?>
    						<ul id="activity-stream" class="activity-list item-list">
    					<?php endif; ?>
    
    							<?php while ( bp_activities() ) : bp_the_activity(); ?>
    								<?php bp_get_template_part( 'activity/entry' ); ?>
    							<?php endwhile; ?>
    
    							<?php if ( $atts['load_more'] && bp_activity_has_more_items() ) : ?>
    								<li class="load-more">
    									<a href="<?php bp_activity_load_more_link() ?>"><?php _e( 'Load More', 'buddypress' ); ?></a>
    								</li>
    							<?php endif; ?>
    
    					<?php if ( empty( $_POST['page'] ) ) : ?>
    						</ul>
    					<?php endif; ?>
    
    					<?php if ( $atts['pagination'] && ! $atts['load_more'] ) : ?>
    						<div class="pagination">
    							<div class="pag-count"><?php bp_activity_pagination_count(); ?></div>
    							<div class="pagination-links"><?php bp_activity_pagination_links(); ?></div>
    						</div>
    					<?php endif; ?>
    
    				</div>
    
    			<?php else : ?>
    				<div id="message" class="info">
    					<p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p>
    				</div>
    			<?php endif; ?>
    
    			<?php do_action( 'bp_after_activity_loop' ); ?>
    
    			<form action="" name="activity-loop-form" id="activity-loop-form" method="post">
    				<?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?>
    			</form>
    
    		<?php if ( $atts['use_compat'] ) : ?>
    			</div>
    		<?php endif; ?>
    
    		<?php
    
    		$output = ob_get_clean();
    
    		return $output;
    	}
    }
    BD_Activity_Stream_Shortcodes_Helper::get_instance();
    
    #263913
    Bunty
    Participant

    file: \buddypress\bp-templates\bp-legacy\buddypress\activity\post-form.php

    remove line no: 30 and 31

    #263909
    Bunty
    Participant

    You can do that by commenting two lines ( 30 and 31 ) from \buddypress\bp-templates\bp-legacy\buddypress\activity\post-form.php

    #263907
    leewells
    Participant

    Nope. The hook does work, because profiler says the function is called later now, but the function still doesn’t seem to exist and throws the undefined function exception.

    Also, other plugins do as well including gears which is used by theme authors such as myself for allowing users to easily add elements to a website from buddypress.

Viewing 25 results - 11,176 through 11,200 (of 73,371 total)
Skip to toolbar