Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 16,901 through 16,925 (of 68,918 total)
  • Author
    Search Results
  • #181197
    Henry Wright
    Moderator

    Hi @vikashwordpress

    I just want to know that where is the actual add_action(…) and the function for this action is written, i have searched lot of files in buddypress but could not get it? can any one help ?

    Which tag are you referring to? You mention do_action(“…”) in your question but this doesn’t tell us the tag. Perhaps see here for info on the do_action hook: https://codex.wordpress.org/Function_Reference/do_action

    #181193
    Asynaptic
    Participant

    a couple of things:

    • here’s the codex page for customizing the permalink for members or any other component like it:
      https://buddypress.org/2009/05/customizable-slugs-in-buddypress/
    • while it may not be buddypress’s fault if there was a conflict with a plugin (cubepoints), I would suggest considering moving from cubepoints to myCRED which has a newer code base, support and extensive documentation (mycred.me)

    maybe someone else can chime in on the activity update ‘bug’ that you mentioned

    streetcoder
    Participant

    really interesting, not working, I tried in two buddypress site to rid of the confusion. But no effect at all.

    #181183
    DJsix
    Participant

    Still doesn’t work.

    I have searched through at least 100 themes, and I’ve found two that show comments to people who aren’t logged in: x2 and Custom Community. Both of these themes appear to be made by the same person, and I really don’t care for either of these themes.

    I would like to use Twenty Fourteen, and I have not been able to find anyone using this theme, who is also having this problem.

    Also, the plugin BuddyPress Sitewide Activity shows all comments to people who are not logged in, but I don’t want that in my sidebar, and it doesn’t solve the groups problem.

    If it is a problem with WordPress being in a subfolder, what would allow these two themes and the plugin to still work?

    #181172

    What you’re asking for is something we used to call “Multiblog Mode” back in the day. It’s not a popular configuration, because it’s usually pretty confusing to users.

    You can enable it a few different ways:

    • define( 'BP_ENABLE_MULTIBLOG', true ); in your wp-config.php
    • add_filter( 'bp_is_multiblog_mode', '__return_true' ); in an mu-plugin

    There’s not a ton of documentation about multiblog, but it will make BuddyPress behave like you’re looking for it to.

    #181157
    @mercime
    Participant
    godavid33
    Participant

    I believe the above doesn’t work correctly because I am adding the new content as a subnav which by default tried to inherit the parent template (correct me if I’m wrong).

    Here is what I came up with (this all goes in functions.php), it still needs fine tuning and testing (for example I broke pagination and commenting):

    
    function my_test_setup_nav() {
            global $bp;
           
            $parent_slug = 'wall';
            $child_slug = 'all';
    //name, slug, screen, position, default subnav
            bp_core_new_nav_item( array( 'name' => __( 'test' ), 'slug' => $parent_slug, 'screen_function' => 'my_profile_page_function_to_show_screen', 'position' => 40, 'default_subnav_slug' => 'test_sub' ) );
    }
    
    function my_profile_page_function_to_show_screen() {
    	//add title and content here - last is to call the members plugin.php template
    	add_action( 'bp_template_title', 'my_profile_page_function_to_show_screen_title' );
    	add_action( 'bp_template_content', 'my_profile_page_function_to_show_screen_content' );
    	bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    }
    function my_profile_page_function_to_show_screen_title() {
    	echo 'something';
    }
    
    function my_profile_page_function_to_show_screen_content() {
    	global $activities_template;
    
    	$personal_activites = array();
    	$friends_activites = array();
    	$group_activites = array();
    	
    	//Get friends Loop
    	do_action( 'bp_before_activity_loop' );
    	if ( bp_has_activities( bp_ajax_querystring( 'activity' )."&scope=friends") ) :
    		$friends_activites = $activities_template->activities;
    	endif;
    	do_action( 'bp_after_activity_loop' ); 
    	
    	//Get personal Loop
    	do_action( 'bp_before_activity_loop' );
    	if ( bp_has_activities( bp_ajax_querystring( 'activity' )."&scope=just-me") ) :
    		$personal_activites = $activities_template->activities; 
    	endif;
    	do_action( 'bp_after_activity_loop' ); 
    	
    	//Get groups Loop
    	do_action( 'bp_before_activity_loop' );
    	if ( bp_has_activities( bp_ajax_querystring( 'activity' )."&scope=groups") ) :
    		$group_activites = $activities_template->activities; 
    	endif;
    	do_action( 'bp_after_activity_loop' ); 
    	
    	do_action( 'bp_before_member_activity_post_form' );
    		bp_get_template_part( 'activity/post-form' );
    	do_action( 'bp_after_member_activity_post_form' );	
    	
    	$activities_template->activities = array_merge($personal_activites,$group_activites,$friends_activites);
    	quickSort( $activities_template->activities );
    
    ?>
    	<?php do_action( 'bp_before_activity_loop' ); ?>
    
    		<?php /* Show pagination if JS is not enabled, since the "Load More" link will do nothing */ ?>
    		<noscript>
    			<div class="pagination">
    				<div class="pag-count"><?php bp_activity_pagination_count(); ?></div>
    				<div class="pagination-links"><?php bp_activity_pagination_links(); ?></div>
    			</div>
    		</noscript>
    
    		<?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 ( bp_activity_has_more_items() ) : ?>
    
    			<li class="load-more">
    				<a href="#more"><?php _e( 'Load More', 'buddypress' ); ?></a>
    			</li>
    
    		<?php endif; ?>
    
    		<?php if ( empty( $_POST['page'] ) ) : ?>
    
    			</ul>
    
    		<?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	
    }     
    
    add_action( 'bp_setup_nav', 'my_test_setup_nav' );
    
    // Non-recurive Quicksort for an array of Person objects
    // adapted from http://www.algorithmist.com/index.php/Quicksort_non-recursive.php
    function quickSort( &$array )
    {
    	$cur = 1;
    	$stack[1]['l'] = 0;
    	$stack[1]['r'] = count($array)-1;
    
    	do{
    		$l = $stack[$cur]['l'];
    		$r = $stack[$cur]['r'];
    		$cur--;
    
    		do{
    			$i = $l;
    			$j = $r;
    			$tmp = $array[(int)( ($l+$r)/2 )];
    
    			// partion the array in two parts.
    			// left from $tmp are with smaller values,
    			// right from $tmp are with bigger ones
    			do{
    				while( strtotime($array[$i]->date_recorded) > strtotime($tmp->date_recorded) )
    					$i++;
    
    				while( strtotime($tmp->date_recorded) > strtotime($array[$j]->date_recorded) )
    					$j--;
    
    				// swap elements from the two sides
    				if( $i <= $j){
    					$w = $array[$i];
    					$array[$i] = $array[$j];
    					$array[$j] = $w;
    
    					$i++;
    					$j--;
    				}
    
    			}while( $i <= $j );
    
    			if( $i < $r ){
    				$cur++;
    				$stack[$cur]['l'] = $i;
    				$stack[$cur]['r'] = $r;
    			}
    			$r = $j;
    
    		}while( $l < $r );
    
    	}while( $cur != 0 );
    
    }
    

    I’m sure there is a more elegant and seamless way to do it, and I will try to figure out exactly what that is. I’ll probably end up making templates for this to try and have cleaner code and stop the ajax bugs I created.

    But for now, congratulations, you now have an aggregate news feed.

    #181137
    donalconlon
    Participant

    I am having the exact same issue. BP 1.9.2. xProfiles seemed to be working, but now I’m getting to a blank groups page similar to other users. I have removed BuddyPress and re-added, but no fix. This has totally hosed my site. How can I get it fixed?

    #181134
    Chris
    Participant

    Thanks, John. I’ll look at those plugins ASAP. BuddyPress is great – keep up the great work!

    #181133

    Questions and installations like this are becoming more common, and we have a loose plan on how to include provisions for this into BuddyPress core. Right now, you’ll end up needing a few extra plugins (and a little bit of on the job education) to make both WordPress and BuddyPress play exactly the way you need them to, but rest assured that both WP and BP do have the ability baked in to manipulate where things live and how they work together.

    A few plugins to investigate:

    • WP Multi Network
    • BP Multi Network

    They’ll let you have disparate BuddyPress networks rotating around one central user-base and logins. From there, you can see how these plugins work, and tweak your integration to suit your needs.

    Also happy to try and guide you further as you need more specific code snippets to solve specific problems.

    #181130
    Anonymous User 7600456
    Inactive

    Hi @tsabar,

    It depends, if you are creating a new site then you may as well get stuck straight in with BuddyPress 2.0 but if your site is being used by lots of users already you should probably stick with 1.9.2 which has been very thoroughly tested, not only by the development team but by thousands of other users, myself included, on their own sites. That way if their are any bugs in 2.0 your users won’t have to suffer.

    I hope that helps you decide.

    Best,

    Joseph

    #181125
    laura.lee
    Participant

    Trust me… btw… if I can find a different program than BuddyPress… I will use a different program than BuddyPress with my WordPress site… because of this.

    I hope there is a different program that will work well with WordPress… cuz I don’t want to use this program now.

    #181115
    Henry Wright
    Moderator

    The BuddyPress Like plugin does that:

    https://wordpress.org/plugins/buddypress-like/

    #181113
    rongothebold
    Participant

    I’m having the exact same issue. Change avatar works perfectly, as does just viewing the profile. However if I click edit, then I get redirected to a non profile page (in my case I have a page “editorial” that I get directed to instead of the group/1, but I had that behavior at one point when I re-wrote all the rules to use “change-profile” instead of “edit” as the action.)

    I have found that if I uncheck the Extended Profiles component from the BuddyPress setup, then it works just fine. So it’s definitely related to xprofiles.

    I’m running 3.8.2 and 1.9.2.

    Very interested to see if there is a fix to this one. For now I’ve disabled the xprofile component so the users of this site can update their profiles at least.

    #181107
    godavid33
    Participant

    Buddypress Wall sort of works, but it is riddled with bugs and the developer seems to be mia. That is to say, I don’t mean to knock the plugin; it is a good plugin but needs some bug fixes is all.

    #181106
    Satwinder Rathore
    Participant
    #181105
    modemlooper
    Moderator

    I would deactivate and delete BuddyPress and then re download it and install. Deleting it doesn’t delete settings. Make sure all your BuddyPress plugins are deactivated first.

    Having the site installed in a subfolder may be an issue as well.

    #181098
    DJsix
    Participant

    I deactivated all the plugins, except BuddyPress. Still the same.

    #181097
    modemlooper
    Moderator

    BuddyPress plugin supplies the template files UNLESS the theme has included them. Only BuddyPress specific themes would include the files. That’s why I asked you to switch to Twenty Twelve so it would use the files from the BP plug folder.

    It may be a plugin causing issue. You can deactivate plugins one by one and test each.

    #181096
    DJsix
    Participant

    So, I started going through different themes hoping one would work, and I came across one called X2 that actually showed comments, but I don’t care for the look of the theme. But, I figured if I came across one, then there has to be more, right?

    I have gone through about twenty themes with no luck (except for x2).

    Do any WordPress themes actually work with BuddyPress?

    #181091
    modemlooper
    Moderator

    Mobile

    read bottom of page

    #181086
    modemlooper
    Moderator

    in the BuddyPress settings page there is an open to allow only Admins to create groups

    #181079
    gingerling
    Participant

    Hi, I used this : https://wordpress.org/plugins/buddypress-usernames-only/ to remove the problem with the displaynames/usernames

    SO, just that @mentions don’t auto-suggest. Should they do this?

    #181073
    Sabbo
    Participant

    So what plugin do you advise me to use with BuddyPress?

    #181061
    modemlooper
    Moderator

    go into the file and check if the code is there. BuddyPress should be installed on one domain. Is this multisite?

Viewing 25 results - 16,901 through 16,925 (of 68,918 total)
Skip to toolbar